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 |
|---|---|---|---|---|---|---|
Attach a lot of summaries to a Tensor (for TensorBoard visualization). | def g4Yp(SRYB):
with ZylS.name_scope('summaries'):
JBMS = ZylS.reduce_mean(SRYB)
ZylS.summary.scalar('mean', JBMS)
with ZylS.name_scope('stddev'):
z2bo = ZylS.sqrt(ZylS.reduce_mean(ZylS.square(SRYB - JBMS)))
ZylS.summary.scalar('stddev', z2bo)
ZylS.summary.scalar(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n1pK(YKHO):\n for G1Hx, Ty9i in YKHO.metrics.items():\n ZylS.summary.scalar(G1Hx, Ty9i)\n YKHO.summary_op = ZylS.summary.merge_all()",
"def RlbR(YKHO):\n ZylS.summary.scalar('loss', YKHO.loss)\n XIcQ = ZylS.summary.merge_all()\n YKHO.summary_op = XIcQ\n ZylS.logging.info('summary op ... | [
"0.7071791",
"0.6970259",
"0.6970259",
"0.6800256",
"0.67872906",
"0.67407334",
"0.66669947",
"0.66576326",
"0.66193783",
"0.66085786",
"0.6595776",
"0.65836215",
"0.6581151",
"0.655297",
"0.6500364",
"0.6459978",
"0.64145213",
"0.6294558",
"0.62718755",
"0.62713677",
"0.6265... | 0.0 | -1 |
Gets a random time segment of duration segment_ms in a 10,000 ms audio clip. | def GHgB(RS_r):
PETj = oyIN.random.randint(low=0, high=10000 - RS_r)
O41K = PETj + RS_r - 1
return (PETj, O41K) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S84C(YKHO):\n Nygx = oyIN.random.randint(low=0, high=YKHO.ndata)\n Gaon = YKHO.data[Nygx]\n FIL5 = Gaon.shape[0] - YKHO.seg_length\n if FIL5 < 0:\n hTWD = Gaon\n else:\n qJWj = oyIN.random.randint(low=0, high=FIL5)\n hTWD = Gaon[qJWj:qJWj + YKHO.seg_length]\n hTWD /= oyIN... | [
"0.6346133",
"0.5968093",
"0.57872385",
"0.543045",
"0.5348455",
"0.5320724",
"0.53102636",
"0.52795",
"0.527616",
"0.52141804",
"0.5163699",
"0.5153029",
"0.51250505",
"0.5076233",
"0.50741565",
"0.50674105",
"0.5055897",
"0.49999702",
"0.49932885",
"0.49894676",
"0.4988453"... | 0.81394756 | 0 |
Assert that two complex structures have almost equal contents. Compares lists, dicts and tuples recursively. Checks numeric values | def bgOU(YKHO, aEqx, n5sN, *qIxc, **B2fa):
B2fa.pop('__trace', 'ROOT')
if hasattr(aEqx, '__geo_interface__') and hasattr(n5sN, '__geo_interface__') and (aEqx.__geo_interface__['type'] == n5sN.__geo_interface__['type']) and (aEqx.__geo_interface__['type'] not in ['Feature', 'FeatureCollection']):
bpPe = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Btrh(agSQ, udOb):\n if isinstance(agSQ, oyIN.ndarray):\n return oyIN.allclose(agSQ, udOb)\n if isinstance(agSQ, GySg):\n if set(agSQ.keys()) != set(udOb.keys()):\n return False\n return all((Btrh(agSQ[H5ew], udOb[H5ew]) for H5ew in agSQ))\n if isinstance(agSQ, bdIy):\n ... | [
"0.6856",
"0.66641694",
"0.6636554",
"0.6619295",
"0.6600221",
"0.6590562",
"0.65527815",
"0.6550562",
"0.6423729",
"0.63992083",
"0.63608086",
"0.6349685",
"0.63460094",
"0.6332496",
"0.63299686",
"0.632918",
"0.6323604",
"0.63124764",
"0.63048434",
"0.63048434",
"0.62941104... | 0.6847316 | 1 |
Sets the id of this LoanRecord. | def id(YKHO, id):
YKHO._id = id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX",
"def V_9M(YKHO, id):\n YKHO.__id = id",
"def psjw(YKHO, id):\n YKHO.id = int(id)",
"def HMFB(YKHO, HMFB):\n YKHO._loan_id = HMFB",
"def V_9M(YKHO, id):\n YKHO.data['id'] = id",
"def V_9M(YKHO, id):\n if id is not None and (not isinstance(id, int... | [
"0.759683",
"0.7548506",
"0.75382507",
"0.75325704",
"0.7444702",
"0.72462225",
"0.71202624",
"0.71202624",
"0.71202624",
"0.71202624",
"0.71202624",
"0.711454",
"0.711454",
"0.711454",
"0.711454",
"0.711454",
"0.711454",
"0.711454",
"0.711454",
"0.711454",
"0.711454",
"0.7... | 0.0 | -1 |
Sets the loan_id of this LoanRecord. | def HMFB(YKHO, HMFB):
YKHO._loan_id = HMFB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RxvT(YKHO, RxvT: str):\n if RxvT is None:\n raise ValueError('Invalid value for `loan_application_id`, must not be `None`')\n YKHO._loan_application_id = RxvT",
"def WBbU(YKHO, HMFB):\n Mkmy = G4JS.put(YKHO.base_url + f'/users/{YKHO.username}/loans/{HMFB}', headers=YKHO.auth_header)\n retu... | [
"0.6962601",
"0.620105",
"0.59342825",
"0.59055126",
"0.586726",
"0.5798028",
"0.5787697",
"0.5730725",
"0.5720255",
"0.5618062",
"0.5604811",
"0.5603773",
"0.5600246",
"0.5597707",
"0.55507684",
"0.55507684",
"0.54346",
"0.54217577",
"0.5409986",
"0.5400782",
"0.5370823",
... | 0.8840699 | 0 |
Sets the expire_time of this LoanRecord. | def e2iN(YKHO, e2iN):
YKHO._expire_time = e2iN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pg_u(YKHO, pg_u):\n YKHO._expire = pg_u",
"def PiTA(YKHO, PiTA):\n YKHO._expire_date = PiTA",
"def iWzb(YKHO, iWzb):\n YKHO._expiry = iWzb",
"def yxS0(YKHO, yxS0):\n YKHO._expires = yxS0",
"def pOcy(YKHO, pcN6):\n YKHO._bExpired = pcN6",
"def bdZ1(YKHO):\n YKHO.expiration = qcWV.now... | [
"0.772447",
"0.71713036",
"0.66144574",
"0.6304232",
"0.6256894",
"0.6230747",
"0.62274754",
"0.6214677",
"0.6175106",
"0.61741",
"0.6112252",
"0.6087046",
"0.596938",
"0.5916242",
"0.5916242",
"0.5916242",
"0.5847494",
"0.5830621",
"0.57409316",
"0.5691829",
"0.565899",
"0... | 0.82511336 | 0 |
Sets the status of this LoanRecord. | def jGRS(YKHO, jGRS):
BbPm = ['loaned', 'finished']
if YKHO.local_vars_configuration.client_side_validation and jGRS not in BbPm:
raise ValueError('Invalid value for `status` ({0}), must be one of {1}'.format(jGRS, BbPm))
YKHO._status = jGRS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w8Lw(YKHO, jGRS):\n YKHO.status = jGRS",
"def w8Lw(YKHO, jGRS):\n YKHO.status = jGRS",
"def w8Lw(YKHO, jGRS):\n YKHO.status = jGRS",
"def jGRS(YKHO, jGRS):\n YKHO._status = jGRS",
"def jGRS(YKHO, jGRS):\n YKHO._status = jGRS",
"def jGRS(YKHO, jGRS):\n YKHO._status = jGRS",
"def jG... | [
"0.742818",
"0.742818",
"0.742818",
"0.729607",
"0.729607",
"0.729607",
"0.729607",
"0.729607",
"0.729607",
"0.729607",
"0.729607",
"0.729607",
"0.729607",
"0.729607",
"0.729607",
"0.729607",
"0.729607",
"0.729607",
"0.729607",
"0.729607",
"0.729607",
"0.729607",
"0.72960... | 0.6636454 | 44 |
Sets the currency of this LoanRecord. | def VIXL(YKHO, VIXL):
YKHO._currency = VIXL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VIXL(YKHO, VIXL: str):\n YKHO._currency = VIXL",
"def VIXL(YKHO, VIXL):\n if VIXL is None:\n raise ValueError('Invalid value for `currency`, must not be `None`')\n YKHO._currency = VIXL",
"def VIXL(YKHO, VIXL):\n if YKHO.local_vars_configuration.client_side_validation and VIXL is None:\n... | [
"0.7614526",
"0.73841035",
"0.7099388",
"0.7009042",
"0.6942794",
"0.6905837",
"0.68229604",
"0.68229604",
"0.68229604",
"0.68229604",
"0.68229604",
"0.6784052",
"0.67260253",
"0.66681486",
"0.648117",
"0.6459493",
"0.6418965",
"0.6418965",
"0.6418965",
"0.6348937",
"0.634515... | 0.77603483 | 3 |
Sets the rate of this LoanRecord. | def mVUw(YKHO, mVUw):
YKHO._rate = mVUw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZJGP(YKHO, T9qQ):\n pass",
"def woVZ(YKHO, woVZ):\n YKHO._a_rate = woVZ",
"def rp5a(YKHO):\n VOlW = YKHO.data.iloc[2, 0] - YKHO.data.iloc[1, 0]\n YKHO.rate = int(1 / VOlW)",
"def mVUw(YKHO, mVUw):\n aTNc = tBeC(1, YKHO.x_rate)\n vJEi = tBeC(1, YKHO.y_rate)\n YKHO._rate = mVUw\n YK... | [
"0.7485775",
"0.74187046",
"0.72313124",
"0.71784174",
"0.71728796",
"0.703834",
"0.7017632",
"0.7009341",
"0.67899215",
"0.6787706",
"0.6784016",
"0.6716015",
"0.66581655",
"0.6630198",
"0.66155386",
"0.66155386",
"0.6520406",
"0.64290434",
"0.63918084",
"0.63397455",
"0.625... | 0.7928234 | 1 |
Sets the days of this LoanRecord. | def Sm0u(YKHO, Sm0u):
YKHO._days = Sm0u | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p33c(YKHO, *qIxc):\n return _VfD.Date_setDay(YKHO, *qIxc)",
"def bCdN(YKHO, bCdN):\n YKHO._valid_days = bCdN",
"def YdD0(YKHO, YdD0):\n YKHO._dates = YdD0",
"def CjKC(YKHO, CjKC):\n YKHO._day = CjKC",
"def CjKC(YKHO, CjKC):\n YKHO._day = CjKC",
"def P0y0(YKHO, P0y0):\n YKHO._due_day... | [
"0.6816621",
"0.642756",
"0.6311254",
"0.61405617",
"0.61405617",
"0.6133144",
"0.59248406",
"0.56419295",
"0.56288844",
"0.5606653",
"0.55495334",
"0.5488741",
"0.54864126",
"0.54237914",
"0.53746676",
"0.5214575",
"0.51699585",
"0.514902",
"0.514902",
"0.5147522",
"0.512607... | 0.76819426 | 0 |
Sets the repaid of this LoanRecord. | def jV7c(YKHO, jV7c):
YKHO._repaid = jV7c | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zbn_(YKHO, zbn_):\n YKHO._repaid_interest = zbn_",
"def jV7c(YKHO):\n return YKHO._repaid",
"def UzwB(YKHO, G6OJ):\n YKHO.repin = G6OJ",
"def a9I_(YKHO, a9I_):\n YKHO._rpn = a9I_",
"def a9I_(YKHO, a9I_):\n YKHO._rpn = a9I_",
"def I5Fh(YKHO, gL79):\n YKHO.__pno = gL79",
"def zhQ4(Y... | [
"0.62934273",
"0.61154217",
"0.60819227",
"0.565408",
"0.565408",
"0.5434639",
"0.54299945",
"0.53666764",
"0.53007287",
"0.5187828",
"0.5181274",
"0.517406",
"0.51329285",
"0.51020914",
"0.50844795",
"0.5062485",
"0.4932726",
"0.49300233",
"0.4923862",
"0.48997575",
"0.48851... | 0.8184397 | 1 |
Sets the paid_interest of this LoanRecord. | def z1sQ(YKHO, z1sQ):
YKHO._paid_interest = z1sQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def axNE(YKHO, axNE):\n YKHO._unpaid_interest = axNE",
"def axNE(YKHO, axNE):\n YKHO._unpaid_interest = axNE",
"def zbn_(YKHO, zbn_):\n YKHO._repaid_interest = zbn_",
"def yJhk(YKHO, yJhk):\n YKHO._paid = yJhk",
"def qVmF(YKHO, qVmF):\n YKHO._open_interest = qVmF",
"def w1WO(YKHO, w1WO):\n... | [
"0.7236033",
"0.7236033",
"0.71311146",
"0.66910017",
"0.64686334",
"0.6349484",
"0.5744775",
"0.5435513",
"0.53329575",
"0.52915186",
"0.52469635",
"0.52424407",
"0.51769537",
"0.5017863",
"0.501439",
"0.499235",
"0.49731472",
"0.48712048",
"0.48048043",
"0.48048043",
"0.480... | 0.88164794 | 0 |
Sets the unpaid_interest of this LoanRecord. | def axNE(YKHO, axNE):
YKHO._unpaid_interest = axNE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z1sQ(YKHO, z1sQ):\n YKHO._paid_interest = z1sQ",
"def jeBE(YKHO, jeBE):\n YKHO._unapproved = jeBE",
"def zbn_(YKHO, zbn_):\n YKHO._repaid_interest = zbn_",
"def roQF(YKHO, roQF):\n BbPm = ['Allow', 'Disallow', 'AdminReview']\n if roQF.lower() not in map(str.lower, BbPm):\n YKHO._une... | [
"0.7019945",
"0.6402536",
"0.6021122",
"0.5758044",
"0.5642467",
"0.5596227",
"0.5357277",
"0.53555346",
"0.53414106",
"0.53238195",
"0.5245023",
"0.52279675",
"0.51817405",
"0.5176743",
"0.517406",
"0.5098232",
"0.50832754",
"0.5067834",
"0.50374216",
"0.50374216",
"0.503742... | 0.90181386 | 1 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, FGHW):
return False
return YKHO.to_dict() == Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, FGHW):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
... | 0.0 | -1 |
Set the user password. Generate a password salt based on current timestamp to make a strong password, than encrypt password with generated salt | def G3s8(YKHO, BWXx):
r8hN = HBct.sha256()
r8hN.update('-'.join([str(qcWV.now()), GPtr.get('security.password_salt')]))
YKHO.salt = r8hN.hexdigest()
YKHO.password_pending = False
YKHO.password = YKHO.__encrypt(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G3s8(YKHO, jTXt):\n YKHO.password_hash = vT87(f'{jTXt}{YKHO.user_salt}')",
"def G3s8(YKHO, jTXt):\n YKHO.password = JPYf(jTXt, zB84())",
"def G3s8(YKHO, jTXt):\n YKHO.password = B8ni.generate_password_hash(jTXt)",
"def G3s8(YKHO, jTXt):\n YKHO.password = vT87(jTXt, method='pbkdf2:sha256')",
... | [
"0.8176986",
"0.79079384",
"0.78515375",
"0.78112805",
"0.7796077",
"0.7787635",
"0.7759864",
"0.7732668",
"0.7732668",
"0.7723714",
"0.7670568",
"0.7647617",
"0.7632073",
"0.761807",
"0.7602045",
"0.75774527",
"0.75717",
"0.75231826",
"0.7488054",
"0.7452838",
"0.7452838",
... | 0.8358073 | 0 |
Check if given password is valid | def EvfH(YKHO, jTXt):
if YKHO.password is None:
return jTXt is None
return YKHO.__encrypt(jTXt) == YKHO.password | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EoXa(jTXt):\n pass",
"def tWk5(YKHO, jTXt):\n if YKHO.password_regex.search(jTXt) is not None:\n print('Correct password')\n return True\n else:\n print('Wrong password')\n return False",
"def SqNO(YKHO):\n RnXU = wsY0(''.join(['x' * int(YKHO.app.config['MAX_PWD_LEN'... | [
"0.85381305",
"0.8415312",
"0.8411327",
"0.8369029",
"0.8341775",
"0.8338921",
"0.8325012",
"0.8299718",
"0.82976085",
"0.8273978",
"0.82609844",
"0.8258765",
"0.8204182",
"0.8182063",
"0.81680256",
"0.8166231",
"0.81649506",
"0.8150684",
"0.8130021",
"0.81136376",
"0.8098576... | 0.0 | -1 |
Get the calculated margin value | def MVIL(YKHO):
H4yH = YKHO.sale_price or sbx9
if P6bq.isempty(H4yH):
return sbx9
U7YL = YKHO.cost_price or sbx9
return P6bq.decimal((Xw1j - U7YL / H4yH) * lUsu, True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xdRP(YKHO):\n MUcb.lib.geometry_get_margin.restype = Z9rn.c_float\n return MUcb.lib.geometry_get_margin(YKHO._geometry)",
"def MVIL(YKHO):\n return YKHO._generate_spacing_info(YKHO.config['margin'])",
"def fL72(YKHO):\n assert False",
"def Z9am():\n return 5",
"def XWt4(YKHO) -> tuple[in... | [
"0.8096916",
"0.7665626",
"0.7661267",
"0.75854164",
"0.7425228",
"0.73526794",
"0.72962034",
"0.7249989",
"0.71489507",
"0.71366096",
"0.7049974",
"0.7034223",
"0.6887032",
"0.6742051",
"0.66695106",
"0.65863913",
"0.6580583",
"0.64934206",
"0.6456584",
"0.63965106",
"0.6378... | 0.76836574 | 1 |
Create an Stock Adjustment with given initial quantity | def N8Fv(YKHO, BWXx):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nf3w(YKHO):\n pass",
"def ATyv(YKHO, o61b, cTRz, lMRV):\n ciqc = cTRz * lMRV\n YKHO.portfolios.append((o61b, cTRz, lMRV))\n YKHO.value += ciqc",
"def qNWQ():\n return {'five': 0, 'one': 0, 'quarter': 25, 'dime': 25, 'nickel': 25}",
"def TO28(YKHO, rFgg):\n RKD7.debug('CREATE STOCK....')... | [
"0.6080927",
"0.6029048",
"0.5925458",
"0.5915727",
"0.5871318",
"0.57795393",
"0.5704251",
"0.5703172",
"0.57001394",
"0.56679547",
"0.5659063",
"0.5655113",
"0.5620402",
"0.5597564",
"0.55950505",
"0.5591549",
"0.5579981",
"0.5575802",
"0.55751693",
"0.55661815",
"0.5548048... | 0.63861334 | 0 |
Get the current queue of historical data collections. Returns dict standard and priority queues | def SXMO():
geh0 = PUOp.get('/history/queue')
PUOp.raise_for_status_with_json(geh0)
return geh0.json() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o_ta(YKHO):\n return YKHO.__queues",
"def o_ta(YKHO):\n return YKHO.__queues",
"def o_ta(YKHO):\n return YKHO.__queues",
"def o_ta(YKHO):\n return YKHO.__queues",
"def o_ta(YKHO):\n return YKHO.__queues",
"def o_ta(YKHO):\n return YKHO.__queues",
"def o_ta(YKHO):\n return YKHO.... | [
"0.6904607",
"0.6904607",
"0.6904607",
"0.6904607",
"0.6904607",
"0.6904607",
"0.6904607",
"0.6904607",
"0.6904607",
"0.6895607",
"0.6776065",
"0.65952545",
"0.65623784",
"0.6477117",
"0.6474315",
"0.6470711",
"0.6470711",
"0.6470711",
"0.6470711",
"0.6470711",
"0.6470711",
... | 0.6942455 | 0 |
Check if the user has a permission on a specific object. Returns boolean. | def M1EP(QpfX, IuXB, YEnM):
return uEDt.has_perm(QpfX['request'].user, IuXB, YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m4il(YKHO, QePW, tTee, YEnM):\n return QePW.user == YEnM",
"def m4il(YKHO, QePW, tTee, YEnM):\n return QePW.user == YEnM",
"def m4il(YKHO, QePW, tTee, YEnM):\n if QePW.method in w0rQ.SAFE_METHODS:\n return True\n return YEnM.user_profile.id == QePW.user.id",
"def m4il(YKHO, QePW, tTee,... | [
"0.84076005",
"0.83953106",
"0.836508",
"0.8360155",
"0.82976496",
"0.8297573",
"0.829155",
"0.82663745",
"0.8210482",
"0.8193988",
"0.81622005",
"0.8154853",
"0.81465",
"0.81384635",
"0.8135296",
"0.8115141",
"0.81032956",
"0.8072388",
"0.80661887",
"0.8064932",
"0.8063964",... | 0.8247362 | 9 |
Check if the user has a permission or owns the object. Ownership is determined by comparing perm_obj.field_name to the user in context. | def Wz2N(QpfX, IuXB, YEnM, pB8m, vXX7='creator'):
CBIr = QpfX['request'].user
if CBIr.is_anonymous():
return False
return uEDt.has_perm_or_owns(CBIr, IuXB, YEnM, pB8m, vXX7) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m4il(YKHO, QePW, tTee, YEnM):\n if QePW.user.is_superuser:\n return True\n if QePW.user.profile.role == HSUm.CLIENT and YEnM.owner != QePW.user:\n return False\n if QePW.user.profile.role == HSUm.EXECUTOR and YEnM.executor != QePW.user:\n return False\n return True",
"def M1E... | [
"0.80219024",
"0.7785759",
"0.7783671",
"0.7718651",
"0.7711835",
"0.7683579",
"0.7657346",
"0.76486826",
"0.76464075",
"0.7631261",
"0.76284045",
"0.7627279",
"0.76208466",
"0.76107574",
"0.7604181",
"0.75970876",
"0.75931394",
"0.75782865",
"0.7575515",
"0.75751346",
"0.756... | 0.84912825 | 1 |
Returns the path of a temporary directory in which to create an environment | def wGfL():
return gbPf.mkdtemp(prefix='spack-') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U9hK():\n return gbPf.mkdtemp()",
"def wQf6():\n return gbPf.mkdtemp()",
"def KKzN():\n return Hy7s.getcwd() + '/temp/'",
"def RHkQ():\n return Hy7s.path.join(EcEz.getProjectRootDir(), RcG3)",
"def MvcU(n294):\n return n294.newstr('/tmp')",
"def l7zB():\n lDgD = gbPf.TemporaryDirect... | [
"0.8361968",
"0.8094515",
"0.7965658",
"0.7875448",
"0.78722507",
"0.78453726",
"0.7782834",
"0.7735586",
"0.77059007",
"0.7637353",
"0.7586785",
"0.7582181",
"0.75643015",
"0.75305915",
"0.7522155",
"0.75219756",
"0.7516346",
"0.7513781",
"0.7477625",
"0.74714607",
"0.746551... | 0.8108573 | 1 |
Normalize predictors with MEANSTD or MINMAX | def CkYf(RVWO, NkkI=None):
if NkkI == 'std':
ZyUm = (RVWO - RVWO.mean()) / RVWO.std()
elif NkkI == 'minmax':
ZyUm = (RVWO - RVWO.min()) / (RVWO.max() - RVWO.min())
return ZyUm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hWT_(EcVT):\n yGTL = EcVT.mean(axis=0, keepdims=True)\n KCHu = EcVT.std(axis=0, keepdims=True)\n return (EcVT - yGTL) / KCHu",
"def NkkI(hkxX):\n return (hkxX - oyIN.mean(hkxX)) / oyIN.std(hkxX)",
"def NkkI(__n6):\n return Razi(RJwR(__n6))",
"def Q7gV(WKvO):\n bjRh = WKvO.mean(0)\n n... | [
"0.72300565",
"0.7215287",
"0.71540743",
"0.7050196",
"0.7050196",
"0.7021896",
"0.7006436",
"0.69846344",
"0.6955152",
"0.69413626",
"0.692841",
"0.69198185",
"0.69004965",
"0.68824595",
"0.6849414",
"0.6838761",
"0.68124807",
"0.67880714",
"0.6771253",
"0.6742",
"0.6734627"... | 0.62444717 | 69 |
Split data into train and test | def Qb89(ZyUm, pan_):
cC56, sAoX, VJv0, H96n = bHtP(ZyUm, pan_, test_size=0.05)
return (cC56, sAoX, VJv0, H96n) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cTf9(onqj):\n XxFT, t4zr = bHtP(onqj, test_size=0.2, random_state=42)\n return (XxFT, t4zr)",
"def Qb89(nPrm, NI2E):\n q4Iw = int(round(len(nPrm) * (1 - NI2E))) + 1\n EvQg, QOe9 = (nPrm[:q4Iw], nPrm[q4Iw:])\n return (EvQg, QOe9)",
"def ArpX(YKHO, nPrm):\n CZRf, pZ_I, OJCd, PdIf = bHtP(nPr... | [
"0.873683",
"0.8483841",
"0.83644855",
"0.834212",
"0.8317109",
"0.83067477",
"0.8096327",
"0.8048392",
"0.80409783",
"0.8020229",
"0.79795235",
"0.797699",
"0.7964837",
"0.7943567",
"0.7933621",
"0.79305464",
"0.7871084",
"0.786965",
"0.78459436",
"0.7813407",
"0.77857035",
... | 0.0 | -1 |
Initializes the special characteristics of the ball projectile | def FIMM(YKHO, GdH2, Yw_3, XSoh, ewCu=5, a033=1):
QDO6.__init__(YKHO, GdH2, Yw_3, XSoh, ewCu, a033)
YKHO.image = YKHO.images[0]
YKHO.projectile = 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n GPtr = ubnI().getProcessingConfig()\n YKHO.xGround = GPtr.get('xGround')\n YKHO.yGround = GPtr.get('yGround')",
"def FIMM(YKHO):\n IUTf.__init__(YKHO)\n YKHO._bottle = None\n YKHO._cowboy = None\n YKHO._furnishing = None\n YKHO._has_hazard = False\n YKHO._is_balcony =... | [
"0.6647712",
"0.66328055",
"0.65436834",
"0.65067834",
"0.64770657",
"0.6444444",
"0.64166594",
"0.63280714",
"0.6289788",
"0.62440264",
"0.62392956",
"0.61616236",
"0.6150982",
"0.6143104",
"0.6139053",
"0.61206657",
"0.61007804",
"0.60949653",
"0.60934603",
"0.6053228",
"0.... | 0.6649772 | 0 |
Add a decision to the builder with the specified properties. Ensures data types and paths are as they should be, before creating a MergeDecision and adding it to its internal store. | def AEnt(YKHO, pmON, XeOP, uPig, aoje, FDvM=False, **B2fa):
if isinstance(pmON, list):
pmON = tuple(pmON)
else:
assert isinstance(pmON, tuple)
if uPig is not None:
if isinstance(uPig, tuple):
uPig = list(uPig)
elif not isinstance(uPig, list):
uPig = [u... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a0cO(YKHO, g3yn, C9U5):\n YKHO.cliques.append((g3yn, C9U5))",
"def ubKG(YKHO, OiKl, rmft):\n YKHO.responder = rmft\n YKHO.status = OiKl\n YKHO.decision_datetime = rIAI.now()\n YKHO.save()",
"def OiKl(YKHO, OiKl):\n YKHO._decision = OiKl",
"def MBQE(OiKl):\n ezF6 = [OiKl.local_diff, O... | [
"0.46802995",
"0.46581772",
"0.46199575",
"0.44571906",
"0.439587",
"0.42753375",
"0.42626432",
"0.42232627",
"0.41409373",
"0.40909263",
"0.40903434",
"0.40371084",
"0.40203336",
"0.40123707",
"0.40097067",
"0.39897484",
"0.39800665",
"0.39618322",
"0.3955701",
"0.39554638",
... | 0.591461 | 0 |
Prevent paths from pointing to specific string lines. Since strings are diffed as a sequence of lines without actually splitting the string in base, any path to a specific line will fail to resolve. This checks if path points to a specific line in a string, and splits off the final key of the path (the line number). Re... | def ZFQX(P8oC, pmON):
for YRbF in range(len(pmON)):
if isinstance(P8oC, jUrF):
return (pmON[:YRbF], pmON[YRbF:])
P8oC = P8oC[pmON[YRbF]]
return (pmON, ()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zFJQ(YKHO, pmON):\n if pmON.strip() in (None, '', '/'):\n return (None, None)\n JsOY, aqHx = gnPz.save_split(pmON.strip('/'), '/', 1)\n return (JsOY, aqHx)",
"def pjGW(zFiD: str) -> tuple(GkAb, str):\n ALbi = zFiD.strip('\\n').split()\n assert len(ALbi) >= 9\n I0MX = ALbi[0]\n GIN... | [
"0.58438736",
"0.55865395",
"0.55445385",
"0.54815745",
"0.5374716",
"0.53637385",
"0.5360315",
"0.532145",
"0.5319302",
"0.5306603",
"0.52543753",
"0.5219936",
"0.5219936",
"0.5194231",
"0.5190084",
"0.51812303",
"0.51786155",
"0.5143997",
"0.5139139",
"0.51283526",
"0.51274... | 0.6491819 | 0 |
returns a tokenized, lemmatized and normalized version of text | def wr3U(l5Ny):
s2mk = dFss(l5Ny)
LkXt = GFnk()
zKDd = []
for w2fL in s2mk:
NM_J = LkXt.lemmatize(w2fL).lower().strip()
zKDd.append(NM_J)
return zKDd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wr3U(l5Ny):\n s2mk = dFss(l5Ny)\n V22M = [eOtH for eOtH in s2mk if ZbWC.match('[a-zA-Z0-9]', eOtH)]\n STkf = [GIN8 for GIN8 in V22M if GIN8 not in di0c.words('english')]\n BD47 = [GIN8.lower() for GIN8 in STkf]\n sb1u = kdPk(BD47)\n oNFO = [GFnk().lemmatize(GIN8, pos=DoiO(oeNL)) for GIN8, oeN... | [
"0.8100713",
"0.80528414",
"0.7996317",
"0.7988491",
"0.78783566",
"0.78497446",
"0.7836231",
"0.78281635",
"0.78146666",
"0.77794397",
"0.7768499",
"0.7762011",
"0.77241933",
"0.7710668",
"0.76043123",
"0.7599103",
"0.75054395",
"0.74959946",
"0.7484094",
"0.7477629",
"0.747... | 0.78101337 | 9 |
Retrieve the model for tuning. | def C3ST(YKHO):
return YKHO.model_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nd85(YKHO):\n return YKHO.best_model",
"def YrZb(mWFP, T3Me=False):\n return UKH9._import('train.model', mWFP, T3Me)",
"def YrZb(YKHO):\n if YKHO.params.model_str == 'optfixedsig' or YKHO.params.model_str == 'sampfixedsig':\n return sJrG(print_status=YKHO.verbose)\n elif YKHO.params.mode... | [
"0.71232873",
"0.70950174",
"0.70315486",
"0.68864965",
"0.68570817",
"0.6819725",
"0.67824244",
"0.6770826",
"0.6729921",
"0.6729898",
"0.6715729",
"0.6715729",
"0.6715729",
"0.6715729",
"0.6715729",
"0.6715729",
"0.6715729",
"0.6715729",
"0.6715729",
"0.6715729",
"0.6694007... | 0.6300765 | 47 |
Pulls the image from the given tag. | def Y7cm(YKHO, TZ9E):
C7_O = YKHO.build_image_name(TZ9E)
LNo8 = YKHO.client.images.pull(C7_O)
return LNo8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ps_8(YKHO, TZ9E):\n return MRT2(YKHO.collection.client, TZ9E)",
"def j2aj(YKHO, TZ9E):\n C7_O = YKHO.build_image_name(TZ9E)\n try:\n LNo8 = YKHO.client.images.get(C7_O)\n except Exception as ex:\n print('Image does not exist: {}'.format(str(aTqo)))\n print('Pulling image {}'.... | [
"0.8267111",
"0.7836386",
"0.76608956",
"0.72345316",
"0.7146073",
"0.6594149",
"0.6545526",
"0.6537543",
"0.64523375",
"0.63604754",
"0.6346792",
"0.6342315",
"0.6299139",
"0.6168",
"0.6167582",
"0.60108876",
"0.5995023",
"0.59875506",
"0.59868664",
"0.5986473",
"0.5969709",... | 0.87834466 | 0 |
Check if image has been pulled and pull if not. Returns an Image object. | def j2aj(YKHO, TZ9E):
C7_O = YKHO.build_image_name(TZ9E)
try:
LNo8 = YKHO.client.images.get(C7_O)
except Exception as ex:
print('Image does not exist: {}'.format(str(aTqo)))
print('Pulling image {}'.format(C7_O))
LNo8 = YKHO.client.images.pull(C7_O)
return LNo8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y7cm(YKHO, TZ9E):\n C7_O = YKHO.build_image_name(TZ9E)\n LNo8 = YKHO.client.images.pull(C7_O)\n return LNo8",
"def kVeV(YKHO, nPrm):\n jeGQ = {'token', 'source'}\n nNXP.validate(nPrm, jeGQ)\n eOtH = nPrm['token']\n boHx = nPrm['source']\n YKHO.credentials_module.authorize(eOtH)\n A... | [
"0.7119271",
"0.67481136",
"0.6722738",
"0.6720265",
"0.6712497",
"0.6692992",
"0.66367066",
"0.65651745",
"0.6555469",
"0.65308905",
"0.6523817",
"0.65055454",
"0.62881595",
"0.6285456",
"0.62187743",
"0.62077725",
"0.6187183",
"0.61717373",
"0.6158442",
"0.6023814",
"0.6003... | 0.7565341 | 0 |
r""" This routine determines whether the baselines can safely be assumed to be constant with channel, when the are represented in units of kilolambda. | def W5ts(wHcb: NDArray[floating[Any]], MHxz: NDArray[floating[Any]], jNOo: GridCoords, PHa3: float=0.05) -> bool:
urep = PHa3 * jNOo.du
NFIp = oyIN.array([wHcb, MHxz])
kYW8 = NFIp.min(axis=1)
bKas = NFIp.max(axis=1)
uOaA = bKas - kYW8
Rtl7: float = uOaA.max()
return Rtl7 < urep | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WTQ_(wHcb: NDArray[floating[Any]], MHxz: NDArray[floating[Any]], J1c0: NDArray[floating[Any]], jNOo: GridCoords, PHa3: float=0.05) -> bool:\n wHcb, MHxz = BfDw.broadcast_and_convert_baselines(wHcb, MHxz, J1c0)\n urep = PHa3 * jNOo.du\n NFIp = oyIN.array([wHcb, MHxz])\n kYW8 = NFIp.min(axis=1)\n ... | [
"0.61919177",
"0.5781319",
"0.5683866",
"0.5642855",
"0.5625211",
"0.5610771",
"0.5595743",
"0.54909843",
"0.535999",
"0.53503597",
"0.53503597",
"0.53503597",
"0.53503597",
"0.53503597",
"0.53503597",
"0.53503597",
"0.53503597",
"0.53503597",
"0.53503597",
"0.53503597",
"0.5... | 0.64720726 | 0 |
Convert a spatial frequency in units of klambda to 'radians/sky pixel,' using the pixel cell_size provided by ``self.coords.dl``. These concepts can be a little confusing because there are two angular measures at play. 1. The first is the normal angular sky coordinate, normally measured in arcseconds for typical source... | def k6Ms(YKHO, jrY7: float | NDArray[floating[Any]]) -> float | eWuY[G9sr[ImMB]]:
bh7z = jrY7 * 1000.0
UZio = bh7z * 2 * oyIN.pi
Iphw = UZio * YKHO.coords.dl
return Iphw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SYqs(epBp, lwFo, TaUL):\n kTwQ = s_4U(epBp)\n XLXv = PtXs.c / (kTwQ / R2Dr.s)\n _hYw = 2 * PtXs.k_B * 0.001 * R2Dr.K / XLXv ** 2\n zpWt = 1e+26 * _hYw.to(R2Dr.W / (R2Dr.Hz * R2Dr.m ** 2))\n return zpWt.value * (lwFo / TaUL) ** 2",
"def LVIO(YKHO):\n F0b9 = YKHO._hpx.get_sky_coords()\n if... | [
"0.5187176",
"0.5049861",
"0.49715167",
"0.4864913",
"0.48607707",
"0.48538828",
"0.4840828",
"0.48305038",
"0.48291564",
"0.47935903",
"0.4754563",
"0.47489184",
"0.4737665",
"0.47172284",
"0.4696523",
"0.46803114",
"0.46462554",
"0.46429673",
"0.46360967",
"0.4632502",
"0.4... | 0.655299 | 0 |
Checks if the address is present in the database. If the address is there, it checks if the mobile number is present. | def av4J(nPrm):
Egto = nPrm['session'].split('/')[-1]
NCls = NtrV.database()
uNEj = NCls.child('user_data').child(Egto).child('Address').child('Pincode').get().val()
if uNEj == '0' or uNEj is None:
print('Address not found.')
geh0 = {'followupEventInput': {'name': 'request_address', 'lan... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pgSp(YKHO, UTX6):\n if YKHO.filter(to_address=UTX6).count() > 0:\n return True\n else:\n return False",
"def jlJO(UTX6: str) -> bool:\n return True",
"def sY_W(UTX6):\n return ZbWC.search('[a-zA-Z0-9]', UTX6)",
"def ANpL(UTX6: str) -> bool:\n try:\n tHSi.validate_addre... | [
"0.64447075",
"0.6392096",
"0.63707554",
"0.6100853",
"0.6052511",
"0.59455246",
"0.5923358",
"0.5893706",
"0.57902026",
"0.5783983",
"0.57700825",
"0.56942475",
"0.56583595",
"0.56550705",
"0.5594629",
"0.558664",
"0.5555087",
"0.551946",
"0.54921275",
"0.54778254",
"0.54611... | 0.69549084 | 0 |
This saves the address entered by the user and then checks if the mobile number is there. | def rqgw(nPrm):
print('Saving address.')
Egto = nPrm['session'].split('/')[-1]
NCls = NtrV.database()
lRr0 = nPrm['queryResult']['outputContexts']
for YRbF in lRr0:
if 'address_data' in YRbF['name']:
QpfX = YRbF
break
uNEj = str(int(QpfX['parameters']['pincode']))... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lc3G():\n LOzg = QePW.form\n feCp = GCai.validate_address(LOzg)\n bP2y.newaddress(feCp)\n return vKnz('/')",
"def xkzz(YKHO, *qIxc, **B2fa):\n if YKHO.phone is not None and YKHO.phone.strip() == '':\n YKHO.phone = None\n if YKHO.phone is not None:\n try:\n JSoq = MB... | [
"0.6683163",
"0.6333266",
"0.6239255",
"0.6186604",
"0.59452665",
"0.59258366",
"0.585413",
"0.58388376",
"0.58325744",
"0.57758844",
"0.5721588",
"0.5691895",
"0.56913704",
"0.5691305",
"0.5679186",
"0.56714463",
"0.56701845",
"0.56425613",
"0.56190586",
"0.55902934",
"0.556... | 0.7019911 | 0 |
Return neighbor's client that has the lowest cost. | def bSX8(x0hE, _dO8):
w4Ui = x0hE.get_facility_list(_dO8)
return min(w4Ui, key=lambda rZpw: rZpw['cost']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZOJJ(YKHO) -> str:\n bkWY = float('inf')\n rqvi = None\n for Q6kx in YKHO.costs:\n sSN_ = YKHO.costs[Q6kx]\n if sSN_ < bkWY and Q6kx not in YKHO.closed_nodes:\n bkWY = sSN_\n rqvi = Q6kx\n return rqvi",
"def Gpr0(YKHO, WKvO, LVAh, Onn9):\n pan_ = min(Onn9, k... | [
"0.6979329",
"0.67977226",
"0.67064893",
"0.6582499",
"0.6467232",
"0.6439107",
"0.64178556",
"0.6347458",
"0.630641",
"0.6279515",
"0.6246214",
"0.62035185",
"0.61466414",
"0.61309564",
"0.61108446",
"0.6105327",
"0.6105327",
"0.60867393",
"0.6084405",
"0.6059113",
"0.605734... | 0.7379686 | 0 |
Testing the Add function of the calculator | def vU7A():
hzm0 = sFjc()
hzm0.add(4)
assert hzm0.result == 4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LCld():\n assert euR3.add(7, 3) == 10\n assert euR3.add(7.0, 3.0) == 10.0\n assert euR3.add(7, -3) == 4\n assert euR3.add(7.0, -3.0) == 4.0",
"def Ftco(YKHO):\n Aofo = YKHO.calc.add(2, 2)\n YKHO.assertEqual(4, Aofo)",
"def nsFJ(YKHO):\n YKHO.assertEqual(H2v5(3, 8), 11)",
"def nsFJ(YK... | [
"0.8440173",
"0.8434948",
"0.8202158",
"0.8202158",
"0.8202158",
"0.81960595",
"0.8010745",
"0.80049014",
"0.7991473",
"0.7982925",
"0.7965928",
"0.79100037",
"0.7906378",
"0.78788674",
"0.7748355",
"0.7728935",
"0.760771",
"0.7594136",
"0.7570065",
"0.7547949",
"0.7540929",
... | 0.701352 | 82 |
Testing the subtract method of the calculator | def Geul():
hzm0 = sFjc()
hzm0.subtract(1)
assert hzm0.get_result() == -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tw2Z():\n assert euR3.subtract(7, 3) == 4\n assert euR3.subtract(7.0, 3.0) == 4.0\n assert euR3.subtract(7, -3) == 10\n assert euR3.subtract(7.0, -3.0) == 10.0",
"def S6G2():\n hzm0 = sFjc()\n hzm0.subtract_number(5)\n assert hzm0.get_result() == -5",
"def WDhj(YKHO):\n YKHO.assertE... | [
"0.8693571",
"0.85075855",
"0.8305262",
"0.82759595",
"0.8261573",
"0.82330716",
"0.82330716",
"0.821264",
"0.8192774",
"0.8152954",
"0.8083025",
"0.80597436",
"0.7985497",
"0.7983098",
"0.77423507",
"0.7734247",
"0.7657529",
"0.75747967",
"0.7517118",
"0.7416459",
"0.7376896... | 0.8651895 | 1 |
This function determines if the provided string is a valid url | def ziTW(DZXF):
yto3 = False
try:
uRlK.request.urlopen(DZXF)
yto3 = True
except BaseException:
pass
return yto3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yto3(vIwR):\n try:\n KVWQ(vIwR)\n return True\n except:\n return False",
"def XdzF(vIwR):\n return 'http' in vIwR",
"def P5bi(KCHu):\n return tbXV.match(KCHu)",
"def XdzF(KCHu: str) -> bool:\n return KVWQ(KCHu).netloc != ''",
"def yto3(bD7m):\n return bool(ZbWC.ma... | [
"0.8673294",
"0.85257894",
"0.84064704",
"0.8335012",
"0.8059771",
"0.8057145",
"0.8036634",
"0.79782146",
"0.7972021",
"0.7954024",
"0.79393",
"0.79187065",
"0.79172534",
"0.7908587",
"0.7905948",
"0.7904055",
"0.7896498",
"0.788577",
"0.7870402",
"0.78580713",
"0.7840891",
... | 0.71572477 | 68 |
Creates a file called .gfail_defaults that contains default path information to simplify running gfail. Can be overwritten by any manually entered paths. This updates any existing .gfail_defaults file. If args.data_path is 'reset' then any existing defaults will be removed. | def NcNJ(qIxc):
Ux0P = Hy7s.path.join(Hy7s.path.expanduser('~'), '.gfail_defaults')
if Hy7s.path.exists(Ux0P):
lWPh = g59n(Ux0P)
else:
lWPh = {}
if qIxc.data_path is not None:
if qIxc.data_path == 'reset':
lWPh.pop('data_path')
elif Hy7s.path.exists(qIxc.data_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NcNJ(qIxc):\n Ux0P = Hy7s.path.join(Hy7s.path.expanduser('~'), '.gfail_defaults')\n if Hy7s.path.exists(Ux0P):\n lWPh = g59n(Ux0P)\n else:\n lWPh = {}\n if qIxc.data_path is not None:\n if qIxc.data_path == 'reset':\n lWPh.pop('data_path')\n elif Hy7s.path.exi... | [
"0.7620641",
"0.7246542",
"0.7246542",
"0.6094279",
"0.6036922",
"0.57540333",
"0.5414049",
"0.53694755",
"0.53436",
"0.5326386",
"0.5305993",
"0.5305259",
"0.5305259",
"0.52869475",
"0.52749646",
"0.5264033",
"0.5250722",
"0.5233199",
"0.52252257",
"0.5204767",
"0.5184978",
... | 0.7754869 | 0 |
Convert sparse matrix to tuple representation. | def nPep(On0F):
def EV8W(RsfQ):
if not H4yH.isspmatrix_coo(RsfQ):
RsfQ = RsfQ.tocoo()
jNOo = oyIN.vstack((RsfQ.row, RsfQ.col)).transpose()
hkxX = RsfQ.data
ROpF = RsfQ.shape
Qhop = oyIN.lexsort(oyIN.rot90(jNOo))
return (jNOo[Qhop], hkxX[Qhop], ROpF)
i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nPep(On0F):\n\n def EV8W(RsfQ):\n if not H4yH.isspmatrix_coo(RsfQ):\n RsfQ = RsfQ.tocoo()\n jNOo = oyIN.vstack((RsfQ.row, RsfQ.col)).transpose()\n hkxX = RsfQ.data\n ROpF = RsfQ.shape\n return (jNOo, hkxX, ROpF)",
"def nPep(On0F):\n\n def EV8W(RsfQ):\n ... | [
"0.85870504",
"0.82655305",
"0.82655305",
"0.82655305",
"0.82655305",
"0.82655305",
"0.82655305",
"0.82655305",
"0.82527",
"0.82527",
"0.7986327",
"0.602773",
"0.59843755",
"0.5971062",
"0.59706587",
"0.59447116",
"0.59443593",
"0.5910293",
"0.5910293",
"0.5910293",
"0.591029... | 0.8091624 | 10 |
Symmetrically normalize adjacency matrix. | def ujN0(eQUr):
eQUr = H4yH.coo_matrix(eQUr)
mJjf = oyIN.array(eQUr.sum(1))
tvzN = oyIN.power(mJjf, -0.5).flatten()
tvzN[oyIN.isinf(tvzN)] = 0.0
hEeC = H4yH.diags(tvzN)
return eQUr.dot(hEeC).transpose().dot(hEeC).tocoo() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ujN0(eQUr):\n mJjf = oyIN.array(eQUr.sum(1))\n tvzN = oyIN.power(mJjf, -0.5).flatten()\n tvzN[oyIN.isinf(tvzN)] = 0.0\n hEeC = oyIN.diag(tvzN)\n return eQUr.dot(hEeC).transpose().dot(hEeC)",
"def ujN0(eQUr):\n eQUr = H4yH.coo_matrix(eQUr)\n mJjf = oyIN.array(eQUr.sum(1))\n tvzN = oyIN... | [
"0.788518",
"0.7691616",
"0.759434",
"0.7566608",
"0.7335597",
"0.730491",
"0.72684425",
"0.688461",
"0.68616927",
"0.686005",
"0.6832041",
"0.682895",
"0.6750887",
"0.6750057",
"0.67278",
"0.66282207",
"0.6616473",
"0.64879745",
"0.6486613",
"0.63610464",
"0.63610464",
"0.... | 0.7698141 | 7 |
Creates a list of boxes [(ymin,xmin, ...), ...] from features. | def fWWM(bySB):
h3cg = bySB['image/object/bbox/ymin'].values
BQGg = bySB['image/object/bbox/xmin'].values
Z3uP = bySB['image/object/bbox/ymax'].values
bYzl = bySB['image/object/bbox/xmax'].values
return ZylS.transpose([h3cg, BQGg, Z3uP, bYzl]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MrEF(YKHO):\n Qjmf = {'conv4_3': 38, 'conv7': 19, 'conv8_2': 10, 'conv9_2': 5}\n qp5d = {'conv4_3': 0.1, 'conv7': 0.21, 'conv8_2': 0.255, 'conv9_2': 0.3}\n i_sL = {'conv4_3': [0.5], 'conv7': [0.55], 'conv8_2': [0.6], 'conv9_2': [0.66]}\n ACtM = list(Qjmf.keys())\n Z_jY = []\n for G1Hx, jqqY i... | [
"0.69378746",
"0.66383505",
"0.66365016",
"0.64500713",
"0.6441254",
"0.63685644",
"0.63382584",
"0.6323342",
"0.6318142",
"0.6280029",
"0.62593615",
"0.6216456",
"0.6216169",
"0.61580694",
"0.61571467",
"0.6096902",
"0.6092807",
"0.60843086",
"0.6069239",
"0.6064159",
"0.606... | 0.68837494 | 1 |
Tokenize text into words | def wr3U(l5Ny):
s2mk = dFss(l5Ny)
LkXt = GFnk()
zKDd = []
for w2fL in s2mk:
NM_J = LkXt.lemmatize(w2fL).lower().strip()
zKDd.append(NM_J)
return zKDd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wr3U(l5Ny):\n return l5Ny.split(' ')",
"def x1CH(l5Ny):\n return Dhdw.tokenize.word_tokenize(l5Ny)",
"def wr3U(FUjE):\n XPVL = S8Mv(FUjE).lower()\n asO3 = dFss(XPVL)\n return asO3",
"def dFss(l5Ny):\n for HlGW, m1Oc in Nb9k:\n l5Ny = finE(HlGW, m1Oc, l5Ny)\n l5Ny = ' ' + l5Ny ... | [
"0.82015747",
"0.8139867",
"0.8126357",
"0.8006827",
"0.8002833",
"0.79444563",
"0.7927374",
"0.7903637",
"0.785835",
"0.7803104",
"0.7785723",
"0.7779478",
"0.77535665",
"0.77502143",
"0.77495676",
"0.7741321",
"0.77362084",
"0.77175754",
"0.771605",
"0.77137065",
"0.7692061... | 0.7690597 | 21 |
Determines if the pandigital number with decimal string representation num_string satisfies the problem conditions. | def KGCO(K3FP: str) -> bool:
for YRbF in range(rbkU):
_0VL = Edua[YRbF]
YTYa = int(K3FP[_0VL[0] - 1:_0VL[1]])
if YTYa % kO_6[YRbF] != 0:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nkCT(YKHO, NPoT):\n return bool(ZbWC.search('\\\\d', NPoT))",
"def cmyg(YKHO, w2Td):\n try:\n float(w2Td)\n return True\n except ValueError:\n return False",
"def xbPL(Ljzv):\n return z1cb.DECIMALNUMBERREGEX.match(Ljzv) != None",
"def POJ5(exwG):\n if isinstance(exwG, ... | [
"0.6834889",
"0.67161345",
"0.66909087",
"0.6650816",
"0.65644526",
"0.6547312",
"0.6547252",
"0.6488748",
"0.64555776",
"0.64497566",
"0.6447451",
"0.63969874",
"0.63644266",
"0.6315065",
"0.6280636",
"0.6275843",
"0.6262726",
"0.6261015",
"0.6253959",
"0.6235004",
"0.623390... | 0.0 | -1 |
Returns if the word is in the trie. | def TgwQ(YKHO, GIN8: str) -> bool:
ZbOB = YKHO.root
for Npgh in GIN8:
ZbOB = ZbOB.children.get(Npgh)
if ZbOB is None:
return False
return ZbOB.is_word | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DUe0(YKHO, ZOCz, GIN8):\n TXkI = ZOCz\n for sZqf in GIN8:\n if sZqf in TXkI:\n TXkI = TXkI[sZqf]\n else:\n return False\n else:\n if '_end_' in TXkI:\n return TXkI['_end_']\n else:\n return False\n return False",
"def Gtm1(ZO... | [
"0.838632",
"0.8150416",
"0.8123471",
"0.7856802",
"0.7830664",
"0.77935004",
"0.7792806",
"0.77642965",
"0.7747724",
"0.7711298",
"0.76816714",
"0.7677101",
"0.7664614",
"0.76506114",
"0.76338875",
"0.7628353",
"0.76114196",
"0.7577657",
"0.75695884",
"0.756079",
"0.75591743... | 0.7753436 | 8 |
Excludes any questions that aren't published yet. | def k66M(YKHO):
return Y4Gy.objects.filter(publication_date__lte=rIAI.now()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO):\n WlEx = Y4Gy.objects.filter(pub_date__lte=rIAI.now()).order_by('-pub_date')\n j28w = []\n for bAls in WlEx:\n if not bAls.choice_set.all().exists():\n j28w.append(bAls.id)\n return Y4Gy.objects.exclude(pk__in=j28w).filter(pub_date__lte=rIAI.now()).order_by('-pub_date'... | [
"0.66057587",
"0.6447535",
"0.62109476",
"0.62109476",
"0.62109476",
"0.62109476",
"0.62109476",
"0.62109476",
"0.62109476",
"0.62109476",
"0.62109476",
"0.62109476",
"0.62109476",
"0.62109476",
"0.62109476",
"0.62109476",
"0.62109476",
"0.6170101",
"0.6170101",
"0.6101224",
... | 0.6222388 | 2 |
Get attribute value of wrapper if available and of env if not. | def nWc_(YKHO, mWFP):
if mWFP in ['sampling_function', 'env', 'fit_dist', 'reset']:
return object.__getattribute__(YKHO, mWFP)
else:
return getattr(YKHO.env, mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JgjC(YKHO, hkS8):\n if hkS8 in YKHO._vars.keys():\n return YKHO._vars[hkS8]\n else:\n raise ryun('Unknown environment variable: ' + hkS8)",
"def Zmkp(YKHO, M8YW: str, hGI9: str, p_uw: bool=False) -> laHg.Optional[str]:\n H5ew = f'{M8YW}_{hGI9}'.upper()\n Aofo: laHg.Optional[str] = N... | [
"0.6463677",
"0.63506675",
"0.63123435",
"0.6290044",
"0.62491477",
"0.6243202",
"0.61736166",
"0.59429103",
"0.5914098",
"0.5851614",
"0.5848964",
"0.5848964",
"0.5848554",
"0.5834117",
"0.5806653",
"0.5801188",
"0.57902724",
"0.5765679",
"0.576386",
"0.5742184",
"0.57307005... | 0.60938406 | 7 |
If in output mode, set the pin high (1) or low (0) | def set(YKHO, QTBn):
if YKHO.mode == v_pl.OUT:
YKHO._buffer_write(QTBn, ITS7.time() * 1000)
v_pl.output(YKHO.bcm_id, QTBn)
YKHO.state = QTBn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UDRf(YKHO):\n xi8C.setwarnings(False)\n xi8C.setmode(xi8C.BOARD)\n xi8C.setup(YKHO.pin, xi8C.OUT)\n xi8C.output(YKHO.pin, xi8C.LOW)\n ITS7.sleep(3)\n xi8C.output(YKHO.pin, xi8C.HIGH)",
"def Kt7y(YKHO, soJi):\n xi8C.output(YKHO.chanlist[4], soJi)",
"def iqml(YKHO):\n YKHO.stopListeni... | [
"0.7649815",
"0.7548743",
"0.7441307",
"0.73354435",
"0.71780396",
"0.7121803",
"0.706834",
"0.70608014",
"0.7041925",
"0.6992716",
"0.6992716",
"0.6955646",
"0.6929402",
"0.6890403",
"0.6865052",
"0.68295604",
"0.67966545",
"0.6784026",
"0.6710824",
"0.6669501",
"0.66153157"... | 0.6472234 | 28 |
Sends a 401 response that enables basic auth | def eJXT():
Dwep('You must login first.')
return vKnz(nKyW('home')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NLCy():\n return oGir('Not Authorized', 401, {'WWW-Authenticate': 'Basic realm=\"api\"'})",
"def NLCy():\n return oGir('', 401, {'WWW-Authenticate': 'Basic realm=\"Login Required\"'})",
"def NLCy():\n return oGir('You have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm=\... | [
"0.8093736",
"0.80926424",
"0.7958403",
"0.7852648",
"0.7843114",
"0.7824419",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
... | 0.0 | -1 |
Constructor de la clase HeapNode. | def FIMM(YKHO, hcXw, QTg7):
YKHO.char = hcXw
YKHO.freq = QTg7
YKHO.left = None
YKHO.right = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.heap = ZyI_()",
"def FIMM(YKHO):\n YKHO.max_heap = s4ZP()\n YKHO.min_heap = ZyI_()",
"def FIMM(YKHO):\n YKHO.heap = [None]",
"def FIMM(YKHO):\n YKHO.heap = []",
"def FIMM(YKHO):\n YKHO.heap = []",
"def FIMM(YKHO):\n YKHO.heap = []",
"def FIMM(YKHO, xRjf=None)... | [
"0.7540211",
"0.7495445",
"0.7449612",
"0.7400123",
"0.7400123",
"0.7400123",
"0.72300327",
"0.7224344",
"0.7209375",
"0.7182773",
"0.7136554",
"0.70745546",
"0.7047429",
"0.7010996",
"0.69846475",
"0.695481",
"0.6952642",
"0.69490576",
"0.6925778",
"0.69244117",
"0.69045913"... | 0.0 | -1 |
Se construye una priority queue, minHeap Como parametro recibe el diccionario de frecuencias | def Onlz(YKHO, Gjtu):
for H5ew in Gjtu:
Q6kx = YKHO.HeapNode(H5ew, Gjtu[H5ew])
_eVy.heappush(YKHO.heap, Q6kx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def br_Q(Rdbh):\n Rdbh.insert(10)\n Rdbh.insert(5)\n Rdbh.insert(100)\n assert Rdbh._heap[0].value == 10",
"def WPv_():\n from src.priorityq import PriorityQueue\n Rdbh = PriorityQueue()\n Rdbh.insert(15, 5)\n Rdbh.insert(12, 3)\n Rdbh.insert(11, 1)\n Rdbh.insert(6, 2)\n Rdbh.ins... | [
"0.73245394",
"0.724735",
"0.7230464",
"0.70911926",
"0.6946129",
"0.6916181",
"0.68937707",
"0.68039113",
"0.6757227",
"0.6716285",
"0.6688516",
"0.6687496",
"0.6661745",
"0.6660722",
"0.66606385",
"0.66061854",
"0.66046613",
"0.6570331",
"0.6565803",
"0.65304613",
"0.650738... | 0.6614608 | 15 |
Esta funcion se utiliza para hacer que el codigo binario sea multiplo de 8, para asi guardarlo luego como bytes. En caso de no ser multiplo de 8 le agregamos '0' al final para forzarlo a ser multiplo de 8. | def DV46(YKHO, y5wJ):
Tsii = 8 - len(y5wJ) % 8
for YRbF in range(Tsii):
y5wJ += '0'
iYN_ = '{0:08b}'.format(Tsii)
y5wJ = iYN_ + y5wJ
return y5wJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jShR(mLGw):\n if mLGw < 8:\n return 1\n else:\n return mLGw // 6 + 1\n return neaT",
"def zi1e():\n IS3R, EMr5, m9pd = GJBb()\n L96l = ''\n for BWXx in EMr5:\n Wxnj = ord(BWXx)\n L96l += '{:08b}'.format(Wxnj)\n dcxj = int(IS3R['add'])\n if dcxj == 0:\n ... | [
"0.66471833",
"0.6639713",
"0.653793",
"0.6367039",
"0.632429",
"0.6318381",
"0.63074166",
"0.62991506",
"0.6284303",
"0.62339085",
"0.62193197",
"0.6145768",
"0.6106193",
"0.6101097",
"0.6099698",
"0.6058014",
"0.6036505",
"0.5985778",
"0.5973782",
"0.5963074",
"0.59404814",... | 0.0 | -1 |
Create and configure an instance of the Flask application. | def LUif(zmu8=None):
P4t4 = L2w0(__name__, instance_relative_config=True)
if P4t4.config['ENV'] == 'production':
P4t4.config.from_object('config.ProductionConfig')
else:
P4t4.config.from_object('config.DevelopmentConfig')
if P4t4.config['SECRET_KEY'] is None:
raise Exception("SEC... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bxQM():\n P4t4 = L2w0(import_name=__name__, template_folder='templates', static_folder='static')\n P4t4 = jPWl(P4t4)\n fRSk(P4t4)\n wyyA.init_app(P4t4)\n WWrj(P4t4.config)\n S0MI.info('Set up app & logger.')\n _wue(P4t4.config)\n ptR4(P4t4.config)\n TfOc(P4t4)\n sSY8(P4t4)\n re... | [
"0.8524236",
"0.8516853",
"0.8504485",
"0.83319825",
"0.82396483",
"0.82314265",
"0.8200104",
"0.81300336",
"0.80288595",
"0.8026753",
"0.8019436",
"0.79989535",
"0.7984679",
"0.7978355",
"0.7973289",
"0.7970172",
"0.7959833",
"0.79556865",
"0.7952428",
"0.7946338",
"0.793713... | 0.7665361 | 62 |
Getter method for tunnel_metric, mapped from YANG variable /mpls_state/ldp/tunnels/ldp_tunnels/tunnel_metric (uint32) | def pTNp(YKHO):
return YKHO.__tunnel_metric | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQAA(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name='tunnel-metric', rest_name='tunnel-metric', parent=YKHO, path_help... | [
"0.787248",
"0.5775085",
"0.52268475",
"0.5217927",
"0.5169334",
"0.48704112",
"0.47564745",
"0.46870294",
"0.46567965",
"0.46452942",
"0.45842758",
"0.45474067",
"0.45454866",
"0.45203787",
"0.4490149",
"0.44528368",
"0.44103217",
"0.43810743",
"0.43802214",
"0.43174794",
"0... | 0.6746544 | 1 |
Setter method for tunnel_metric, mapped from YANG variable /mpls_state/ldp/tunnels/ldp_tunnels/tunnel_metric (uint32) | def rQAA(YKHO, Ty9i, tyeH=False):
if hasattr(Ty9i, '_utype'):
Ty9i = Ty9i._utype(Ty9i)
try:
a1PO = ltgX(Ty9i, base=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name='tunnel-metric', rest_name='tunnel-metric', parent=YKHO, path_helper=YKHO._... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wnyn(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name='next-hop-metric', rest_name='next-hop-metric', parent=YKHO, path_... | [
"0.6468852",
"0.60566455",
"0.5836589",
"0.49196678",
"0.46951672",
"0.4554392",
"0.4550597",
"0.4487862",
"0.44511905",
"0.43346286",
"0.43113655",
"0.42628804",
"0.42611477",
"0.4200006",
"0.41528833",
"0.41470173",
"0.4097872",
"0.40919003",
"0.4077287",
"0.40689656",
"0.4... | 0.8605958 | 0 |
Getter method for name, mapped from YANG variable /mpls_state/ldp/tunnels/ldp_tunnels/name (string) | def wGWt(YKHO):
return YKHO.__name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def omp9(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=QMSQ, is_leaf=True, yang_name='name', rest_name='name', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths=True, namespace='urn:brocade... | [
"0.5090813",
"0.5058265",
"0.4923551",
"0.4921544",
"0.4901212",
"0.484595",
"0.48404792",
"0.483194",
"0.48164737",
"0.48053187",
"0.47947714",
"0.47947714",
"0.4785435",
"0.47577295",
"0.47577295",
"0.47577295",
"0.47577295",
"0.47577295",
"0.47577295",
"0.4754745",
"0.4748... | 0.0 | -1 |
Setter method for name, mapped from YANG variable /mpls_state/ldp/tunnels/ldp_tunnels/name (string) | def omp9(YKHO, Ty9i, tyeH=False):
if hasattr(Ty9i, '_utype'):
Ty9i = Ty9i._utype(Ty9i)
try:
a1PO = ltgX(Ty9i, base=QMSQ, is_leaf=True, yang_name='name', rest_name='name', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths=True, namespace='urn:brocade.com:mgmt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WZrJ(YKHO, mWFP: str):\n YKHO._name = mWFP",
"def WZrJ(YKHO, XWXe):\n YKHO.name = XWXe\n return YKHO.name",
"def mWFP(YKHO, mWFP: str):\n if mWFP is None:\n raise ValueError('Invalid value for `name`, must not be `None`')\n YKHO._name = mWFP",
"def mWFP(YKHO, mWFP: str):\n if mWF... | [
"0.5768138",
"0.57261276",
"0.5717015",
"0.5717015",
"0.5717015",
"0.5717015",
"0.5717015",
"0.5717015",
"0.5717015",
"0.5717015",
"0.5717015",
"0.57159704",
"0.57159704",
"0.5680133",
"0.5680133",
"0.5680133",
"0.5680133",
"0.56487364",
"0.5615849",
"0.5615849",
"0.5615849",... | 0.6363787 | 0 |
Getter method for out_segments, mapped from YANG variable /mpls_state/ldp/tunnels/ldp_tunnels/out_segments (list) | def qHU6(YKHO):
return YKHO.__out_segments | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wniT(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=QuAi('outgoing_interface', iZtv.out_segments, yang_name='out-segments', rest_name='out-segments', parent=YKHO, is_container='list', user_ordered=False, path_helper=YKHO._pa... | [
"0.7782451",
"0.58628637",
"0.54530233",
"0.50903213",
"0.48552582",
"0.47954535",
"0.47702944",
"0.47534996",
"0.46822906",
"0.46325573",
"0.4562999",
"0.45285845",
"0.45221573",
"0.45125315",
"0.45005968",
"0.4498356",
"0.44559428",
"0.44239897",
"0.4373917",
"0.43685722",
... | 0.71787906 | 1 |
Get the genesis block | def omPH(Emd4):
WBPg = {'prev_hash': vRyL.HASH_LEN * '0', 'root': vRyL.HASH_LEN * 'f', 'timestamp': 1337.0, 'nonce': vRyL.NONCE_LEN * '0'}
return Emd4(WBPg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cb0j():\n return n3Kt(0, '0', 1465154705, 'my genesis block!!', '816534932c2b7154836da6afc367695e6337db8a921823784c14378abed4f7d7')",
"def xi7g():\n return n3Kt(**bNNl)",
"def tBOj(YKHO):\n return n3Kt('Genesis Block')",
"def _Pic():\n XkN1 = n3Kt(index=0, timestamp=qcWV.now(), data='Genesis ... | [
"0.8612813",
"0.8519608",
"0.7926867",
"0.78212637",
"0.7589681",
"0.7543601",
"0.7536982",
"0.74724776",
"0.7427732",
"0.7427732",
"0.7301296",
"0.71517515",
"0.7071303",
"0.7043413",
"0.7041905",
"0.69644314",
"0.68472135",
"0.6812987",
"0.6805526",
"0.67819744",
"0.6730378... | 0.6711841 | 21 |
Create random string from a character set. | def DsQ5(u54L):
return ''.join((tuKI.choice('ACDEFGHJKMNPQRTWXYZ') for bGrB in range(u54L))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def osaO(zZas, u54L):\n KCHu = ''\n Rv0k = len(zZas) - 1\n Mkmy = tuKI.SystemRandom()\n for YRbF in range(0, u54L + 1):\n exwG = Mkmy.randint(0, Rv0k)\n KCHu = KCHu + zZas[exwG]\n return KCHu",
"def wVBp():\n return ''.join((tuKI.choice(DRnx) for bGrB in range(qs0H)))",
"def szj... | [
"0.7881733",
"0.7214051",
"0.6963568",
"0.69582874",
"0.6918719",
"0.6907419",
"0.68807536",
"0.6832773",
"0.68215317",
"0.68125284",
"0.68057466",
"0.6805543",
"0.6800336",
"0.672561",
"0.67117333",
"0.67064047",
"0.662535",
"0.6614045",
"0.6587097",
"0.65863824",
"0.6568078... | 0.0 | -1 |
Read summary of job. | def dbYd(YKHO, pan_, mWFP='*summary.txt'):
QKn7 = SC2F.glob(Hy7s.path.join(YKHO.path, mWFP))
if QKn7:
zTCV = QKn7[0]
if Hy7s.path.exists(zTCV):
with open(zTCV, 'r') as J_rF:
for zFiD in J_rF:
if pan_ in zFiD:
return zFiD[:-1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uNkU(oCfW):\n if oCfW is None:\n return None\n bD7m = Fv2L.WIKIPEDIA_URL.format(uRlK.parse.quote(oCfW))\n Mkmy = G4JS.get(bD7m).content\n Xz_m = qQXR.loads(Mkmy)\n if type(Xz_m) == dict and Xz_m['title'] != 'Not found.':\n QxIo = Xz_m['extract']\n if len(QxIo) < 65535:\n ... | [
"0.68054897",
"0.6259136",
"0.622249",
"0.6129661",
"0.61105084",
"0.60962766",
"0.59839576",
"0.59413147",
"0.58795303",
"0.5796104",
"0.5789329",
"0.5772065",
"0.5756708",
"0.5600015",
"0.5553826",
"0.5537408",
"0.54992276",
"0.5447802",
"0.5391038",
"0.5378679",
"0.5373208... | 0.0 | -1 |
Get a configuration from the current app, or fall back to os.env. | def YD9W(P4t4: Optional[Flask]=None) -> GySg:
if P4t4 is not None:
if isinstance(P4t4, L2w0):
return P4t4.config
if H6Ho:
return H6Ho.config
return Hy7s.environ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tBzm():\n ZqCk = Hy7s.getenv('APP_ENV', 'TEST')\n return PnW9.get_config(ZqCk)",
"def zKPb():\n if Hy7s.environ['ENVIRONMENT'] == 'production':\n return mrS8()\n elif Hy7s.environ['ENVIRONMENT'] == 'staging':\n return ESFD()\n elif Hy7s.environ['ENVIRONMENT'] == 'testing':\n ... | [
"0.75097376",
"0.7439782",
"0.72174436",
"0.71761423",
"0.71068466",
"0.70351344",
"0.70303476",
"0.7015616",
"0.70153475",
"0.6958263",
"0.6922452",
"0.68456364",
"0.68438685",
"0.68353",
"0.6807706",
"0.6803812",
"0.67981213",
"0.6783477",
"0.6770236",
"0.6758533",
"0.67140... | 0.76392716 | 0 |
Get the current application global proxy object. Returns proxy or None | def K6YZ() -> h8nf[CwzH.local.LocalProxy]:
if Oa1e:
return Oa1e
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xgM5(YKHO):\n return YKHO.proxy()",
"def kMyc(YKHO):\n if YKHO.__proxy is None:\n return Dh8L\n elif isinstance(YKHO.__proxy, exCv):\n return YKHO.__proxy\n else:\n raise ValueError('Proxy!!')",
"def kMyc(YKHO):\n return YKHO.get('proxy', None)",
"def eWlL(YKHO):\n ... | [
"0.71598953",
"0.69232327",
"0.6776725",
"0.6643692",
"0.6639855",
"0.6481546",
"0.6112692",
"0.60281223",
"0.60005057",
"0.59307635",
"0.5909591",
"0.5892466",
"0.5797842",
"0.57395446",
"0.57395446",
"0.5712025",
"0.5619453",
"0.5609545",
"0.55908555",
"0.55908555",
"0.5562... | 0.7704217 | 0 |
Object contructor. Set key for API requests | def FIMM(YKHO, rJDA):
YKHO._api_key = rJDA
YKHO._get_params = uRlK.urlencode({'subscription-key': rJDA})
YKHO._headers = {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, rJDA: str):\n YKHO.api_key = rJDA",
"def FIMM(YKHO, rJDA):\n YKHO.api_key = rJDA",
"def FIMM(YKHO, H5ew=None):\n YKHO._key = H5ew or Hy7s.environ['HERE_API_KEY']",
"def FIMM(YKHO, rJDA=None):\n YKHO.api_key = rJDA",
"def FIMM(YKHO, H5ew=None):\n YKHO.key = H5ew",
"def FIMM(Y... | [
"0.81402403",
"0.81222415",
"0.8114551",
"0.8073673",
"0.80504924",
"0.79244316",
"0.7870784",
"0.78264487",
"0.78235483",
"0.77268183",
"0.7714379",
"0.76652837",
"0.7613839",
"0.76039046",
"0.75493795",
"0.7487023",
"0.7484333",
"0.7457474",
"0.74551564",
"0.74551564",
"0.7... | 0.7292994 | 30 |
Testing bad tailed option. | def _TFV(YKHO):
with YKHO.assertRaises(ValueError):
q07z(2.3, 100, 'greater') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e0Ro(YKHO):\n gcpQ._items = []\n HwRy.argv = ['drive.py', '> not here']\n b8V_(None)\n YKHO.assertEqual(len(gcpQ._items), 1)\n YKHO.assertEqual(gcpQ._items[0].title, O16c['InvalidOption']['title'])\n YKHO.assertFalse(gcpQ._items[0].valid)\n YKHO.assertFalse(gcpQ._items[0].arg)\n gcpQ._i... | [
"0.75627965",
"0.72289014",
"0.7110534",
"0.705724",
"0.696193",
"0.6945205",
"0.69374156",
"0.693025",
"0.6921404",
"0.68064135",
"0.67977136",
"0.67970276",
"0.67543125",
"0.6746969",
"0.67439955",
"0.6680917",
"0.6669686",
"0.6645032",
"0.6637725",
"0.66218424",
"0.6605776... | 0.6197457 | 52 |
Returns a set of extensions disabled on this channel | def qhUu(YKHO, YwkQ):
return YKHO.disabled_extensions.get(YwkQ, set()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b10N(YKHO):\n return YKHO._disabled_plugins",
"def dlnD(YKHO, YwkQ):\n return YKHO.extension_names - YKHO.get_disabled(YwkQ)",
"def ptZI(YKHO):\n return []",
"def qTKf(YKHO):\n return []",
"def CBZq(YKHO):\n return YKHO.properties.get('extensions', BmUx(YKHO.context, lJWt, oudJ('extensio... | [
"0.7352268",
"0.7041985",
"0.69945544",
"0.6629966",
"0.6586109",
"0.65787256",
"0.65787256",
"0.64285773",
"0.639227",
"0.63875234",
"0.6385988",
"0.627853",
"0.6271314",
"0.62429434",
"0.6230865",
"0.61979973",
"0.6194124",
"0.61913097",
"0.6157169",
"0.61224616",
"0.612246... | 0.8177675 | 0 |
The name of the column. | def z0q4(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'column_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W0tD(YKHO):\n return YKHO.col_name",
"def GClg(YKHO):\n return YKHO.__column",
"def z0q4(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'column_name')",
"def nrF0(YKHO) -> str:\n if YKHO.is_shared():\n assert YKHO._shared_id is not None\n return YKHO._shared_id\n else:\n ... | [
"0.88936096",
"0.8834523",
"0.8703659",
"0.7820816",
"0.7793215",
"0.770282",
"0.75885355",
"0.75579673",
"0.75579673",
"0.75195926",
"0.74106073",
"0.74106073",
"0.7254733",
"0.7254733",
"0.7237926",
"0.71962434",
"0.7195401",
"0.7176704",
"0.71206796",
"0.7115431",
"0.71025... | 0.8617958 | 4 |
The name of the resource group. The name is case insensitive. | def TRLE(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'resource_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')",
"def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_grou... | [
"0.8591517",
"0.83646333",
"0.82033736",
"0.82033736",
"0.82033736",
"0.82033736",
"0.82033736",
"0.82033736",
"0.82033736",
"0.82033736",
"0.82033736",
"0.82033736",
"0.82033736",
"0.82033736",
"0.8175502",
"0.8084937",
"0.8084937",
"0.8084937",
"0.8084937",
"0.8084937",
"0.... | 0.8087981 | 51 |
The name of the schema. | def QF7s(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'schema_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CTNJ(YKHO):\n return YKHO.__schema + '.' + YKHO.__name",
"def hLDU(YKHO):\n return YKHO.NAME_TYPE_SCHEMAS.get(YKHO.name_type, None)",
"def nQZf(IR_9):\n print(IR_9)\n pmON = Hy7s.path.normpath(IR_9)\n return Hy7s.path.sep.join(pmON.split(Hy7s.path.sep)[-3:])",
"def uPxI(YKHO) -> str:\n ... | [
"0.80118686",
"0.7685699",
"0.76807356",
"0.76068985",
"0.7238417",
"0.71435183",
"0.7129686",
"0.6990798",
"0.6873381",
"0.6833481",
"0.6824794",
"0.68080795",
"0.6789163",
"0.67179954",
"0.6712032",
"0.66892123",
"0.6685197",
"0.6620679",
"0.6548385",
"0.654416",
"0.6539484... | 0.8805085 | 0 |
The information type ID. | def WQCA(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'information_type_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WQCA(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'information_type_id')",
"def QZXZ(YKHO) -> int:\n ...",
"def KEs8(YKHO) -> int:\n return YKHO._ot",
"def GInC(YKHO):\n raise Exception('Not implemented!' + YKHO.__class__)",
"def EhYO(YKHO):\n return YKHO._type_id",
"def Eh... | [
"0.8816013",
"0.8445265",
"0.7995544",
"0.79396313",
"0.79106444",
"0.7834661",
"0.7779588",
"0.77263844",
"0.7621873",
"0.750992",
"0.7487657",
"0.72888786",
"0.7223047",
"0.7057642",
"0.6951764",
"0.6938796",
"0.6934405",
"0.68459255",
"0.684111",
"0.68215436",
"0.68215436"... | 0.8550614 | 1 |
Get an existing SqlPoolSensitivityLabel resource's state with the given name, id, and optional extra properties used to qualify the lookup. | def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'SqlPoolSensitivityLabel':
VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))
r6DL = UF21.__new__(UF21)
r6DL.__dict__['column_name'] = None
r6DL.__dict__['information_type'] = None
r6DL.__dic... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DeTJ(id):\n return Ylko(vjcZ.get_label(id))",
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, DaBm: Optional[pulumi.Input[str]]=None, JBZA: Optional[pulumi.Input[str]]=None, VEkg: Optional[pulumi.Input[float]]=None, HqnL: Optional[pulumi.Input[str]]=None, bUWH: Opt... | [
"0.5292389",
"0.5146897",
"0.5050671",
"0.4960148",
"0.49591848",
"0.48732096",
"0.48411962",
"0.48371366",
"0.4825001",
"0.48135552",
"0.4808048",
"0.48046932",
"0.47910935",
"0.47805795",
"0.47394773",
"0.47091335",
"0.46723664",
"0.46375751",
"0.46363795",
"0.46112335",
"0... | 0.7888315 | 0 |
The information type ID. | def WQCA(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'information_type_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WQCA(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'information_type_id')",
"def QZXZ(YKHO) -> int:\n ...",
"def KEs8(YKHO) -> int:\n return YKHO._ot",
"def GInC(YKHO):\n raise Exception('Not implemented!' + YKHO.__class__)",
"def EhYO(YKHO):\n return YKHO._type_id",
"def EhY... | [
"0.8550614",
"0.8445265",
"0.7995544",
"0.79396313",
"0.79106444",
"0.7834661",
"0.7779588",
"0.77263844",
"0.7621873",
"0.750992",
"0.7487657",
"0.72888786",
"0.7223047",
"0.7057642",
"0.6951764",
"0.6938796",
"0.6934405",
"0.68459255",
"0.684111",
"0.68215436",
"0.68215436"... | 0.8816013 | 0 |
Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or not. | def gv1u(YKHO) -> qe4Y.Output[bool]:
return qe4Y.get(YKHO, 'is_disabled') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I6lu(YKHO) -> bool:\n return True",
"def lbi2(YKHO) -> bool:\n return qe4Y.get(YKHO, 'disabled')",
"def lbi2(YKHO) -> bool:\n return qe4Y.get(YKHO, 'disabled')",
"def gv1u(YKHO):\n return YKHO.__contains__('disabled')",
"def lbi2(YKHO) -> qe4Y.Output[bool]:\n return qe4Y.get(YKHO, 'disab... | [
"0.64761704",
"0.64364034",
"0.64364034",
"0.64180195",
"0.6351265",
"0.62909853",
"0.62909853",
"0.62909853",
"0.62909853",
"0.62909853",
"0.62909853",
"0.62909853",
"0.62909853",
"0.62909853",
"0.62909853",
"0.62909853",
"0.62909853",
"0.6276564",
"0.6276564",
"0.6237687",
... | 0.6219868 | 21 |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" | def type(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, '... | [
"0.7918516",
"0.7918516",
"0.7866337",
"0.7866337",
"0.7866337",
"0.7866337",
"0.7866337",
"0.7708053",
"0.75534964",
"0.7282099",
"0.70591027",
"0.6979169",
"0.69202054",
"0.6868452",
"0.67303157",
"0.67049116",
"0.6654272",
"0.6646357",
"0.66396123",
"0.66396123",
"0.663961... | 0.0 | -1 |
Turns an ObjectLabel into an box_3d | def w73Y(dgiT):
FBfN.check_object_label_format(dgiT)
oz7l = oyIN.zeros(7)
oz7l[0:3] = dgiT.t
oz7l[3] = dgiT.l
oz7l[4] = dgiT.w
oz7l[5] = dgiT.h
oz7l[6] = dgiT.ry
return oz7l | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BybM(oz7l, n0X3='Car'):\n FBfN.check_box_3d_format(oz7l)\n dgiT = lXLs.ObjectLabel()\n dgiT.type = n0X3\n dgiT.t = oz7l.take((0, 1, 2))\n dgiT.l = oz7l[3]\n dgiT.w = oz7l[4]\n dgiT.h = oz7l[5]\n dgiT.ry = oz7l[6]\n return dgiT",
"def tUDc(z1Rg, L3F1):\n return v4M7(z1Rg.x, z1Rg.... | [
"0.77555287",
"0.64040226",
"0.63454074",
"0.6308304",
"0.6102986",
"0.6064366",
"0.6003773",
"0.59435654",
"0.58984995",
"0.58250475",
"0.57929236",
"0.5776907",
"0.5766211",
"0.5724403",
"0.55941707",
"0.55842286",
"0.55777836",
"0.55655193",
"0.55435383",
"0.5541456",
"0.5... | 0.8783067 | 0 |
Returns the derivative of the polynomial. | def BXW4(YKHO):
Z9rb = []
for YRbF, wEf2 in enumerate(YKHO.coeff):
Z9rb.append(YRbF * wEf2)
del Z9rb[0]
return Pj0c(Z9rb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VVyp(YKHO) -> xitm:\n FN88: list[float] = [0] * YKHO.degree\n for YRbF in range(YKHO.degree):\n FN88[YRbF] = YKHO.coefficients[YRbF + 1] * (YRbF + 1)\n return xitm(YKHO.degree - 1, FN88)",
"def VVyp(YKHO):\n return YKHO.__derivative",
"def VVyp(YKHO, WKvO):\n epBp = oyIN.asarray(WKvO)... | [
"0.80640745",
"0.72366905",
"0.7205113",
"0.7043707",
"0.69380283",
"0.6904667",
"0.68858963",
"0.6874331",
"0.685892",
"0.6845841",
"0.68192995",
"0.67496014",
"0.6719688",
"0.66250384",
"0.6597144",
"0.6544061",
"0.6536769",
"0.6518428",
"0.6518428",
"0.65071756",
"0.647962... | 0.7513244 | 1 |
Returns reputation of the user. | def AQZe(NCls, uJjO):
Jyax = NCls.execute('select count(*) from message where\n author_id = %s' % uJjO)
return Jyax.fetchone()[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yKl8(YKHO) -> int:\n return YKHO._reputation",
"def BqbH(YKHO):\n YKHO._extract()\n if YKHO.user_type == 0:\n for H5ew in HObr.USER_NEW_REPUTATION_MAPPING:\n if H5ew.high >= YKHO.no_of_followers >= H5ew.low:\n return HObr.USER_NEW_REPUTATION_MAPPING[H5ew]\n elif Y... | [
"0.8184056",
"0.76162",
"0.69041735",
"0.6345966",
"0.62551254",
"0.6173726",
"0.6038486",
"0.59987664",
"0.5835841",
"0.56642777",
"0.55898046",
"0.5483086",
"0.5474121",
"0.54692876",
"0.5463739",
"0.5463739",
"0.5461857",
"0.5408507",
"0.5321992",
"0.5291672",
"0.5236963",... | 0.77521765 | 1 |
maximum value of dtype | def bQ6z(yDqo):
return X1VS._max_value(yDqo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G8zU(YKHO):\n SLLj = YKHO.NumPyDataType\n if issubclass(SLLj, XTiz.integer):\n return XTiz.iinfo(SLLj).max\n elif issubclass(SLLj, XTiz.floating):\n return XTiz.inf\n else:\n raise TypeError('Cannot handle DataType: {0}'.format(SLLj))",
"def max(YKHO):\n return oyIN.max(YK... | [
"0.77579236",
"0.7565953",
"0.7509675",
"0.7484681",
"0.73976016",
"0.7336556",
"0.7278407",
"0.70756334",
"0.70754564",
"0.7052625",
"0.7042913",
"0.7042913",
"0.70154893",
"0.68845314",
"0.68314886",
"0.6814904",
"0.6795724",
"0.6789237",
"0.6776031",
"0.6769447",
"0.676771... | 0.8582118 | 0 |
Convert value to TVM node or function. | def a8Pe(BWXx):
if isinstance(BWXx, (f_8k, bdwm)):
return BWXx
if callable(BWXx):
return T1CL(BWXx)
return sRlU(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a8Pe(YKHO, BWXx):\n return BWXx",
"def a8Pe(YKHO, BWXx):\n return BWXx",
"def a8Pe(YKHO, BWXx, QpfX):\n return BWXx",
"def a8Pe(YKHO, BWXx):\n return QXkI.convert(YKHO, BWXx)",
"def nrOS(YKHO, BWXx):\n with ZylS.name_scope('parser'):\n nPrm = x8I_(BWXx)\n return YKHO._parse... | [
"0.6279382",
"0.6256688",
"0.60399127",
"0.6025817",
"0.60166246",
"0.5995694",
"0.5848212",
"0.5749729",
"0.57351524",
"0.5657269",
"0.5657269",
"0.5632645",
"0.55735344",
"0.5570252",
"0.5570252",
"0.5559893",
"0.55296767",
"0.55156195",
"0.54953367",
"0.54953367",
"0.54931... | 0.847413 | 0 |
Add edge from vertex1 to vertex2 Outgoing path is added for vertex1 and Incoming path is added to vertex2 | def rz7z(YKHO, CBRg, j9ly):
CBRg.add_outgoing_node(j9ly)
j9ly.add_incoming_node(CBRg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rz7z(YKHO, hQHm, jlSq):\n YKHO.vertices[hQHm].add(jlSq)",
"def rz7z(YKHO, hQHm, jlSq):\n pass",
"def rz7z(YKHO, hQHm, jlSq):\n if hQHm in YKHO.vertices and jlSq in YKHO.vertices:\n YKHO.vertices[hQHm].add(jlSq)",
"def rz7z(YKHO, hQHm, jlSq):\n if hQHm in YKHO.vertices and jlSq in YKHO.... | [
"0.80195355",
"0.8014558",
"0.79909235",
"0.78902555",
"0.78623915",
"0.78332496",
"0.77914",
"0.7787613",
"0.77378166",
"0.77030283",
"0.7691134",
"0.76855844",
"0.76425695",
"0.7630411",
"0.760392",
"0.7576403",
"0.7557445",
"0.7533331",
"0.7397467",
"0.73893046",
"0.737633... | 0.84819597 | 0 |
Opens file as a file object and returns list of contents. | def OcVp(Ux0P):
fMo7 = open(Ux0P)
fMo7 = fMo7.read()
fMo7 = fMo7.split()
return fMo7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U0fF(gIsw):\n with open(gIsw) as nUeQ:\n nPrm = nUeQ.read().splitlines()\n return nPrm",
"def Nwr9(nUeQ):\n OZKa = []\n with open(nUeQ) as LtY3:\n N5Pj = m6_J.reader(LtY3)\n OZKa = list(N5Pj)\n return OZKa",
"def nSzq(gIsw):\n eHNT = open(gIsw)\n Nqlg = eHNT.readli... | [
"0.76863444",
"0.75270146",
"0.7516787",
"0.7369235",
"0.73338413",
"0.71808106",
"0.71676",
"0.7146824",
"0.7086747",
"0.7080839",
"0.7004382",
"0.69245505",
"0.690404",
"0.68940645",
"0.6878723",
"0.6855489",
"0.6831297",
"0.6764957",
"0.6756562",
"0.6756251",
"0.6742705",
... | 0.0 | -1 |
Initialize the weights of the nnet | def C0Lv(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vJuA(YKHO):\n raise NotImplementedError",
"def sTi3(YKHO):\n for gEmA in YKHO._cnn_layers:\n dIoi.WeightsInitializer.initialize_layer_or_model(gEmA)",
"def i7WW(YKHO):\n yYlq(YKHO.conv1)\n yYlq(YKHO.conv2)\n uHk4(YKHO.norm1)\n uHk4(YKHO.norm2)",
"def vB93(YKHO):\n YKHO.apply(Y... | [
"0.8081424",
"0.8063455",
"0.8005433",
"0.79929304",
"0.7989815",
"0.7973171",
"0.7935623",
"0.79169947",
"0.7898647",
"0.7873155",
"0.786975",
"0.7854538",
"0.7819653",
"0.7791364",
"0.778897",
"0.7758977",
"0.77389",
"0.77116245",
"0.76937133",
"0.7688013",
"0.76717275",
... | 0.8290864 | 0 |
Convert string to list if not already | def WOPa(wEf2):
if type(wEf2) == str:
return list(set(wEf2.replace(' ', '').split(',')))
return list(set(wEf2)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n0SL(input):\n if isinstance(input, str):\n return [input]\n else:\n return input",
"def CD8v(Emd4, Ty9i: Union[List[str], str]) -> x1iM[str]:\n if isinstance(Ty9i, str):\n return Ty9i.split(',')\n return Ty9i",
"def OE6J(fruk):\n if isinstance(fruk, str):\n retur... | [
"0.80174595",
"0.7779365",
"0.76761246",
"0.74755675",
"0.740217",
"0.733614",
"0.727507",
"0.7184322",
"0.7121702",
"0.71059835",
"0.7094156",
"0.70723337",
"0.7016092",
"0.70036477",
"0.6989471",
"0.6876689",
"0.68761295",
"0.6848565",
"0.684002",
"0.67927045",
"0.6792517",... | 0.70332205 | 12 |
Stack k last frames. Returns lazy array, which is much more memory efficient. See Also baselines.common.atari_wrappers.LazyFrames | def FIMM(YKHO, sEAN, G1Hx):
ch3p.Wrapper.__init__(YKHO, sEAN)
YKHO.k = G1Hx
YKHO.frames = MUE7([], maxlen=G1Hx)
BLg0 = sEAN.observation_space.shape
YKHO.observation_space = oi6k.Box(low=0, high=255, shape=BLg0[:-1] + (BLg0[-1] * G1Hx,), dtype=sEAN.observation_space.dtype) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qPQo(bySB, G1Hx=10, Crrw=None):\n UWrr, rpgT = (bySB.shape[0], bySB.shape[1])\n T0NB = oyIN.array([bySB[:, f4IJ - G1Hx:f4IJ + G1Hx + 1] for f4IJ in range(G1Hx, rpgT - G1Hx - 1)])\n T0NB = oyIN.reshape(T0NB, [-1, (2 * G1Hx + 1) * UWrr]).T\n if Crrw is not None:\n h6dl = Crrw[G1Hx:rpgT - G1Hx ... | [
"0.57865286",
"0.5741627",
"0.5726587",
"0.567123",
"0.56566584",
"0.5654241",
"0.56238633",
"0.5528545",
"0.5497",
"0.5494203",
"0.53637475",
"0.53107125",
"0.53068376",
"0.52863336",
"0.52829486",
"0.52807283",
"0.52513605",
"0.52412486",
"0.52375424",
"0.52159554",
"0.5197... | 0.0 | -1 |
Convert a datetime.datatime object to a datetime.date object | def Q5kH(eGVy: datetime) -> _c1T:
assert isinstance(eGVy, qcWV), 'Not a datetime object.'
return eGVy.date() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qv80(BWXx):\n assert isinstance(BWXx, qcWV.date)\n return qcWV.datetime(BWXx.year, BWXx.month, BWXx.day)",
"def dImJ(YKHO, WKvO):\n if isinstance(WKvO, qcWV.datetime):\n return WKvO.date()\n return WKvO",
"def ZITl(doIl: date) -> qcWV:\n assert isinstance(doIl, _c1T), 'Not a date obje... | [
"0.7541873",
"0.7527641",
"0.743314",
"0.71043843",
"0.7079859",
"0.6963271",
"0.68946266",
"0.6842356",
"0.6833108",
"0.6800361",
"0.6779418",
"0.67234695",
"0.6576024",
"0.65474147",
"0.6536968",
"0.64717054",
"0.6425142",
"0.63471526",
"0.6323886",
"0.6271963",
"0.6265224"... | 0.7451771 | 2 |
Add a name to the names list. | def HeOm(YKHO, tO9_, mWFP):
try:
ZWCE = YKHO.get_local(tO9_, 'names')
except KeyError:
ZWCE = set()
ZWCE.add(mWFP)
YKHO.set_local(tO9_, 'names', ZWCE) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JGxW(YKHO, mWFP: str) -> None:\n YKHO._names.append(mWFP)",
"def tHSi(YKHO, mWFP):\n YKHO.__names.append(mWFP)\n YKHO.Modified()",
"def fkKx(YKHO, *uGg4):\n YKHO.names += list(uGg4)",
"def JGxW(YKHO, mWFP):\n YKHO.name = mWFP",
"def xFBh(YKHO, mWFP):\n YKHO._otherNames.append(mWFP.str... | [
"0.86947227",
"0.83983153",
"0.79373425",
"0.7711156",
"0.70747286",
"0.7012143",
"0.69368744",
"0.69045013",
"0.68825597",
"0.68747795",
"0.6838872",
"0.6763741",
"0.66478956",
"0.6561512",
"0.65537184",
"0.64515525",
"0.64220285",
"0.6418434",
"0.6418434",
"0.6418434",
"0.6... | 0.8068757 | 2 |
Match if the name matches a regular expression. | def L8Rf(YKHO, tO9_, njyT, pan_=None):
rnHI = xypE.regex.perl2re(njyT)
ZWCE = YKHO._get_image_names(tO9_)
for mWFP in ZWCE:
if rnHI.match(mWFP):
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u1bq(vIwR, hHld: bool):\n assert (ZbWC.fullmatch(mXDZ, vIwR) is not None) == hHld",
"def rAkn(YKHO, mWFP, MBW2):\n if mWFP in MBW2:\n return True\n for ZfUD in MBW2:\n XP5J = ZbWC.compile(ZfUD)\n kUBT = XP5J.match(mWFP)\n if kUBT is not None:\n return True\n ... | [
"0.7096113",
"0.68586236",
"0.6832065",
"0.68237925",
"0.66911465",
"0.66336304",
"0.6611614",
"0.6572248",
"0.65638494",
"0.6549043",
"0.644251",
"0.6401486",
"0.6392493",
"0.63684195",
"0.63526124",
"0.63193214",
"0.63174033",
"0.62669635",
"0.6262099",
"0.6259306",
"0.6240... | 0.6171424 | 24 |
Ensures the user has an active account. Optimized for the ``django.contrib.auth.models.User`` case. | def akPH(YKHO, CBIr):
if not YKHO.require_active:
return True
return CBIr.is_active | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NWpQ(YKHO, CBIr):\n if not CBIr.active:\n CBIr.active = True\n return True\n return False",
"def NWpQ(YKHO, CBIr):\n if not CBIr.active:\n CBIr.active = True\n YKHO.save(CBIr)\n return True\n return",
"def RRlm(YKHO):\n NWpQ(YKHO.user, YKHO.request)\n YK... | [
"0.7736804",
"0.7614778",
"0.75469196",
"0.7225659",
"0.72024155",
"0.7185472",
"0.7175116",
"0.71358246",
"0.71358246",
"0.71358246",
"0.71358246",
"0.71358246",
"0.70492345",
"0.70281875",
"0.69713575",
"0.6925092",
"0.6901343",
"0.6868536",
"0.6851052",
"0.68341273",
"0.68... | 0.7624484 | 1 |
Checks a user's basic auth credentials against the current Django auth backend. Should return either ``True`` if allowed, ``False`` if not or an ``HttpResponse`` if you need something custom. | def rts1(YKHO, QePW, **B2fa):
if not QePW.META.get('HTTP_AUTHORIZATION'):
return YKHO._unauthorized()
try:
zkAN, nPrm = QePW.META['HTTP_AUTHORIZATION'].split()
if zkAN.lower() != 'basic':
return YKHO._unauthorized()
Q6Uc = WR89.b64decode(nPrm)
except:
retu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LYwK(LpBI):\n\n def Hbi_(QePW, *qIxc, **B2fa):\n if 'HTTP_AUTHORIZATION' in QePW.META:\n Jpbe = QePW.META['HTTP_AUTHORIZATION'].split()\n if len(Jpbe) == 2:\n if Jpbe[0].lower() == 'basic':\n Wju4, KaGP = WR89.b64decode(Jpbe[1]).split(':')\n ... | [
"0.7249858",
"0.7208708",
"0.6995782",
"0.6948909",
"0.68970144",
"0.68316627",
"0.6735266",
"0.6711592",
"0.6709405",
"0.6701788",
"0.66545",
"0.66545",
"0.66335964",
"0.6626289",
"0.6625748",
"0.6585397",
"0.6570015",
"0.656018",
"0.6550344",
"0.6549522",
"0.65337485",
"0... | 0.7130147 | 2 |
Checks to ensure that all the OAuth parameter names are in the provided ``params``. | def naOY(YKHO, NArs):
from oauth_provider.consts import OAUTH_PARAMETERS_NAMES
for _N6A in OAUTH_PARAMETERS_NAMES:
if _N6A not in NArs:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iGZr(NArs):\n jeGQ = ['initlandmarks']\n for Mkmy in jeGQ:\n assert Mkmy in NArs.keys(), 'Params must include {}'.format(Mkmy)",
"def WdaX(YKHO, cfQG, NArs):\n k1lz = False\n for uOe2 in cfQG.REQUIRED:\n if all((KJau in NArs for KJau in uOe2)):\n k1lz = True\n if not k... | [
"0.7285534",
"0.7211709",
"0.7126631",
"0.7121936",
"0.7068163",
"0.70661825",
"0.70594436",
"0.70415455",
"0.7026599",
"0.6943581",
"0.68871313",
"0.6876744",
"0.6833549",
"0.67174983",
"0.6704745",
"0.6703145",
"0.663663",
"0.66279244",
"0.66213",
"0.6620816",
"0.6591034",
... | 0.76074886 | 0 |
Makes ``Authorization`` a descriptor of ``ResourceOptions`` and creates a reference to the ``ResourceOptions`` object that may be used by methods of ``Authorization``. | def xtUD(YKHO, KAOR, qsJ6):
YKHO.resource_meta = KAOR
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, kFeU, VKhi=None, qP2L=None, etR_=None, Lr0r=None, H7C0=None, dJ1p=None, type=None, r6DL=None, __name__=None, qqwM=None):\n if __name__ is not None:\n qmLP.warn('explicit use of __name__ is deprecated', DeprecationWarning)\n kFeU = __name__\n if qqwM is not None:\n qmLP.war... | [
"0.6020222",
"0.60166335",
"0.59568375",
"0.5942353",
"0.59015995",
"0.5891294",
"0.58533263",
"0.57830095",
"0.5644851",
"0.5605517",
"0.5605418",
"0.56010914",
"0.5560622",
"0.55552214",
"0.5544433",
"0.55300456",
"0.55118215",
"0.5510557",
"0.54916304",
"0.5485132",
"0.547... | 0.0 | -1 |
Checks if the user is authorized to perform the request. If ``object`` is provided, it can do additional rowlevel checks. Should return either ``True`` if allowed, ``False`` if not or an ``HttpResponse`` if you need something custom. | def P3Bs(YKHO, QePW, YEnM=None):
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P3Bs(YKHO, QePW, object=None):\n if QePW.user.is_superuser:\n return True\n if not object:\n return True\n if QePW.method == 'GET' and hasattr(object, 'is_public'):\n C76K = False\n bctA = object.is_public\n if isinstance(bctA, SnBA.FunctionType):\n C76K =... | [
"0.7441831",
"0.74014306",
"0.73093945",
"0.727171",
"0.72491837",
"0.72440606",
"0.7232059",
"0.7210261",
"0.7202326",
"0.71925175",
"0.71911705",
"0.7183503",
"0.7165748",
"0.715481",
"0.7147539",
"0.71329576",
"0.71307623",
"0.71254474",
"0.7113402",
"0.7103005",
"0.710300... | 0.72825813 | 3 |
Optionally accepts an ``attr``, which should be a string of either an instance attribute or callable off the object during ``process``. Defaults to ``None``, meaning data will be manually accessed. Optionally accepts a ``default``, which provides default data when the object being ``processed`` has no data on the field... | def FIMM(YKHO, hkS8=None, WmM4=None, MYNf=None):
YKHO._attribute = hkS8
YKHO._field_name = None
YKHO._default = WmM4
if MYNf:
YKHO.help_text = MYNf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Va3r(YKHO, object, Jyyj, WmM4=None):\n if hasattr(object, Jyyj):\n return getattr(object, Jyyj)\n return WmM4",
"def FIMM(YKHO, *qIxc, **B2fa):\n if not qIxc:\n raise TypeError('Field definition incorrect, please provide type')\n elif not isinstance(qIxc[0], type):\n raise Ty... | [
"0.5863607",
"0.5784444",
"0.5646748",
"0.5646748",
"0.5628012",
"0.5613186",
"0.54752284",
"0.543945",
"0.53355473",
"0.53071487",
"0.5295331",
"0.5237086",
"0.523609",
"0.5220396",
"0.52149266",
"0.52103233",
"0.52062714",
"0.5188362",
"0.5154186",
"0.5141225",
"0.5101233",... | 0.67173475 | 0 |
Returns a boolean of whether this field has a default value. | def Sfv2(YKHO):
return YKHO._default is not None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bNOA(YKHO):\n return YKHO.default is not None",
"def bNOA(YKHO, mWFP):\n return YKHO.get_attribute_schema(mWFP).has_default_value",
"def Sfv2(YKHO):\n return YKHO.default is not None",
"def Sfv2(jWnG: DataclassCreationFields) -> bool:\n return jWnG.field.default is not nf7Q.MISSING or jWnG.fi... | [
"0.86846113",
"0.8106691",
"0.8099059",
"0.8059237",
"0.7869552",
"0.758738",
"0.7584747",
"0.75369126",
"0.74947244",
"0.7468538",
"0.74284494",
"0.74118936",
"0.74118936",
"0.73985183",
"0.73017776",
"0.7270397",
"0.72586685",
"0.7219383",
"0.7219383",
"0.7219383",
"0.72193... | 0.7979636 | 4 |
Determines the proper maximum number of results to return. | def K3hO(YKHO):
qoqK = YKHO.request_data.get('limit', YKHO.limit)
if qoqK is None:
qoqK = getattr(gCuF, 'API_LIMIT_PER_PAGE', 20)
try:
qoqK = int(qoqK)
except ValueError:
raise rDSL("Invalid limit '%s' provided. Please provide a positive integer." % qoqK)
if qoqK < 0:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zD4t(YKHO) -> float:\n return YKHO._max_results",
"def zD4t(YKHO) -> str:\n return qe4Y.get(YKHO, 'max_results')",
"def G5s7(YKHO, qoqK):\n if not qoqK:\n Ylbp = Fv2L.api_configuration.max_returned_num + 1\n else:\n Ylbp = min(Fv2L.api_configuration.max_returned_num + 1, qoqK)\n ... | [
"0.7424188",
"0.73012775",
"0.70610124",
"0.70139414",
"0.68197155",
"0.67455894",
"0.6710359",
"0.66792804",
"0.66114205",
"0.65120083",
"0.6482303",
"0.6477769",
"0.64406085",
"0.6427381",
"0.6413323",
"0.64021224",
"0.63875824",
"0.63838345",
"0.63553286",
"0.63399744",
"0... | 0.0 | -1 |
A hook to control how datetimes are formatted. Can be overridden at the ``Serializer`` level (``datetime_formatting``) or globally (via ``settings.DELICIOUS_CAKE_DATETIME_FORMATTING``). | def Zb98(YKHO, nPrm):
nPrm = Gfg6(nPrm)
if YKHO.datetime_formatting == 'rfc-2822':
return Zb98(nPrm)
return nPrm.isoformat() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DAsM(QpfX):\n return {'DATETIME_FORMAT': gCuF.DATETIME_FORMAT.replace('%', '')}",
"def pbww(YKHO, nPrm):\n if YKHO.datetime_formatting == 'rfc-2822':\n return pbww(nPrm)\n return nPrm.isoformat()",
"def Zb98(YKHO, qcWV):\n return qcWV.isoformat()",
"def Mh6S(YKHO) -> PPt7.LocaleDataDic... | [
"0.66110486",
"0.6392224",
"0.634406",
"0.63079673",
"0.6306439",
"0.6266501",
"0.6234092",
"0.62103003",
"0.61847234",
"0.61650395",
"0.61491525",
"0.60894626",
"0.60634506",
"0.6026088",
"0.599988",
"0.59623426",
"0.5935637",
"0.59240323",
"0.5884567",
"0.5855736",
"0.58044... | 0.68528706 | 0 |
A hook to control how times are formatted. Can be overridden at the ``Serializer`` level (``datetime_formatting``) or globally (via ``settings.DELICIOUS_CAKE_DATETIME_FORMATTING``). | def ct8j(YKHO, nPrm):
if YKHO.datetime_formatting == 'rfc-2822':
return ct8j(nPrm)
return nPrm.isoformat() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wpu4(YKHO, hGN5):\n YKHO.set_time_format(hGN5['time_format'])",
"def Sn6S(YKHO) -> PPt7.LocaleDataDict:\n return YKHO._data['time_formats']",
"def ry6j(YKHO, Mr85=None):\n YKHO._timestampFormat = Mr85",
"def DAsM(QpfX):\n return {'DATETIME_FORMAT': gCuF.DATETIME_FORMAT.replace('%', '')}",
"... | [
"0.6929254",
"0.6314527",
"0.6191749",
"0.6104157",
"0.607456",
"0.6068035",
"0.5932887",
"0.5917905",
"0.587497",
"0.58634365",
"0.58494854",
"0.5788309",
"0.5784242",
"0.5769785",
"0.57655984",
"0.57637125",
"0.5727732",
"0.571506",
"0.5658016",
"0.565317",
"0.56443554",
... | 0.67758644 | 1 |
Given some Python data, produces YAML output. | def q24I(YKHO, nPrm, xAU6=None):
xAU6 = xAU6 or {}
if eJb6 is None:
raise EyiV('Usage of the YAML aspects requires yaml.')
return eJb6.dump(YKHO.to_simple(nPrm, xAU6)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hjKN(nPrm):\n import yaml\n l5Ny = yaml.safe_dump(nPrm)\n return l5Ny",
"def k3XC(nPrm):\n return eJb6.dump(nPrm, Dumper=Yw8v, allow_unicode=True)",
"def jWbW(nPrm):\n return eJb6.dump(eJb6.load(qQXR.dumps(nPrm)))",
"def OSuz(Emd4, nPrm: Mapping) -> str:\n Emd4._check_yaml()\n KCHu =... | [
"0.7447313",
"0.7166232",
"0.7100774",
"0.7092351",
"0.70849323",
"0.7061118",
"0.7038931",
"0.6903972",
"0.67381144",
"0.6633934",
"0.6593408",
"0.65112597",
"0.6509104",
"0.64395535",
"0.637974",
"0.6299583",
"0.6290893",
"0.62828183",
"0.6245169",
"0.61800086",
"0.61800086... | 0.6578388 | 11 |