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 |
|---|---|---|---|---|---|---|
Escape a URL including any /. | def IguF(KCHu):
return uRlK.quote(KCHu, '-._~') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CYkN(bD7m):\n X4T_ = kLJC(bD7m)\n return X4T_._replace(netloc=X4T_.netloc.encode('idna').decode('ascii'), path=Sz4w(X4T_.path), params=Sz4w(X4T_.params), query=Sz4w(X4T_.query), fragment=Sz4w(X4T_.fragment)).geturl()",
"def A5Qt(bD7m, KXjL='/'):\n return ILZP(uRlK.quote(cJ_x(bD7m), cJ_x(KXjL)))",
... | [
"0.75820833",
"0.7284564",
"0.7246915",
"0.72054595",
"0.7123162",
"0.6962088",
"0.6916909",
"0.6916909",
"0.68669903",
"0.6846568",
"0.684164",
"0.6838139",
"0.67771345",
"0.67492026",
"0.67492026",
"0.6720022",
"0.67010546",
"0.6656133",
"0.6612842",
"0.65894395",
"0.658355... | 0.6811676 | 12 |
Turn URL string into parameters. | def UqZf(Oohf):
SGPK = KVWQ.parse_qs(Oohf, keep_blank_values=False)
for G1Hx, Ty9i in SGPK.iteritems():
SGPK[G1Hx] = uRlK.unquote(Ty9i[0])
return SGPK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pmNP(Oohf):\n SGPK = _Ibt(Oohf.encode('utf-8'), keep_blank_values=True)\n for G1Hx, Ty9i in SGPK.iteritems():\n SGPK[G1Hx] = uRlK.unquote(Ty9i[0])\n return SGPK",
"def pmNP(Oohf):\n SGPK = SwjJ.parse_qs(Oohf, keep_blank_values=False)\n for G1Hx, Ty9i in SGPK.iteritems():\n SGPK[G... | [
"0.7349705",
"0.73078614",
"0.73078614",
"0.710244",
"0.68732923",
"0.6846075",
"0.6709672",
"0.658793",
"0.6523556",
"0.64784896",
"0.64761007",
"0.64753073",
"0.64412576",
"0.6423888",
"0.642368",
"0.6368142",
"0.6295908",
"0.62867635",
"0.62533367",
"0.62488884",
"0.623659... | 0.71719503 | 3 |
Returns the signature for the given request, based on the consumer and token also provided. You should use your implementation of `, ()` to build the message to sign. Otherwise it may be less useful for debugging. | def Zihr(YKHO, NArs, bD7m, NKcE, R72Z, eOtH):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zihr(YKHO, QePW, R72Z, eOtH):\n H5ew, m6Me = YKHO.signing_base(QePW, R72Z, eOtH)\n dKPB = IMHX(m6Me).digest()\n wEsz = H5ew.sign(YKHO._pkcs1imify(H5ew, dKPB), '')[0]\n LCjR = eBqu(wEsz)\n return MRxC.b2a_base64(LCjR)[:-1]",
"def vRH4(YKHO, amKb, R72Z, eOtH):\n YKHO.set_parameter('oauth_sign... | [
"0.7614038",
"0.73465484",
"0.7325816",
"0.7318568",
"0.72542024",
"0.72542024",
"0.70844585",
"0.7077468",
"0.7077468",
"0.70294607",
"0.70294607",
"0.69911754",
"0.6849054",
"0.6833061",
"0.6833061",
"0.6810166",
"0.6774646",
"0.6757719",
"0.6754503",
"0.66132647",
"0.64926... | 0.6812082 | 15 |
Get AWS image configuration. | def NMoC(yRKA):
return {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EeRb(YKHO) -> h8nf[qe4Y.Input['ServiceSourceConfigurationImageRepositoryImageConfigurationArgs']]:\n return qe4Y.get(YKHO, 'image_configuration')",
"def f96N(YKHO):\n lqQH = YKHO._get_boto_config_file_path()\n return YKHO._parse_config_file(lqQH) if lqQH else None",
"def tgzD():\n OQQn = Hy7s.p... | [
"0.7321133",
"0.7008604",
"0.65434355",
"0.6483185",
"0.637385",
"0.6332106",
"0.63059604",
"0.6303237",
"0.623736",
"0.6191455",
"0.6175244",
"0.6175244",
"0.6175244",
"0.6175244",
"0.6172983",
"0.6142983",
"0.6140204",
"0.6139872",
"0.61179775",
"0.61179775",
"0.61179775",
... | 0.0 | -1 |
Add dononation to a donor entry | def VtQ7(mWFP, Z5kt):
geg6.setdefault(tOKV(mWFP), OOWi(mWFP, [])).amounts.append(Z5kt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OOWi(YKHO, OOWi):\n YKHO.donations.append(OOWi)",
"def VtQ7(YKHO, mWFP, OOWi):\n if not YKHO.donor_exists(mWFP):\n YKHO.add_donor(mWFP)\n OOWi = ZjSO(OOWi).quantize(ZjSO('.01'))\n YKHO.donor_list[mWFP].append(OOWi)\n return OOWi",
"def VtQ7(YKHO, OOWi):\n try:\n with p9bx.tr... | [
"0.792469",
"0.77856433",
"0.7757839",
"0.7738884",
"0.77232033",
"0.77001125",
"0.7667215",
"0.75954264",
"0.7595014",
"0.75936335",
"0.7577873",
"0.75451994",
"0.7534185",
"0.7527366",
"0.7499851",
"0.7487571",
"0.74518234",
"0.741967",
"0.7384464",
"0.73480284",
"0.733899"... | 0.75983363 | 7 |
return a list of top K tweets based on their ranking from highest to lowest | def uhF6(dZY2, G1Hx=1):
return dZY2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F3b1(YKHO, uJjO, G1Hx=5, **B2fa):\n QpfX = None\n if 'context' in B2fa:\n QpfX = B2fa['context']\n elif 'timestamp' in B2fa:\n E3oo = B2fa['timestamp']\n QpfX = YKHO.ctxabs.retrieve_context(E3oo)\n nEME = YKHO.include_known\n if 'include_known' in B2fa:\n nEME = B2fa[... | [
"0.70302236",
"0.6935421",
"0.68487436",
"0.6767072",
"0.6690012",
"0.6645035",
"0.66392255",
"0.662945",
"0.65868217",
"0.6544454",
"0.65395844",
"0.65082985",
"0.64761084",
"0.6465015",
"0.6426642",
"0.6423681",
"0.64154756",
"0.63981473",
"0.6395695",
"0.6384495",
"0.63819... | 0.6100923 | 55 |
The time to expire this ACL(in seconds). | def HNop(YKHO, h9HD):
YKHO.options['ttl'] = h9HD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NvZq(YKHO):\n return wzkt() - fCoM(minutes=gCuF.SHOP_CART_EXPIRY_MINUTES)",
"def OBx7(YKHO) -> float:\n return qe4Y.get(YKHO, 'expiration_time')",
"def NvZq(YKHO):\n return wzkt() - fCoM(minutes=gCuF.SHOP_CART_EXPIRY_MINUTES)",
"def e2iN(YKHO) -> str:\n return qe4Y.get(YKHO, 'expire_time')",
... | [
"0.7990104",
"0.79850936",
"0.79634297",
"0.7851736",
"0.78106296",
"0.78106296",
"0.778819",
"0.778819",
"0.7674984",
"0.7661076",
"0.7645654",
"0.7635663",
"0.7555641",
"0.7500678",
"0.7500678",
"0.7500678",
"0.7500678",
"0.7459397",
"0.7445076",
"0.74190664",
"0.7394108",
... | 0.0 | -1 |
The time to expire this ACL(in seconds). | def SF4m(YKHO):
return YKHO.options['ttl'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NvZq(YKHO):\n return wzkt() - fCoM(minutes=gCuF.SHOP_CART_EXPIRY_MINUTES)",
"def OBx7(YKHO) -> float:\n return qe4Y.get(YKHO, 'expiration_time')",
"def NvZq(YKHO):\n return wzkt() - fCoM(minutes=gCuF.SHOP_CART_EXPIRY_MINUTES)",
"def e2iN(YKHO) -> str:\n return qe4Y.get(YKHO, 'expire_time')",
... | [
"0.7990823",
"0.79854685",
"0.7964122",
"0.7851884",
"0.78106225",
"0.78106225",
"0.77883977",
"0.77883977",
"0.76746655",
"0.76615673",
"0.76452744",
"0.7635944",
"0.7555904",
"0.75004244",
"0.75004244",
"0.75004244",
"0.75004244",
"0.7459315",
"0.7444313",
"0.7418411",
"0.7... | 0.0 | -1 |
The source MAC address. | def fsun(YKHO, Lj4d):
YKHO.options['srcmac'] = Lj4d | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MLBW(YKHO):\n return YKHO._get_attribute('srcMacAddress')",
"def HXjy(YKHO):\n return YKHO._get_variable('mac')",
"def HXjy(YKHO):\n return YKHO._mac_address",
"def wGyS(YKHO):\n return YKHO.options['srcmac']",
"def VSXw(YKHO):\n return hex(qxeD.getnode())",
"def HXjy(YKHO):\n retur... | [
"0.85576963",
"0.76266116",
"0.7481402",
"0.74589616",
"0.73739207",
"0.7370493",
"0.73528624",
"0.7327107",
"0.73147136",
"0.7261251",
"0.725961",
"0.72444034",
"0.7216996",
"0.7185663",
"0.7185663",
"0.71163297",
"0.70883673",
"0.70762575",
"0.70381236",
"0.7010942",
"0.688... | 0.6173963 | 57 |
The source MAC address. | def wGyS(YKHO):
return YKHO.options['srcmac'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MLBW(YKHO):\n return YKHO._get_attribute('srcMacAddress')",
"def HXjy(YKHO):\n return YKHO._get_variable('mac')",
"def HXjy(YKHO):\n return YKHO._mac_address",
"def VSXw(YKHO):\n return hex(qxeD.getnode())",
"def HXjy(YKHO):\n return YKHO.unique_id",
"def KBOU(YKHO):\n return YKHO._... | [
"0.85576963",
"0.76266116",
"0.7481402",
"0.73739207",
"0.7370493",
"0.73528624",
"0.7327107",
"0.73147136",
"0.7261251",
"0.725961",
"0.72444034",
"0.7216996",
"0.7185663",
"0.7185663",
"0.71163297",
"0.70883673",
"0.70762575",
"0.70381236",
"0.7010942",
"0.68813604",
"0.685... | 0.74589616 | 3 |
The priority of the ACL. | def V8DE(YKHO, Ey19):
YKHO.options['priority'] = Ey19 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ey19(YKHO):\n return YKHO.__priority",
"def Ey19(YKHO):\n return YKHO._priority",
"def Ey19(YKHO):\n return YKHO._priority",
"def Ey19(YKHO):\n return YKHO._priority",
"def Ey19(YKHO):\n return YKHO._priority",
"def Ey19(YKHO):\n return YKHO._priority",
"def Ey19(YKHO):\n retur... | [
"0.7686533",
"0.7606689",
"0.7593603",
"0.7593603",
"0.7593603",
"0.7593603",
"0.7548846",
"0.75361425",
"0.7530483",
"0.7474445",
"0.7468844",
"0.7468844",
"0.7468844",
"0.7468844",
"0.7468844",
"0.7468844",
"0.7468844",
"0.7468844",
"0.7462128",
"0.7462128",
"0.74025476",
... | 0.0 | -1 |
The priority of the ACL. | def Ju5x(YKHO):
return YKHO.options['priority'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ey19(YKHO):\n return YKHO.__priority",
"def Ey19(YKHO):\n return YKHO._priority",
"def Ey19(YKHO):\n return YKHO._priority",
"def Ey19(YKHO):\n return YKHO._priority",
"def Ey19(YKHO):\n return YKHO._priority",
"def Ey19(YKHO):\n return YKHO._priority",
"def Ey19(YKHO):\n retur... | [
"0.7686533",
"0.7606689",
"0.7593603",
"0.7593603",
"0.7593603",
"0.7593603",
"0.7548846",
"0.75361425",
"0.7530483",
"0.7474445",
"0.7468844",
"0.7468844",
"0.7468844",
"0.7468844",
"0.7468844",
"0.7468844",
"0.7468844",
"0.7468844",
"0.7462128",
"0.7462128",
"0.74025476",
... | 0.73820996 | 21 |
The state of the ACL. | def hdXp(YKHO, QTBn):
YKHO.options['state'] = QTBn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vkmJ(YKHO):\n return YKHO._acl",
"def D5Sj(YKHO):\n C9U5 = YKHO.upgrade_properties().copy()\n jGRS = C9U5.get('status')\n return YKHO.STATUS_ACL.get(jGRS, xvu2)",
"def QTBn(YKHO):\n return YKHO.__state",
"def QTBn(YKHO):\n return YKHO.__state",
"def QTBn(YKHO):\n return YKHO.__stat... | [
"0.72669905",
"0.7047015",
"0.6709324",
"0.6685043",
"0.6685043",
"0.66577876",
"0.6630058",
"0.66036725",
"0.66036725",
"0.66036725",
"0.66036725",
"0.66036725",
"0.6583686",
"0.6583686",
"0.6583686",
"0.6583686",
"0.6583686",
"0.6583686",
"0.6583686",
"0.6583686",
"0.658368... | 0.0 | -1 |
The state of the ACL. | def ja6o(YKHO):
return YKHO.options['state'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vkmJ(YKHO):\n return YKHO._acl",
"def D5Sj(YKHO):\n C9U5 = YKHO.upgrade_properties().copy()\n jGRS = C9U5.get('status')\n return YKHO.STATUS_ACL.get(jGRS, xvu2)",
"def QTBn(YKHO):\n return YKHO.__state",
"def QTBn(YKHO):\n return YKHO.__state",
"def QTBn(YKHO):\n return YKHO.__stat... | [
"0.72669905",
"0.7047015",
"0.6709324",
"0.6685043",
"0.6685043",
"0.66577876",
"0.6630058",
"0.66036725",
"0.66036725",
"0.66036725",
"0.66036725",
"0.66036725",
"0.6583686",
"0.6583686",
"0.6583686",
"0.6583686",
"0.6583686",
"0.6583686",
"0.6583686",
"0.6583686",
"0.658368... | 0.0 | -1 |
The commit status of the ACL. | def omOf(YKHO):
return YKHO.options['kernelstate'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jSYO(YKHO):\n return YKHO._get('commit')",
"def VLTN(YKHO) -> IDdx:\n return YKHO.status",
"def jSYO(YKHO):\n if YKHO._commit_present:\n return YKHO._commit_value\n else:\n raise AttributeError(\"missing required field 'commit'\")",
"def Cdim(YKHO):\n return YKHO._autocommit"... | [
"0.7021973",
"0.6846531",
"0.67631495",
"0.6712105",
"0.6580533",
"0.6521052",
"0.64686286",
"0.6463295",
"0.6463295",
"0.6463295",
"0.6463295",
"0.6458972",
"0.6456098",
"0.6453554",
"0.6447831",
"0.6444163",
"0.6444163",
"0.6444163",
"0.6444163",
"0.6444163",
"0.6444163",
... | 0.0 | -1 |
Calculates the total intracluster variance X ndarray (n, d) dataset to cluster n data points, d dimensions C ndarray (k, d) centroid means for each cluster k data points, d dimensions | def I8JS(EcVT, Nq1b):
if type(EcVT) is not oyIN.ndarray or EcVT.ndim != 2 or type(Nq1b) is not oyIN.ndarray or (Nq1b.ndim != 2):
return None
try:
G1Hx, Csk6 = Nq1b.shape
'n, _ = X.shape\n k, d = C.shape'
TaUL = oyIN.linalg.norm(EcVT - oyIN.expand_dims(Nq1b, 1), axis=-1)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qkwo(YKHO):\n SRYB = 0.0\n for hKn5 in YKHO._clusters:\n for Q6kx in YKHO._clusters[hKn5]:\n SRYB += oyIN.linalg.norm(oyIN.subtract(Q6kx, hKn5)) ** 2\n return SRYB",
"def G553(qC6E: List[np.ndarray]) -> oyIN.ndarray:\n Csk6 = qC6E[0].shape[1]\n lDeu = oyIN.zeros((Csk6, Csk6))... | [
"0.7035449",
"0.6861261",
"0.67191195",
"0.66598773",
"0.66086006",
"0.65581566",
"0.6482291",
"0.64296776",
"0.6407359",
"0.6372357",
"0.63264585",
"0.6295705",
"0.627991",
"0.6256581",
"0.62549955",
"0.62470275",
"0.62390935",
"0.62332094",
"0.619396",
"0.6140345",
"0.61317... | 0.5926665 | 35 |
Get the full results of the query as a json string | def qQXR(YKHO):
return qQXR.dumps(YKHO._result, cls=Z8kC) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lTK0(YKHO):\n return qQXR.dumps(YKHO.results)",
"def XMg7(YKHO, xDcj, nMY2=False):\n Z9rn = YKHO.conn.cursor()\n usx6 = Z9rn.execute(xDcj).fetchall()\n if nMY2:\n return qQXR.dumps([dict(p6S0) for p6S0 in usx6], ensure_ascii=False)\n dYwf = []\n for p6S0 in usx6:\n dYwf.append... | [
"0.75028366",
"0.74193555",
"0.737726",
"0.73056406",
"0.71676236",
"0.7150318",
"0.6931134",
"0.6926101",
"0.6920275",
"0.68296653",
"0.6813725",
"0.6799695",
"0.67593294",
"0.67301416",
"0.67264813",
"0.66517293",
"0.6646641",
"0.6642884",
"0.66126555",
"0.65505433",
"0.653... | 0.61649805 | 54 |
Plot evolution of accuracy and loss both in training and in validation sets | def qSo0(N2Su):
bfaH = ''.join((vIwR for vIwR in [N2Su, '/history.pickle']))
with open(bfaH, 'rb') as eZ_W:
FLXQ = t2lc.load(eZ_W)
QrM1.plot(FLXQ['acc'])
QrM1.plot(FLXQ['val_acc'])
QrM1.title('model accuracy')
QrM1.ylabel('accuracy')
QrM1.xlabel('epoch')
QrM1.legend(['train', 'va... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rzaM(YbcW, YSue, vjyh):\n LZpg, MPlV = QrM1.subplots(2)\n ta2H = MPlV[0].plot(YbcW, label=' Train Loss')\n qTVs = MPlV[0].plot(YSue, label=' Test Loss')\n YuU8 = MPlV[1].plot(vjyh, label=' Test Accuracy')\n QrM1.xlabel(' Training Epoch')\n MPlV[0].legend()\n MPlV[1].legend()\n QrM1.... | [
"0.80715007",
"0.8065229",
"0.7753056",
"0.76536375",
"0.76052374",
"0.7594992",
"0.75876266",
"0.7572557",
"0.7541096",
"0.74877244",
"0.74846077",
"0.7480061",
"0.7476784",
"0.7474678",
"0.7474493",
"0.74660575",
"0.7455533",
"0.742883",
"0.74099064",
"0.73697245",
"0.73692... | 0.0 | -1 |
Generates random account details. When we create a new user against the ordrin test servers it persists. Therefore we need a new user id for each test we run. | def fDBf(Emd4):
ajWY = qukk(1000000.0, 10000000.0 - 1)
return {'email': str(ajWY) + '@testing.com', 'password': 'HelloWorld-' + str(ajWY), 'firstname': 'Mattias', 'lastname': 'Granlund'} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RQ6G(YKHO):\n return 'user' + str(tuKI.randint(10000, 100000))",
"def L0Zz():\n return e3eL",
"def nIoS(YKHO):\n YKHO.user_id += 1\n return YKHO._user_ctor(YKHO.user_id, seed=YKHO._rng.randint(0, HDIj))",
"def WKoc(YKHO):\n return 'User' + str(tuKI.randint(1000, 10000))",
"def p2N2():\n ... | [
"0.70557606",
"0.6950233",
"0.6843908",
"0.684258",
"0.68390214",
"0.6781775",
"0.6775939",
"0.6621874",
"0.6603014",
"0.657588",
"0.6573808",
"0.6533545",
"0.6530631",
"0.6513675",
"0.6507925",
"0.6452207",
"0.638549",
"0.63774765",
"0.63644826",
"0.6356136",
"0.6354034",
... | 0.71551096 | 0 |
Tests that a bogus account returns an error. | def B0u9(YKHO):
k4mQ = YKHO._new_account()
try:
Ylbp = YKHO.client.post('/auth/login', data=k4mQ)
YKHO.assertTrue(False, 'Unauthorized exception expected.')
except VrQA as err:
YKHO.assertEqual(XObx.response.status_code, 401, 'Unauthorized status expected.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZssP(tt27: str) -> None:\n with trZe.raises(sUXu):\n q0AO(tt27)",
"def RDMd(YKHO):\n Aofo = YKHO._auth('honey@badger.com')\n NaW5(Aofo, None)",
"def kEJJ(YKHO):\n nPrm = {'account': 'someaccount', 'term': '2015-1'}\n with YKHO.assertRaises(wPvU):\n YKHO._prep_request_and_post(d... | [
"0.72900003",
"0.7225437",
"0.70851296",
"0.69618416",
"0.6905435",
"0.680606",
"0.6797353",
"0.6759103",
"0.675039",
"0.6745297",
"0.6687401",
"0.6677461",
"0.6652064",
"0.66478395",
"0.659637",
"0.6589357",
"0.658128",
"0.6579905",
"0.65629685",
"0.6555841",
"0.6554251",
... | 0.7469904 | 0 |
Create an error from response | def KR7y(Emd4, im04):
Wxnj = int(im04['code'], 16)
if Wxnj in ItHd.codes:
Nq1b = ItHd
elif 512 <= Wxnj <= 785:
Nq1b = zRcu
else:
Nq1b = Emd4
tO9_ = im04['message']
if im04['variables']:
tO9_ = tO9_.replace('%1', '{0}').replace('%2', '{1}').format(*im04['variables'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qN71(Emd4, geh0):\n Ol8d, APFA, SaEn = Emd4.parse_error(geh0)\n rV9y = Emd4.ERRORS.get(SaEn, lBEs)\n return rV9y(message=Ol8d, code=APFA, response=geh0)",
"def AW2l(geh0):\n if 400 <= geh0.status_code < 500:\n Emd4 = PHSz.get(geh0.status_code, _9Dx)\n elif 500 <= geh0.status_code < 600:... | [
"0.7783822",
"0.74171275",
"0.7352644",
"0.73156613",
"0.72493535",
"0.7248054",
"0.7238818",
"0.7224521",
"0.71894246",
"0.71536124",
"0.7090297",
"0.6911962",
"0.6868732",
"0.6818004",
"0.68093026",
"0.6780915",
"0.6766477",
"0.67590135",
"0.67554206",
"0.67504066",
"0.6750... | 0.72765183 | 4 |
User is made an admin, logs in and we check if they are in admin group | async def test_user_admin_add():
NtEF = FXSn.token_hex(8)
assert 0 == await (await V7ok.create_subprocess_exec(*cmgt, 'set', 'auth.type', 'dummy')).wait()
assert 0 == await (await V7ok.create_subprocess_exec(*cmgt, 'add-item', 'users.admin', NtEF)).wait()
assert 0 == await (await V7ok.create_subprocess_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h02S(YKHO):\n YKHO.user.groups.add(YKHO.admin_group)\n YKHO.assertTrue(_Kb1(YKHO.user))\n YKHO.user.groups.add(YKHO.client_group)\n YKHO.assertTrue(_Kb1(YKHO.user))",
"def QrtS(YKHO, uJBC):\n if uJBC is True:\n return True",
"def bAOt(YKHO):\n YKHO.is_admin = YKHO.groups.name == 'A... | [
"0.7631259",
"0.75765115",
"0.734287",
"0.7221397",
"0.72104317",
"0.720288",
"0.7177588",
"0.7169601",
"0.71395665",
"0.7105221",
"0.71034324",
"0.7099701",
"0.7029484",
"0.6993267",
"0.6992292",
"0.6982961",
"0.6975895",
"0.69753164",
"0.6957878",
"0.69390225",
"0.69390225"... | 0.0 | -1 |
Test that initializing an opponent's gamestate works. | def ETwc():
KXqR = BM1_()
j8gq = QS34(name='spinda', moves=['tackle'])
ska2 = {}
ska2['team'] = []
ska2['active'] = j8gq
KXqR.init_opp_gamestate(ska2['team'], ska2['active'])
assert KXqR.opp_gamestate['investment']
assert not KXqR.opp_gamestate['data']
assert not KXqR.opp_gamestate['... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wGWS(YKHO):\n nQrl = _eiz()\n YKHO.assertEqual(nQrl.get_game_state(), 'UNFINISHED')\n print('Test Initial Game State: Testing that the initial setup of the board is displayed as expected.')\n nQrl.display()",
"def as4H(YKHO):\n QTBn = ska2.GameState(2, 8, 3)\n YKHO.assertEqual(QTBn.players,... | [
"0.7788404",
"0.771211",
"0.7606439",
"0.73684675",
"0.70575064",
"0.7033935",
"0.6902789",
"0.69002813",
"0.6860644",
"0.68287116",
"0.67923033",
"0.6752935",
"0.67160386",
"0.6698944",
"0.6697008",
"0.66958416",
"0.66819215",
"0.666552",
"0.666315",
"0.6645686",
"0.6645537"... | 0.82065517 | 0 |
find the ancestors of a particular commit hash. | def pZbv(N1sj, SZsr):
GU0_ = fE6q().begin_reader_txn(N1sj)
try:
ViZo = CkpI.commit_parent_db_key_from_raw_key(SZsr)
pLhG = GU0_.get(ViZo, default=False)
finally:
fE6q().abort_reader_txn(N1sj)
if pLhG is False:
raise ValueError(f'No commit exists with the hash: {SZsr}')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y3x8(YKHO, jSYO):\n return CD35(['git', '--no-pager', 'log', '--no-walk', '--pretty=format:%P', jSYO]).strip().split()",
"def ZRe6(F0ds, xot2):\n RCmq = dTAH.urlopen('https://skia.googlesource.com/skia/+log/%s?format=json&n=%d' % (F0ds, xot2))\n QzfE = RCmq.read()[4:]\n zgjV = qQXR.loads(QzfE)\n ... | [
"0.6891055",
"0.67970246",
"0.6513241",
"0.6500633",
"0.6495944",
"0.64302254",
"0.63855404",
"0.6368276",
"0.6272074",
"0.62656844",
"0.62531674",
"0.6227421",
"0.6205668",
"0.61839193",
"0.6181463",
"0.6106009",
"0.6086718",
"0.607103",
"0.6042718",
"0.601183",
"0.5993839",... | 0.8114073 | 0 |
Delete the entity with given ID. | def p_c5(YKHO, PObu, LEXu=None):
bD7m = YKHO.url.format(url='{type}/{uid}/'.format(type=LEXu, uid=PObu))
return YKHO._request('delete', bD7m, YKHO.auth, YKHO.headers) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kax1(YKHO, g2g3):\n LEXu = YKHO.get(g2g3)\n YKHO.delete(LEXu)",
"def PTpj(YKHO, id):\n HFza(id)\n return (None, 204)",
"def PTpj(YKHO, id):\n LEXu = YKHO.get(id)\n YKHO.db.delete(YKHO.table).where(id=id)\n YKHO._unindex(LEXu)\n YKHO.db.commit()",
"def PTpj(Emd4, g2g3: EntityIdenti... | [
"0.85096407",
"0.82913303",
"0.8168141",
"0.8167035",
"0.8073281",
"0.8012639",
"0.8006899",
"0.79361707",
"0.7883349",
"0.7864103",
"0.78529304",
"0.7803917",
"0.77976596",
"0.7721946",
"0.76028454",
"0.75830185",
"0.75774",
"0.7539702",
"0.74674004",
"0.7436969",
"0.7431747... | 0.0 | -1 |
Shows a contact. Shows all data related to an existing contact including companies, relatedto, category tags and all activities (excluding email messages). | def Gl53(YKHO, dRbn):
return YKHO._show(dRbn, entity=cikM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FTRx():\n return TvZl('contacts.html', contacts=T1p0)",
"def GmxP(id: int):\n return TvZl('contact_info', contact_id=dRbn, contacts=T1p0)",
"def Gl53():\n return TvZl('contact.html')",
"def Kv4G(Emd4):\n return Emd4.contact_list",
"def Mxk0():\n return TvZl('general/contact.html', user=C... | [
"0.7363304",
"0.73212385",
"0.7002574",
"0.6780898",
"0.674629",
"0.6744395",
"0.669278",
"0.66667145",
"0.6662273",
"0.6605328",
"0.65931517",
"0.65927774",
"0.6588327",
"0.6588327",
"0.6571743",
"0.65501183",
"0.65098834",
"0.6507319",
"0.64798766",
"0.645201",
"0.64489084"... | 0.7640208 | 0 |
Updates a contact activity. | def jBOp(YKHO, hTWD, P1UD, pB3N):
return YKHO._update_activity(hTWD, P1UD, pB3N, entity=cikM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def update_activity(YKHO, QpfX: TurnContext, rxHD: Activity):\n try:\n x0hE = YKHO.create_connector_client(rxHD.service_url)\n return await x0hE.conversations.update_activity(rxHD.conversation.id, rxHD.conversation.activity_id, rxHD)\n except Exception as e:\n raise tTpl",
"def t... | [
"0.72863567",
"0.65718",
"0.6557765",
"0.64636666",
"0.64384764",
"0.6263656",
"0.6185585",
"0.61555403",
"0.6130112",
"0.6105293",
"0.60840046",
"0.6048272",
"0.59804034",
"0.59500754",
"0.5937",
"0.59267485",
"0.59267485",
"0.58869886",
"0.58534694",
"0.58475703",
"0.583395... | 0.76568186 | 0 |
Normalize utf8 characters to their ascii equivalents | def NkkI(KCHu):
return CkYf('NFD', KCHu.decode('utf8')).encode('ascii', 'ignore') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GXoZ(YKHO, KCHu):\n return ''.join((Z9rn for Z9rn in zVCt.normalize('NFC', KCHu) if zVCt.category(Z9rn) != 'Mn'))",
"def iFJT(l5Ny):\n return zVCt.normalize('NFD', l5Ny)",
"def NkkI(vIwR):\n return zVCt.normalize('NFKD', vIwR).encode('ascii', 'ignore')",
"def Fppk(KCHu: str) -> str:\n return ... | [
"0.7827573",
"0.75008714",
"0.73985714",
"0.73911005",
"0.737754",
"0.73371273",
"0.73310983",
"0.7324919",
"0.7307108",
"0.7295419",
"0.7238316",
"0.7224354",
"0.7181905",
"0.7181905",
"0.7168588",
"0.71301323",
"0.71249413",
"0.71239424",
"0.71223795",
"0.7093355",
"0.70829... | 0.7072739 | 23 |
Run at the begining of every test to setup the gui | def eCGt(YKHO):
w0Mq = HTXG(Rint=0.2, Rext=0.7, is_internal=True, is_stator=False)
_rtk = Ea2R(Zs=12, W0=0.05, H0=0.03, W1=0.1, H1=0.03, H2=0.1, W2=0.12)
IGJc = UfRH(Zs=12, W0=mM0K / 12, H0=0.05, W2=mM0K / 6, H2=0.125)
MgJg = list()
for P2GO in range(5):
MgJg.append(Ea2R(init_dict=_rtk.as_di... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n sHfS.setUp(YKHO)",
"def TFjm(YKHO):\n pass",
"def FCbF(YKHO):\n YKHO.app = CsJA.QApplication(HwRy.argv)\n YKHO.main = aCIU()",
"def FCbF(YKHO):\n YKHO.app = CsJA.QApplication(HwRy.argv)\n YKHO.main = aCIU()",
"def FCbF(YKHO):\n LQYi.defaults()\n YKHO.app = m36K()\n... | [
"0.77052885",
"0.7460328",
"0.7454719",
"0.7454719",
"0.7454257",
"0.744861",
"0.7414831",
"0.73928356",
"0.73556685",
"0.7312946",
"0.7246218",
"0.7233251",
"0.72234267",
"0.72125965",
"0.72033674",
"0.71955407",
"0.71436167",
"0.7120006",
"0.7047194",
"0.6992955",
"0.697792... | 0.0 | -1 |
Hashes a password with the sale and returns the hash | def qzFd(jTXt, NTfD):
r8hN = HBct.sha512()
r8hN.update(jTXt.encode('utf-8'))
r8hN.update(NTfD)
return r8hN.digest() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nvki(zOso):\n NTfD = inZ1.mksalt(inZ1.METHOD_SHA512)\n return inZ1.crypt(zOso, NTfD)",
"def a2tF(jTXt):\n return B8ni.hashpw(jTXt.encode('utf-8'), B8ni.gensalt())",
"def GPjS(YKHO, jTXt, NTfD):\n vhgk = HBct.md5()\n vhgk.update((jTXt + NTfD).encode('UTF-8'))\n return vhgk.hexdigest()",
... | [
"0.76638323",
"0.7616494",
"0.7487322",
"0.74753875",
"0.74522346",
"0.7446771",
"0.7438625",
"0.7434669",
"0.7433902",
"0.74189764",
"0.7407593",
"0.740562",
"0.7400957",
"0.7397829",
"0.739742",
"0.7386754",
"0.7386754",
"0.7386183",
"0.7379556",
"0.73766863",
"0.73749495",... | 0.71081775 | 62 |
Get all the lines from a tsv by filename, ignoring lines beginning with | def PI7w(Ux0P=None, nVRh=False):
if not isinstance(Ux0P, exCv):
raise ValueError('Invalid value for filename: %s' % str(type(Ux0P)))
if not vtfo(Ux0P):
raise ValueError('File %s does not exist!' % Ux0P)
RI88 = {'headers': None, 'values': []}
with open(Ux0P, 'r') as aj1R:
N5Pj = m... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vH85(VqRE):\n with open(VqRE) as eHNT:\n for zFiD in eHNT:\n rdlD = [BWXx.strip() for BWXx in zFiD.split('\\t')]\n if rdlD != ['']:\n yield rdlD",
"def sYUC(YKHO, eZ_W, jaFg=None):\n with open(eZ_W, 'r', encoding='utf-8') as eHNT:\n N5Pj = m6_J.reader(... | [
"0.6988765",
"0.6826519",
"0.6784388",
"0.66196805",
"0.6566016",
"0.6539626",
"0.6470832",
"0.64086753",
"0.635651",
"0.6348438",
"0.63105345",
"0.629495",
"0.62943184",
"0.6285052",
"0.62791216",
"0.62482715",
"0.6241524",
"0.6236478",
"0.6225454",
"0.621316",
"0.6205184",
... | 0.7271645 | 0 |
Hash a password for storing. | def qzFd(YKHO, jTXt):
NTfD = HBct.sha256(Hy7s.urandom(60)).hexdigest().encode('ascii')
mNdd = HBct.pbkdf2_hmac('sha512', jTXt.encode('utf-8'), NTfD, 100000)
mNdd = MRxC.hexlify(mNdd)
return (NTfD + mNdd).decode('ascii') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qzFd(YKHO, jTXt):\n YKHO.hash = jf1V.encrypt(jTXt)",
"def qzFd(YKHO, jTXt):\n YKHO.password_hash = jf1V.hash(jTXt)",
"def qzFd(YKHO, jTXt):\n YKHO.password_hash = jf1V.hash(jTXt)",
"def qzFd(YKHO, jTXt):\n YKHO.password_hash = jf1V.encrypt(jTXt)",
"def qzFd(YKHO, jTXt):\n NTfD = B8ni.gen... | [
"0.84914315",
"0.8482577",
"0.8482577",
"0.84023434",
"0.82536817",
"0.82148904",
"0.8106015",
"0.8076616",
"0.80739087",
"0.8029491",
"0.79276323",
"0.79276323",
"0.7925622",
"0.79088366",
"0.7899531",
"0.7897493",
"0.7890519",
"0.78723425",
"0.7848094",
"0.782259",
"0.78096... | 0.79207146 | 13 |
``sfini``generated statemachine IAM role ARN. | def ngPz(YKHO) -> str:
return 'arn:aws:iam::%s:role/sfiniGenerated' % YKHO.session.account_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BDB0() -> str:\n TJZp = iVGz.client('sts')\n Z31E = TJZp.get_caller_identity()['Account']\n return f'arn:aws:iam::{Z31E}:role/{kxTZ()}'",
"def axXk(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'role_arn')",
"def axXk(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'role_arn')",
"d... | [
"0.77547264",
"0.72331536",
"0.72331536",
"0.72331536",
"0.72331536",
"0.72331536",
"0.72331536",
"0.72243035",
"0.72243035",
"0.72243035",
"0.72243035",
"0.72243035",
"0.72243035",
"0.72243035",
"0.72243035",
"0.72243035",
"0.72243035",
"0.72243035",
"0.72243035",
"0.72243035"... | 0.7594207 | 1 |
Convert this statemachine to a definition dictionary. | def MNRr(YKHO) -> Kt_s.Dict[str, KG4a.JSONable]:
I45O.debug("Converting '%s' to dictionary" % YKHO)
TCla = {exwG: KCHu.to_dict() for exwG, KCHu in YKHO.states.items()}
Wdc9 = {'StartAt': YKHO.start_state, 'States': TCla}
if YKHO.comment != GCGA:
Wdc9['Comment'] = YKHO.comment
if YKHO.timeout... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hati(YKHO):\n return YKHO.definition",
"def hati(YKHO):\n return YKHO.definition",
"def DZIR(YKHO):\n q_DO = {YKHO.STATE_READY: {YKHO.EVENT_CREATE: YKHO.STATE_PENDING_ACTIVATION_APPROVAL}, YKHO.STATE_PENDING_ACTIVATION_APPROVAL: {YKHO.EVENT_APPROVE: YKHO.STATE_AUTHORIZED if len(YKHO.authorizationS... | [
"0.69841594",
"0.69841594",
"0.68370193",
"0.662319",
"0.65928715",
"0.65726143",
"0.6397163",
"0.6390726",
"0.6342062",
"0.6337146",
"0.63209045",
"0.6314506",
"0.63017315",
"0.6256308",
"0.6255638",
"0.623783",
"0.62307036",
"0.6214141",
"0.6212253",
"0.61041814",
"0.609806... | 0.7278248 | 0 |
Set the ni845x I2C configuration. | def Ltjk(YKHO, zNig=None, UTX6=43, JfKF=100, vYBr=20000, zgrc=1):
if zNig is None:
zNig = YKHO.kNi845xI2cAddress7Bit
zNig = gk2W.c_int32(zNig)
UTX6 = gk2W.c_uint16(UTX6)
JfKF = gk2W.c_uint16(JfKF)
vYBr = gk2W.c_uint32(vYBr)
zgrc = gk2W.c_uint8(zgrc)
YKHO.i2c_handle = gk2W.c_int32()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rl6T(YKHO, kH18):\n INW_.setI2CAddress(kH18)",
"def wOGa(YKHO):\n GPtr = [ZX5S]\n Pjr8.write_i2c_block_data(M1_9, jiwO, GPtr)",
"def PrDS():\n TKrw = uceI()\n TKrw[gFa1.I2C_DATA_ADDRESS] = HNnb.I2C_IO_EXPANDER_OUTPUT_REGISTER\n return TKrw",
"def heMa(YKHO, ZIC1):\n C236 = ZIC1\n ... | [
"0.6277865",
"0.6275543",
"0.6274454",
"0.62654406",
"0.6136332",
"0.6128286",
"0.60774136",
"0.59361964",
"0.58689356",
"0.5827889",
"0.58165646",
"0.5807486",
"0.57975346",
"0.57744414",
"0.5772833",
"0.5768666",
"0.57425326",
"0.57411104",
"0.56838745",
"0.56751996",
"0.56... | 0.65905166 | 0 |
Updates the sprite for UFO, speed is an float between 0 and 1 to control speed of animation. | def QdZT(YKHO, iBLD):
super(NBCm, YKHO).update(iBLD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UiYA(rGpw: int, bW5R: Union[float, int]) -> None:\n pass",
"def rboB(YKHO, iBLD):\n iBLD = int(iBLD)\n for Jqc7 in YKHO.all_sprites:\n Jqc7.time /= iBLD / Jqc7.frame_jump\n Jqc7.frame_jump = iBLD",
"def QdZT(YKHO):\n YKHO.y -= YKHO.speed_factor\n YKHO.rect.y = YKHO.y",
"def Q... | [
"0.664407",
"0.6441989",
"0.64376813",
"0.6330999",
"0.632746",
"0.6286862",
"0.6265388",
"0.6238965",
"0.62318414",
"0.62318414",
"0.6189253",
"0.6185136",
"0.6163503",
"0.61511296",
"0.61511296",
"0.6125543",
"0.6123995",
"0.61234444",
"0.6093949",
"0.6087697",
"0.6087697",... | 0.78631896 | 0 |
Creates a BNF rule that puts in a list an exact number of consecutive occurrences of a given symbol (terminal or nonterminal). | def Ty_H(exwG, m__T, CXYT=None, qsJ6=None):
if CXYT is None:
CXYT = '{0}s'.format(m__T)
if qsJ6 is None:
qsJ6 = s1PC()
def eD8c(XP5J):
'\n {0} : {1}\n '.format(CXYT, m__T * exwG)
XP5J[0] = [XP5J[YRbF] for YRbF in Ni9Y(1, exwG + 1)]
eD8c.__name__ = 'p_{0}_{1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GNxe(diTQ, rmc3):\n return o7DN(diTQ, rmc3)",
"def DMIq(mIy_, YRbF, WKvO, bBVO, o1Kh):\n return [(eD8c[0], [], eD8c[1], YRbF) for eD8c in mIy_ if eD8c[0] == o1Kh[0]] if len(o1Kh) > 0 else []",
"def biH0(mXDZ):\n KTg0 = [len(mXDZ) for YRbF in range(256)]\n for YRbF in range(len(mXDZ) - 1):\n ... | [
"0.55160946",
"0.5297298",
"0.52648765",
"0.52385676",
"0.52385676",
"0.52222",
"0.5181892",
"0.51781106",
"0.5152009",
"0.51435256",
"0.5065514",
"0.5027822",
"0.5016683",
"0.50080353",
"0.49936754",
"0.49815336",
"0.49736515",
"0.4949654",
"0.49461013",
"0.49461013",
"0.494... | 0.45044917 | 96 |
Get the list of registered Friend Codes. | async def acnh_friends(YKHO, OaeV):
Q1PJ = await YKHO._make_codes_embed(OaeV, 'friend_code', 'Friend Codes')
await OaeV.send(embed=Q1PJ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zgs6(YKHO):\n return YKHO._names",
"def c2mO(Q6kx: Node) -> x1iM[cuzp[str, h8nf[uLKX[int, bool, str]]]]:\n return rNAG(Q6kx, True)",
"def aVo_(YKHO):\n return YKHO.api.friends_ids(YKHO.name)",
"def LGbA():\n O52e = NCls.session.query(rp_k.code).distinct()\n return O52e",
"def zMDN(YKHO):... | [
"0.668843",
"0.63665605",
"0.6241873",
"0.61723465",
"0.6118247",
"0.6058793",
"0.6016978",
"0.5994813",
"0.5925067",
"0.59016335",
"0.5864315",
"0.584473",
"0.5830937",
"0.57953966",
"0.5784588",
"0.57651883",
"0.5754727",
"0.57390255",
"0.5738878",
"0.5717378",
"0.57169527"... | 0.634197 | 2 |
Read data from a file, return a Pandas DataFrame | def ZAQi(qaEx):
N5Pj = qaEx.suffix.lstrip('.')
return fld4.read(N5Pj, file_path=qaEx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kWwb() -> rLdf.DataFrame:\n KAfx = iSBZ\n return rLdf.read_csv(KAfx, delimiter=',')",
"def N5Pj(Ux0P: str) -> rLdf.DataFrame:\n TI3R = Hy7s.path.join(i0XC, Ux0P)\n nPrm = rLdf.read_csv(TI3R)\n return nPrm",
"def ZAQi(YKHO, Ux0P):\n jQ3Z = rLdf.read_csv(Ux0P, '\\t', header=None)\n retur... | [
"0.82111406",
"0.81983227",
"0.80760944",
"0.7878942",
"0.7841436",
"0.76597905",
"0.76509315",
"0.76356477",
"0.76272476",
"0.7593816",
"0.75929296",
"0.7582769",
"0.75716674",
"0.75711817",
"0.75517714",
"0.7544521",
"0.7531314",
"0.75125706",
"0.7505057",
"0.7492939",
"0.7... | 0.0 | -1 |
Plot a Pandas DataFrame | def Iq_p(nPrm, ZjD3):
LZpg, aNZO = QrM1.subplots()
for uOe2, CUTg in nPrm:
yZbQ.plot(ZjD3, ax=aNZO, data=CUTg)
QrM1.show() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s3m4(YKHO):\n print('Plotting')\n fDz8 = nXQd(jQ3Z)\n fDz8.visualize()\n return",
"def kj9G(YKHO, *qIxc, **B2fa):\n return YKHO.df.plot(*qIxc, **B2fa)",
"def kj9G(YKHO, iVRZ=None):\n YKHO.df.plot(column=iVRZ)",
"def kj9G(jQ3Z, WKvO, LVAh, VoLU, IICq, leAC, Z6Cv, _qsN):\n LZpg, aNZO =... | [
"0.8048579",
"0.80305505",
"0.73250335",
"0.7314207",
"0.72219867",
"0.7138141",
"0.7135532",
"0.7135532",
"0.7135532",
"0.7132913",
"0.70931774",
"0.70701826",
"0.70615256",
"0.70178837",
"0.69812423",
"0.6956818",
"0.69351053",
"0.6931878",
"0.69263995",
"0.6911616",
"0.687... | 0.0 | -1 |
Retrieves all loans which are not withdrawn from the database which 'user_id' matches with a borrower or lender. | def Rod8(YKHO, PObu):
N1p7 = YKHO.conn.cursor()
xDcj = f'select * from loans where (lender = {PObu} or borrower = {PObu}) and withdrawn = false order by created_on DESC;'
N1p7.execute(xDcj)
Aofo = []
for rdlD in N1p7:
Aofo.append(rdlD)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Taem(YKHO, PObu):\n N1p7 = YKHO.conn.cursor()\n xDcj = f'select * from loans where (lender = {PObu} or borrower = {PObu}) and accepted = false and withdrawn = false order by created_on DESC;'\n N1p7.execute(xDcj)\n Aofo = []\n for rdlD in N1p7:\n Aofo.append(rdlD)\n return ... | [
"0.76045007",
"0.7021401",
"0.67303634",
"0.6273125",
"0.5811205",
"0.58088875",
"0.5697785",
"0.56905305",
"0.56905305",
"0.56623393",
"0.55988413",
"0.5571227",
"0.543094",
"0.53969634",
"0.5395697",
"0.536573",
"0.53262615",
"0.53238136",
"0.5298417",
"0.52704686",
"0.5216... | 0.69192797 | 2 |
Retrieves all loans which are not accepted and not withdrawn from the database which 'user_id' matches with a borrower or lender. | def Taem(YKHO, PObu):
N1p7 = YKHO.conn.cursor()
xDcj = f'select * from loans where (lender = {PObu} or borrower = {PObu}) and accepted = false and withdrawn = false order by created_on DESC;'
N1p7.execute(xDcj)
Aofo = []
for rdlD in N1p7:
Aofo.append(rdlD)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Taem(YKHO, uJjO):\n vjcZ = Fi3P()\n slgN = GmZf()\n Qj6W = vjcZ.get_all_unaccepted_user_loans(uJjO)\n dfOq = []\n for rdlD in Qj6W:\n Aofo = YKHO.build_loan_dict(rdlD)\n Aofo['username'] = slgN.get_username(rdlD[1])\n dfOq.append(Aofo)\n return pz3A(Loans=dfOq)",
"def R... | [
"0.728111",
"0.7023686",
"0.65773237",
"0.63608766",
"0.6010521",
"0.5955074",
"0.56985915",
"0.56950444",
"0.5604221",
"0.55764776",
"0.5542419",
"0.5515005",
"0.5474057",
"0.5457049",
"0.5425112",
"0.5418403",
"0.5418403",
"0.5351015",
"0.5314274",
"0.5312721",
"0.52719694"... | 0.78778213 | 0 |
Retrieves a loan who's id matches the 'loan_id' passed from the database if it has not been withdrawn. | def W5fE(YKHO, HMFB):
N1p7 = YKHO.conn.cursor()
xDcj = f'select * from loans where loan_id = {HMFB} and withdrawn = false;'
N1p7.execute(xDcj)
Aofo = N1p7.fetchone()
if Aofo:
return Aofo
else:
return -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aew7(YKHO, HMFB):\n N1p7 = YKHO.conn.cursor()\n xDcj = f'select lender from loans where loan_id = {HMFB} and withdrawn = false;'\n N1p7.execute(xDcj)\n Aofo = N1p7.fetchone()\n if Aofo:\n return Aofo\n else:\n return -1",
"def inKk(YKHO, HMFB):\n vjcZ = Fi3P()\n slgN = G... | [
"0.75256985",
"0.74279726",
"0.7411217",
"0.67403024",
"0.6404575",
"0.6271469",
"0.6059708",
"0.59450775",
"0.591207",
"0.5894643",
"0.58530766",
"0.5703952",
"0.56088066",
"0.5604367",
"0.5592466",
"0.55895907",
"0.5571973",
"0.55115396",
"0.5491624",
"0.54820347",
"0.54743... | 0.81019145 | 0 |
>>> str2int_tuple('3,4,5') (3, 4, 5) | def Slsr(LOJD: str) -> h8nf[AzJI[int, ...]]:
assert qwjZ()
if LOJD.strip() in ('none', 'None', 'NONE', 'null', 'Null', 'NULL'):
return None
return tuple(map(int, LOJD.strip().split(','))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u8OG(xlWa):\n Aofo = tuple((int(Ty9i) for Ty9i in xlWa.split(',')))\n assert len(Aofo) == 2\n return Aofo",
"def PiME(BWXx):\n BWXx = BWXx.strip().replace(',', ' ').replace('x', ' ')\n return tuple((plSv(aETf) for aETf in BWXx.split()))",
"def cuTq(vIwR, Myyj=False):\n oeNL = vIwR.split('... | [
"0.84945476",
"0.79836524",
"0.796142",
"0.7933101",
"0.766986",
"0.766986",
"0.76369524",
"0.7617691",
"0.7441407",
"0.730617",
"0.7224405",
"0.7157613",
"0.7091885",
"0.70873225",
"0.70179474",
"0.6856371",
"0.68075526",
"0.68063515",
"0.6797579",
"0.67615485",
"0.6745242",... | 0.7748082 | 4 |
Returns an initializer that generates tensors without scaling variance. When initializing a deep network, it is in principle advantageous to keep the scale of the input variance constant, so it does not explode or diminish | def BTk1(aM8h=2.0, Tuqy='FAN_IN', js4S=False, yokr=None, yDqo=ZylS.float32, JBMS=0.0, z2bo=1.0, CDHa=None, mWFP=None):
if not yDqo.is_floating:
raise TypeError('Cannot create initializer for non-floating point type.')
if Tuqy not in ['FAN_IN', 'FAN_OUT', 'FAN_AVG']:
raise TypeError('Unknow mode ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zgHI():\n return ZylS.ones_initializer()",
"def Lo2K(NXpY=1.0, yokr=None):\n NXpY = 2.0 * NXpY\n return ZylS.keras.initializers.VarianceScaling(scale=NXpY, mode='fan_in', distribution='truncated_normal', seed=yokr)",
"def X6bi(WTkW):\n\n def JdrY(vhpA):\n return ht2j.nn.init.normal_(vhpA... | [
"0.73675686",
"0.6868832",
"0.6643749",
"0.6505584",
"0.65038484",
"0.65035665",
"0.65006095",
"0.6463659",
"0.6463659",
"0.644551",
"0.644551",
"0.64308816",
"0.64308816",
"0.64237237",
"0.64124465",
"0.639357",
"0.63875806",
"0.6355396",
"0.6324041",
"0.6316739",
"0.6311450... | 0.570422 | 82 |
get only important column names | def kNTI(yWDf: str) -> x1iM:
Ylbp = open(yWDf, 'r').read().splitlines()
return Ylbp[3:] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iDDg(YKHO):\n return [WKvO for WKvO in YKHO.__dict__.keys() if WKvO[0] != '_']",
"def CSa0(Emd4):\n return set(Emd4.__table__.c.keys())",
"def cGYk(EF9J):\n return [str(fvDH).split('.')[-1] for fvDH in EF9J.c]",
"def CkfW(YKHO):\n return YKHO.prepdata.select_dtypes(include=[object]).columns",... | [
"0.75647765",
"0.74966425",
"0.71453285",
"0.6999776",
"0.6964681",
"0.691628",
"0.686855",
"0.6865494",
"0.6851513",
"0.6840493",
"0.68398106",
"0.68352574",
"0.68094873",
"0.67985666",
"0.6783158",
"0.6781094",
"0.67601943",
"0.67317545",
"0.6720969",
"0.67147064",
"0.67104... | 0.0 | -1 |
get column names that contain null values(WORK IN PROGRESS) | def l1Y6(AlVb: List, WzeC: DataFrame, XhmR: DataFrame) -> str:
Ylbp = ''
for WKvO in AlVb:
Zfak = WzeC.select(WKvO).distinct().selectExpr(WKvO + ' as vals')
vNFf = XhmR.select('VALUES_SVOD_TEXT').filter(XhmR['CONSUMER_VIEW_FIELDS'] == WKvO).distinct().selectExpr('VALUES_SVOD_TEXT as vals')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yQdL(jQ3Z):\n return jQ3Z.columns[jQ3Z.isna().any()].tolist()",
"def WiFA(YKHO):\n return list(YKHO.df.loc[:, YKHO.df.isna().sum() > 0].columns)",
"def mrxI(jQ3Z: pd.DataFrame) -> laHg.List[str]:\n return rLdf.isnull(jQ3Z).any(axis=0).loc[lambda WKvO: WKvO].index.values.tolist()",
"def xnCe(bOBl... | [
"0.8023702",
"0.7567875",
"0.7456486",
"0.73825204",
"0.71080226",
"0.6947817",
"0.6888066",
"0.6821007",
"0.6685185",
"0.64822704",
"0.6440484",
"0.6423736",
"0.64135164",
"0.6413068",
"0.6405798",
"0.63889277",
"0.63385963",
"0.6332289",
"0.62844193",
"0.62701404",
"0.62573... | 0.7410915 | 3 |
get percent Of Records With Null value for each column | def OKAL(WzeC: DataFrame, qr2K: List=None) -> hxoQ:
if qr2K is None:
ZLJ_ = WzeC.columns
else:
ZLJ_ = qr2K
mYty = WzeC.select([(UHFx(ZpyY(fvDH(Z9rn).isNull(), Z9rn)) / qPMI).alias(Z9rn) for Z9rn in ZLJ_])
return mYty | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SNTw(jQ3Z):\n ec2n = jQ3Z.isnull().sum()\n u54L = len(jQ3Z.index)\n return ec2n / u54L if u54L != 0 else None",
"def YSMq(jQ3Z):\n import pandas as rLdf\n wjRY = jQ3Z.isnull().sum().sort_values(ascending=False)[jQ3Z.isnull().sum().sort_values(ascending=False) > 0]\n DuZT = round(jQ3Z.isnull... | [
"0.78366876",
"0.74151605",
"0.72887975",
"0.7271681",
"0.71908563",
"0.7159267",
"0.71145916",
"0.6978146",
"0.6700667",
"0.67005354",
"0.6688039",
"0.66278154",
"0.65294564",
"0.65012264",
"0.6476186",
"0.6446737",
"0.6446617",
"0.6439107",
"0.6430261",
"0.63381577",
"0.630... | 0.7551048 | 1 |
Test uploading an invalid image | def gopI(YKHO):
bD7m = xx5i(YKHO.content.uuid)
Ylbp = YKHO.api_client.post(bD7m, {'image': 'notanimage'}, format='multipart')
YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zwC5(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 Vt_3(YKHO):\n bD7m = nXsP(YKHO.recipe.id)\n Ylbp = YKHO.client.post(bD7m, {'image': 'not image'}, format='... | [
"0.8582865",
"0.85576755",
"0.85367316",
"0.84134966",
"0.8373058",
"0.83649886",
"0.8360218",
"0.8360218",
"0.8359349",
"0.8331291",
"0.833072",
"0.833072",
"0.8296003",
"0.82698196",
"0.82694286",
"0.8260142",
"0.82487047",
"0.82040185",
"0.8074729",
"0.7863492",
"0.778297"... | 0.8306746 | 12 |
Write GenotypePhenotypeMap object to a pickle file. | def ycwe(YKHO, Ux0P, **B2fa):
with open(Ux0P, 'wb') as eHNT:
t2lc.dump(YKHO, eHNT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _1Nw(YKHO):\n _RR0 = open(TLcK, 'wb')\n t2lc.dump(YKHO, _RR0)\n _RR0.close()",
"def nXU0(YKHO):\n with open(JN7w, 'wb') as eHNT:\n t2lc.dump(YKHO.pose_data, eHNT)",
"def RSLV(YKHO):\n with open(YKHO.pickle_file, 'wb') as eHNT:\n t2lc.dump(YKHO, eHNT)",
"def M8PP(YKHO):\n w... | [
"0.72416496",
"0.7186424",
"0.70859444",
"0.6999124",
"0.6760987",
"0.6756719",
"0.6627612",
"0.65799445",
"0.6572838",
"0.64854664",
"0.6480522",
"0.6454239",
"0.6439358",
"0.64348185",
"0.6432111",
"0.6432111",
"0.64132416",
"0.6401967",
"0.63978916",
"0.63587093",
"0.63098... | 0.60208076 | 74 |
Get number of genotypes, i.e. size of the genotypephenotype map. | def exwG(YKHO):
return len(YKHO.genotypes) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qnn3(YKHO):\n rRmI = 0\n for Npgh in YKHO.lstOfChromosomesGenes:\n rRmI = rRmI + len(Npgh.lstOfAnotElements)\n return rRmI",
"def J6WG(YKHO) -> int:\n raise NotImplementedError",
"def Qnn3(YKHO):\n rRmI = 0\n for Npgh in YKHO.lstOfChromosomesClustersGenes:\n rRmI = rRmI + le... | [
"0.7521104",
"0.7394762",
"0.73076236",
"0.7160023",
"0.70404196",
"0.6985644",
"0.68951416",
"0.6877643",
"0.68748397",
"0.68748397",
"0.6822602",
"0.6789606",
"0.678952",
"0.67402846",
"0.6636464",
"0.66221666",
"0.6591017",
"0.6576547",
"0.6564687",
"0.65575004",
"0.653823... | 0.8274105 | 0 |
Fits a normalization model with xtrain and applies transformation to both sets. | def OEry(EvQg, QOe9):
Y5YY = txNa().fit(EvQg)
w4QZ = Y5YY.transform(EvQg)
E0IW = Y5YY.transform(QOe9)
return (w4QZ, E0IW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(YKHO):\n EvQg, ClYY = YKHO.split()\n Y5YY = SNvk(feature_range=(0.001, 1))\n IYay = Y5YY.fit_transform(EvQg)\n FBTe = Y5YY.fit_transform(EvQg)\n return (IYay, FBTe)",
"def OEry(YKHO):\n YKHO.mean = oyIN.mean(YKHO.x_train)\n YKHO.std = oyIN.std(YKHO.x_train)\n YKHO.max = oyIN.max(... | [
"0.72156596",
"0.7093108",
"0.69060016",
"0.68572193",
"0.6799842",
"0.65837497",
"0.65752625",
"0.65244013",
"0.64815146",
"0.6458177",
"0.6440788",
"0.64391875",
"0.64352715",
"0.64302784",
"0.640649",
"0.63919795",
"0.6331231",
"0.6321982",
"0.63122195",
"0.631177",
"0.630... | 0.6887308 | 3 |
Adds a vertex to the directed graph and returns the number of vertices in the graph after the addition. A vertex without an edge has a weight of zero. | def ohmD(YKHO) -> int:
YKHO.v_count += 1
p38c = YKHO.v_count
if p38c == 0:
YKHO.adj_matrix.append([0])
else:
for rdlD in YKHO.adj_matrix:
rdlD.append(0)
YKHO.adj_matrix.append([0] * p38c)
return YKHO.v_count | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ohmD(YKHO) -> int:\n YKHO.v_count = YKHO.v_count + 1\n if YKHO.v_count == 1:\n YKHO.adj_matrix.append([0])\n return YKHO.v_count\n YKHO.adj_matrix.append([0] * YKHO.v_count)\n ycBG = 0\n for YRbF in range(0, YKHO.v_count - 1):\n YKHO.adj_matrix[YRbF].append(ycBG)\n return... | [
"0.7623653",
"0.76226705",
"0.7598519",
"0.7299659",
"0.7050327",
"0.69424146",
"0.6881947",
"0.6866756",
"0.6841902",
"0.679104",
"0.6789955",
"0.6621276",
"0.65821314",
"0.6580125",
"0.6580051",
"0.65651995",
"0.6547723",
"0.65378636",
"0.6511957",
"0.6505739",
"0.6490237",... | 0.75905144 | 3 |
Adds an edge of weight to the directed graph that points from to . | def rz7z(YKHO, zZcM: int, zr3f: int, upAO=1) -> None:
p38c = YKHO.v_count
if zZcM >= p38c or zZcM < 0:
return
if zr3f >= p38c or zr3f < 0:
return
if zZcM == zr3f:
return
if upAO <= 0:
return
YKHO.adj_matrix[zZcM][zr3f] = upAO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F1KG(YKHO, V7BG, jnCY, upAO):\n YKHO.graph[V7BG].append([jnCY, upAO])",
"def A609(YKHO, D70y, SLBp, upAO):\n for YRbF in YKHO.graph:\n if YRbF == SLBp:\n YKHO.graph[SLBp].update((SLBp, upAO))",
"def F1KG(YKHO, Iebf, FMsH, upAO):\n SnW5 = YKHO.getVertex(Iebf)\n VYf4 = YKHO.getV... | [
"0.8223785",
"0.79921836",
"0.7915128",
"0.78701586",
"0.786697",
"0.786697",
"0.786697",
"0.786697",
"0.786697",
"0.78586686",
"0.7807112",
"0.77940404",
"0.7791017",
"0.7784902",
"0.7784366",
"0.77828914",
"0.77783364",
"0.77730745",
"0.77724665",
"0.7767004",
"0.7752006",
... | 0.7385282 | 34 |
Removes the edge between and vertices. | def iyca(YKHO, zZcM: int, zr3f: int) -> None:
p38c = YKHO.v_count
if zZcM >= p38c or zZcM < 0:
return
if zr3f >= p38c or zr3f < 0:
return
if zZcM == zr3f:
return
YKHO.adj_matrix[zZcM][zr3f] = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iyca(YKHO, tTpl):\n pass",
"def Eumf(YKHO, hQHm, jlSq):\n del YKHO.adj[hQHm][jlSq]\n del YKHO.adj[jlSq][hQHm]",
"def iyca(YKHO, D70y):\n JYV8, mheE = D70y.nodes\n if JYV8 in YKHO.edges and mheE in YKHO.edges[JYV8]:\n YKHO.edges[JYV8].remove(mheE)\n YKHO.rev_edges[mheE].remove(J... | [
"0.76917136",
"0.76497954",
"0.76240337",
"0.7603402",
"0.7591347",
"0.7576979",
"0.7576703",
"0.7549413",
"0.7544178",
"0.74497426",
"0.73752296",
"0.73607814",
"0.73270446",
"0.73110074",
"0.7282997",
"0.72738886",
"0.72709024",
"0.7243633",
"0.7199137",
"0.7195313",
"0.719... | 0.0 | -1 |
Performs a breadth first search starting from vertex and ending at vertex (or the entire graph if not included) and returns a list of the vertices visited during the traversal. If a node has multiple adjacent nodes, the BFS is performed by taking the nodes in ascending order (e.g. if current node = 4, next nodes traver... | def bJFh(YKHO, qsZL, SKuY=None) -> []:
g6Xv = []
p38c = YKHO.v_count
if qsZL < 0 or qsZL > p38c - 1:
return g6Xv
WSc5 = set()
gGq6 = MUE7()
YRbF = qsZL
gGq6.append(YRbF)
while gGq6:
YRbF = gGq6.popleft()
if YRbF not in WSc5:
WSc5.add(YRbF)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Asu7(pNZh, yKcO, Os4s):\n azXi = {yKcO: None}\n vexM = MUE7([yKcO])\n while vexM:\n Q6kx = vexM.popleft()\n if Q6kx == Os4s:\n pmON = MUE7()\n while Q6kx is not None:\n pmON.appendleft(Q6kx)\n Q6kx = azXi[Q6kx]\n return list(... | [
"0.7825614",
"0.7609421",
"0.7604088",
"0.7596073",
"0.7531537",
"0.7527894",
"0.7527894",
"0.7527894",
"0.7449981",
"0.73792076",
"0.7376155",
"0.7367364",
"0.7363825",
"0.7357346",
"0.7338586",
"0.73342586",
"0.7330618",
"0.7301237",
"0.72915465",
"0.7289532",
"0.7282049",
... | 0.71487594 | 32 |
Checks presence and validity of a JWT for specific URLs. Requires a JWT for all URLs starting with '/api' (all others may be accessed anonymously). Stores the payload in 'request['jwt_payload']. | async def check_jwt(P4t4, DCgT):
async def middleware_handler(QePW):
XP5J = QePW.rel_url.path
if not QePW.method == 'OPTIONS' and XP5J.startswith('/api') and (not ROIx.match(XP5J)):
try:
QePW['jwt_payload'] = QZOO(QePW.headers, P4t4['rc']['auth.jwt.secret'])
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yoSX(fb__, QePW=None, rzKX=None, uAWQ=True):\n fb__ = set(fb__)\n z_M0 = rzKX or WsL5.current_app.config['USER_API']\n if not fb__:\n raise lhJS('no audiences provided')\n QePW = QePW or WsL5.request\n try:\n zbev = QePW.headers['Authorization'].split(' ')[1]\n except IndexError... | [
"0.60208213",
"0.58699626",
"0.5753758",
"0.57325834",
"0.56988084",
"0.56306446",
"0.558175",
"0.55705833",
"0.5462681",
"0.5435014",
"0.5424382",
"0.542323",
"0.54093975",
"0.5396351",
"0.53868884",
"0.53868884",
"0.5384762",
"0.53295785",
"0.5304142",
"0.52830684",
"0.5270... | 0.63044393 | 0 |
this converts a datetime object to a string in the format that twitter uses | def JfKI(JRYC: datetime) -> str:
return JRYC.strftime(GGme)[0:23] + 'Z' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pTGH(qSq0):\n return qSq0.strftime('%Y/%m/%d %H:%M')",
"def ood6(JRYC):\n return JRYC.strftime(Mlaj) if JRYC else ''",
"def _RwM(YKHO, qcWV):\n return qcWV.strftime('%m/%d/%Y')",
"def _RwM(eGVy):\n return eGVy.strftime(EHRT)",
"def hLAQ(Emd4, pdbK, yAKl=rbmW.ISO):\n return pdbK.strftime(... | [
"0.76870114",
"0.76398075",
"0.7280858",
"0.72654045",
"0.7250648",
"0.7202858",
"0.7202433",
"0.7180225",
"0.7174612",
"0.7174326",
"0.7103227",
"0.70735747",
"0.70440406",
"0.7033228",
"0.702785",
"0.70236367",
"0.6977354",
"0.6973764",
"0.69313323",
"0.68599176",
"0.683882... | 0.0 | -1 |
Called if all forms are valid. Creates a Entry instance along with associated items and then redirects to a success page. | def lwXz(YKHO, L03z, oQcw):
YKHO.object = L03z.save()
oQcw.instance = YKHO.object
DumB = oQcw.save()
for ZfUD in DumB:
ZfUD.price = ZfUD.base_price * (1 - ZfUD.discount / 100) * (1 + ZfUD.addition / 100) * ZfUD.quantity
ZfUD.save()
Lx3t = ZfUD.product
Lx3t.price = ZfUD.pr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O_ar(YKHO):\n if YKHO.form.is_valid():\n YKHO.form.save()\n return Yd7Q(YKHO.get_success_url())",
"def O_ar(YKHO):\n if YKHO.form.is_valid():\n YKHO.form.save()\n return Yd7Q(YKHO.get_success_url())",
"def m8z6(YKHO, *qIxc, **B2fa):\n L03z = YKHO.form_class(YKHO.request... | [
"0.69038224",
"0.6878885",
"0.67996615",
"0.67325145",
"0.669084",
"0.669084",
"0.669084",
"0.66658366",
"0.6639416",
"0.66390896",
"0.66276026",
"0.66209614",
"0.6591863",
"0.6570627",
"0.65548193",
"0.65156114",
"0.6464518",
"0.64340055",
"0.64044124",
"0.6362405",
"0.63624... | 0.0 | -1 |
Called if whether a form is invalid. Rerenders the context data with the datafilled forms and errors. | def ee9W(YKHO, L03z, oQcw):
return YKHO.render_to_response(YKHO.get_context_data(form=L03z, item_form=oQcw)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ee9W(YKHO, QePW, L03z, wL1m, mYto):\n return _1tc(QePW, YKHO.template_name, YKHO.get_context_data(form=L03z, status_form=wL1m, files_form=mYto))",
"def ee9W(YKHO, L03z):\n return YKHO.render_to_response(YKHO.get_context_data())",
"def ee9W(YKHO, *qIxc, **B2fa):\n QpfX = YKHO.get_context_data()\n ... | [
"0.80073833",
"0.78313375",
"0.77304935",
"0.76996994",
"0.76996994",
"0.76996994",
"0.76996994",
"0.76996994",
"0.76996994",
"0.76996994",
"0.76977074",
"0.76971686",
"0.76661414",
"0.7658593",
"0.7652434",
"0.76493585",
"0.7621491",
"0.76158637",
"0.7556504",
"0.75125474",
... | 0.72974104 | 25 |
Add formset and formhelper to the context_data. | def tCbc(YKHO, **B2fa):
OaeV = super().get_context_data(**B2fa)
c93H = Pv4S()
if YKHO.request.POST:
OaeV['form'] = WMy7(YKHO.request.POST)
OaeV['item_form'] = R9Mo(YKHO.request.POST)
OaeV['item_formhelper'] = c93H
else:
OaeV['form'] = WMy7()
OaeV['item_form'] = R9... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tCbc(YKHO, **B2fa):\n dBAz = YKHO.formset_class(instance=YKHO.object)\n B2fa['formset'] = dBAz\n return super().get_context_data(**B2fa)",
"def tCbc(YKHO, **B2fa):\n if 'forms' not in B2fa:\n B2fa['forms'] = YKHO.get_forms(B2fa.get('active_form'))\n return super(y8xv, YKHO).get_context_... | [
"0.77388924",
"0.6728754",
"0.669347",
"0.65797836",
"0.6524065",
"0.6407556",
"0.63989353",
"0.6395569",
"0.6395131",
"0.63142425",
"0.6145523",
"0.6106169",
"0.60969",
"0.6067958",
"0.60590625",
"0.6020256",
"0.60009015",
"0.5898034",
"0.58869153",
"0.58718157",
"0.58515453... | 0.70558333 | 1 |
Method to add vrouter interface and assign IP to it along with vrrp_id and vrrp_priority. | def faqN(yR_P, ymPF, B1Qi, Gg4i, Hibj, bhej, gFDF):
global CHANGED_FLAG
FAMU = ymPF + '-vrouter'
Y0SL = B1Qi.split('.')
xPtb = Y0SL[3].split('/')
VWZy = xPtb[1]
SdBv = Y0SL[0] + '.' + Y0SL[1] + '.' + Y0SL[2] + '.'
cf76 = SdBv + '1' + '/' + VWZy
a3M2 = SdBv + bhej + '/' + VWZy
GSyo = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xQFT(YKHO, QpfX, Mem1, B879):\n na1r.debug('FortinetL3ServicePlugin.add_router_interface: router_id=%(router_id)s interface_info=%(interface_info)r', {'router_id': Mem1, 'interface_info': B879})\n with QpfX.session.begin(subtransactions=True):\n U34r = super(mxnI, YKHO).add_router_interface(QpfX, ... | [
"0.7497147",
"0.7192455",
"0.68738925",
"0.6819873",
"0.65747774",
"0.65494967",
"0.6520543",
"0.650263",
"0.6487426",
"0.6487309",
"0.6459087",
"0.6303752",
"0.61880726",
"0.6151481",
"0.6151481",
"0.61404836",
"0.6135382",
"0.6077214",
"0.6054798",
"0.60033095",
"0.6002271"... | 0.75213444 | 0 |
Build tables and model weights based on final vocabulary settings. | def n9Qk(YKHO):
if not YKHO.index2word:
YKHO.scale_vocab()
if YKHO.sorted_vocab:
YKHO.sort_vocab()
if YKHO.hs:
YKHO.create_binary_tree()
if YKHO.negative:
YKHO.make_cum_table()
if YKHO.null_word:
GIN8, Ty9i = ('\x00', zoYt(count=1, sample_int=0))
Ty9i.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HvJg():\n global documentList, bagOfWordDictionary\n Uwi4 = fJyn.Dictionary(TWvs)\n Byby = [Uwi4.doc2bow(A97Q) for A97Q in TWvs]\n lJgm = 'POS'\n ur6a(Byby, Uwi4, lJgm)\n GRZM = fJyn.Dictionary(Wvqd)\n CVoC = [GRZM.doc2bow(l5Ny) for l5Ny in Wvqd]\n lJgm = 'BOW'\n ur6a(CVoC, GRZM, lJg... | [
"0.73240274",
"0.69175035",
"0.6829687",
"0.6794724",
"0.67792",
"0.6738509",
"0.6673101",
"0.6670787",
"0.66088784",
"0.65842986",
"0.6550405",
"0.6531599",
"0.65094477",
"0.64964086",
"0.6465266",
"0.646447",
"0.64620084",
"0.63977844",
"0.6396222",
"0.6309077",
"0.6296907"... | 0.6746546 | 5 |
Reset all projection weights to an initial (untrained) state, but keep the existing vocabulary. | def UMkV(YKHO):
bo34.info('resetting layer weights')
YKHO.syn0 = lsmZ((len(YKHO.vocab), YKHO.vector_size), dtype=SeVW)
for YRbF in range(len(YKHO.vocab)):
YKHO.syn0[YRbF] = YKHO.seeded_vector(YKHO.index2word[YRbF] + str(YKHO.seed))
if YKHO.hs:
YKHO.syn1 = VNqG((len(YKHO.vocab), YKHO.laye... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n YKHO.embedding_weights = YKHO.conv_weights = YKHO.norm_weights = None",
"def nZgE(YKHO):\n YKHO.model.set_weights(YKHO.init_weights)\n YKHO._apply_masks()\n bo34.info('>> Initial weights were restored.')",
"def UMkV(YKHO):\n FNYZ.reset_weights()\n YKHO._initial_hidden_state.... | [
"0.7687254",
"0.7387033",
"0.69734037",
"0.69631845",
"0.69550824",
"0.6893469",
"0.67678624",
"0.66522247",
"0.6615031",
"0.65933293",
"0.65912634",
"0.6570722",
"0.655324",
"0.65477175",
"0.6512727",
"0.6512727",
"0.65047586",
"0.6494407",
"0.64795744",
"0.64732283",
"0.645... | 0.70091575 | 2 |
Gets the order_id of this OrderItem. | def zJ7I(YKHO) -> int:
return YKHO._order_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zJ7I(YKHO):\n return YKHO._order_id",
"def zJ7I(YKHO):\n return YKHO._order_id",
"def zJ7I(YKHO):\n return YKHO._order_id",
"def NXyg(YKHO):\n return YKHO.__order_id",
"def AtRw(YKHO):\n zJ7I = YKHO._counter\n YKHO._counter += 1\n return zJ7I",
"def yWdm(YKHO):\n return YKHO._... | [
"0.8362422",
"0.8362422",
"0.8362422",
"0.83082336",
"0.71451586",
"0.70530355",
"0.6973692",
"0.69045824",
"0.68669677",
"0.67528105",
"0.67528105",
"0.67528105",
"0.67528105",
"0.67353076",
"0.6733531",
"0.6641899",
"0.660633",
"0.660633",
"0.6578554",
"0.6512207",
"0.64929... | 0.8392635 | 0 |
Sets the order_id of this OrderItem. | def zJ7I(YKHO, zJ7I: int):
if zJ7I is None:
raise ValueError('Invalid value for `order_id`, must not be `None`')
YKHO._order_id = zJ7I | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FjrU(YKHO, zJ7I):\n YKHO.__order_id = zJ7I",
"def zJ7I(YKHO, zJ7I):\n YKHO._order_id = zJ7I",
"def zJ7I(YKHO, zJ7I):\n YKHO._order_id = zJ7I",
"def zJ7I(YKHO, zJ7I):\n YKHO._order_id = zJ7I",
"def zJ7I(YKHO, zJ7I):\n YKHO._order_id = zJ7I",
"def zJ7I(YKHO, zJ7I):\n YKHO._order_id = ... | [
"0.86729455",
"0.8529542",
"0.8529542",
"0.8529542",
"0.8529542",
"0.8529542",
"0.84893495",
"0.84893495",
"0.7981372",
"0.79163265",
"0.7913822",
"0.72589165",
"0.72349864",
"0.7153253",
"0.7131999",
"0.6876402",
"0.6845237",
"0.6768673",
"0.6723225",
"0.65930736",
"0.659307... | 0.8053504 | 8 |
Gets the weight of this OrderItem. | def upAO(YKHO) -> float:
return YKHO._weight | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vb5m(YKHO):\n return YKHO._weight",
"def rOos(YKHO):\n return YKHO.weight",
"def upAO(YKHO):\n return YKHO._weight",
"def upAO(YKHO):\n return YKHO._weight",
"def upAO(YKHO):\n return YKHO._weight",
"def upAO(YKHO):\n return YKHO._weight",
"def upAO(YKHO):\n return YKHO._weight... | [
"0.8272506",
"0.82474595",
"0.81652886",
"0.81652886",
"0.81412065",
"0.81412065",
"0.81412065",
"0.81412065",
"0.81412065",
"0.81242746",
"0.81234777",
"0.8085336",
"0.80834347",
"0.80515176",
"0.8031151",
"0.8021495",
"0.8021495",
"0.80035335",
"0.79899156",
"0.7957252",
"0... | 0.8089941 | 11 |
Gets the region of this OrderItem. | def zn0c(YKHO) -> int:
return YKHO._region | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mSOp(YKHO):\n return YKHO._region",
"def oMHX(YKHO):\n return YKHO.region",
"def oMHX(YKHO):\n return YKHO.region",
"def zn0c(YKHO):\n return YKHO._region",
"def zn0c(YKHO):\n return YKHO._region",
"def zn0c(YKHO):\n return YKHO._region",
"def zn0c(YKHO):\n return YKHO._placema... | [
"0.8086658",
"0.7984055",
"0.7982249",
"0.78940386",
"0.78940386",
"0.78940386",
"0.7782213",
"0.772638",
"0.7616518",
"0.74623924",
"0.7439052",
"0.7439052",
"0.7439052",
"0.7439052",
"0.7439052",
"0.7439052",
"0.7439052",
"0.7439052",
"0.7439052",
"0.7439052",
"0.7439052",
... | 0.7664234 | 8 |
Mark this connection as having successfully shook hands. | def ASje(YKHO):
YKHO.ready = True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xNI2(YKHO):\n YKHO.sb_index = YKHO.__wrap_index(YKHO.sb_index + 1)\n YKHO.hands_this_level += 1\n YKHO.__check_raise_blinds()",
"def CP8m(YKHO, *qIxc):\n YKHO.status = 'n'\n return YKHO.status",
"def OK1o(YKHO):\n pass",
"def TJQj(YKHO):\n if YKHO.blackJack() == True:\n YKHO.b... | [
"0.63262147",
"0.621714",
"0.5970283",
"0.5943643",
"0.5859247",
"0.58536285",
"0.5846416",
"0.5819869",
"0.5690256",
"0.56722337",
"0.5635996",
"0.5624589",
"0.5624589",
"0.5624589",
"0.5624589",
"0.5624589",
"0.5624589",
"0.5624589",
"0.5624589",
"0.5624589",
"0.5624589",
... | 0.0 | -1 |
Adds an AcademicPaper to the papers list of this author | def UM5H(YKHO, rt_r):
YKHO.papers.append(rt_r)
YKHO.paperTitles.append(rt_r.title)
YKHO.numPublications += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wGBK(YKHO, taDc):\n YKHO.authors.append(taDc)",
"def E4mv(YKHO, leAC, taDc):\n jI4j = dl5x(leAC, taDc)\n YKHO.books.append(jI4j)",
"def E4mv(jI4j):\n i8RB.append(jI4j)",
"def H2v5(YKHO, lkzj, z6p6):\n return JG0v.addDisciplina(lkzj, z6p6)",
"def nth6(YKHO) -> None:\n if not YKHO.paper... | [
"0.61617446",
"0.60684836",
"0.5874892",
"0.58353466",
"0.5826495",
"0.5826045",
"0.56694764",
"0.56147",
"0.55362153",
"0.55346066",
"0.55346066",
"0.55122536",
"0.5511731",
"0.5494272",
"0.5420538",
"0.54167163",
"0.5410253",
"0.53788596",
"0.5374505",
"0.53425515",
"0.5314... | 0.76649964 | 0 |
Get the number of output channels for this multiplexer | def xMux(YKHO) -> int:
return YKHO._channels | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nCf7(jTqs: int):\n return 4 + 2 + jTqs",
"def Qi3c(YKHO):\n if YKHO.inspect_value('index') is None:\n if len(YKHO.generators) > 0:\n return YKHO.generators[0].num_channels()\n return 0\n return YKHO.get_current_generator().num_channels()",
"def Qi3c(YKHO):\n if YKHO.ins... | [
"0.7689226",
"0.758767",
"0.758767",
"0.7466859",
"0.7464393",
"0.74589914",
"0.74242735",
"0.7387156",
"0.73798233",
"0.7347737",
"0.73269725",
"0.73071855",
"0.7306438",
"0.72136647",
"0.7174561",
"0.71559244",
"0.71235436",
"0.7065297",
"0.70603526",
"0.7021387",
"0.700138... | 0.7061645 | 18 |
Get the Input instance for the given source, calling _tick if we've seen it before | def F8hk(YKHO, JZXy) -> X6a0:
YKHO._input_lock.acquire()
try:
jIlP = YKHO._inputs[JZXy]
except KeyError:
YKHO._input_lock.release()
raise
if jIlP.has_input:
try:
HZMT = YKHO._tick()
for EWck, U34r in YKHO._inputs.items():
U34r.has_i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JZXy(YKHO):\n d6pt = YKHO._ordered_input_names.index('source')\n return YKHO._inputs[d6pt]",
"def JZXy(YKHO):\n d6pt = YKHO._ordered_input_names.index('source')\n return YKHO._inputs[d6pt]",
"def JZXy(YKHO):\n d6pt = YKHO._ordered_input_names.index('source')\n return YKHO._inputs[d6pt]",
... | [
"0.6212815",
"0.6212815",
"0.6212815",
"0.6212815",
"0.576307",
"0.5655092",
"0.5584326",
"0.55561864",
"0.5529198",
"0.5517119",
"0.5503602",
"0.5497235",
"0.5429014",
"0.53465074",
"0.533764",
"0.5318284",
"0.5318284",
"0.5318284",
"0.5290325",
"0.5262934",
"0.52557987",
... | 0.87829566 | 0 |
normalise data so 1=mean (including ignoring any outliers if specified. if delta_ignore=0 use original mean. | def kwsU(WKvO, RA_F, FV3y=0):
J_tD = []
if FV3y == 0:
jvkK = O5eV(WKvO, RA_F)
else:
jvkK = WKvO[FV3y]
for YRbF in range(len(WKvO)):
WzsH = 1.0 * WKvO[YRbF] / jvkK
J_tD.append(WzsH)
return J_tD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O5eV(WKvO, IvB1):\n njzj = sum(WKvO)\n saqM = 1.0 * sum(WKvO) / (1.0 * len(WKvO))\n ADsk = []\n if IvB1 != 0:\n for YRbF in range(len(WKvO)):\n oiSt = plSJ(WKvO[YRbF] - saqM) / saqM\n if oiSt <= IvB1:\n ADsk.append(WKvO[YRbF])\n _c_z = 1.0 * sum(AD... | [
"0.7063862",
"0.6713857",
"0.6579479",
"0.6541361",
"0.63954425",
"0.637198",
"0.6317195",
"0.6275213",
"0.6215243",
"0.6171732",
"0.6145329",
"0.6142082",
"0.6135823",
"0.6126167",
"0.6115264",
"0.6103829",
"0.6099107",
"0.6096826",
"0.6092328",
"0.6082211",
"0.6082211",
"... | 0.6846926 | 1 |
Initialize a task. Tasks allow for caching (retrieving a previous result of the same task definition and inputs), and concurrent execution. | def FIMM(YKHO, mWFP: str, qCya: AuditFlag=bHJB.NONE, BXLT=None, mApA=None, g4y1: ty.Optional[ty.Union[ty.Text, File, ty.Dict]]=None, OOS1=None, gBNZ=None, BprZ=None, A2bY=False):
from .. import check_latest_version
if ptCa._etelemetry_version_data is None:
ptCa._etelemetry_version_data = check_latest_ve... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sphw(YKHO) -> None:\n raise NotImplementedError(\"'init_task' is almost always necessary.\")",
"def FIMM(YKHO, D5gV, *qIxc, **B2fa):\n assert callable(D5gV), 'Task is not callable'\n YKHO._task = D5gV\n YKHO._args = qIxc\n YKHO._kwargs = B2fa\n YKHO._runner = None\n YKHO._done = False\n ... | [
"0.77087945",
"0.7653993",
"0.7327311",
"0.7153011",
"0.7025583",
"0.6987604",
"0.69325995",
"0.6907729",
"0.68912935",
"0.68739355",
"0.6872704",
"0.68434185",
"0.68322825",
"0.68167233",
"0.68106204",
"0.6809049",
"0.676458",
"0.6707163",
"0.66978264",
"0.66608834",
"0.6645... | 0.0 | -1 |
Get the location of the cache directory. | def BXLT(YKHO):
return YKHO._cache_dir | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BXLT(YKHO):\n return YKHO.path('cache')",
"def wsLY(YKHO):\n return YKHO._get('cachedir')",
"def I7Lz(YKHO) -> GkAb:\n return GkAb(YKHO.directory)",
"def TfyK(YKHO):\n return YKHO._cache_directory",
"def mGpN(YKHO):\n return gbPf.gettempdir()",
"def mGpN():\n return TENv",
"def Xv... | [
"0.89806455",
"0.88765407",
"0.88403213",
"0.8632723",
"0.84620994",
"0.844799",
"0.83657414",
"0.8359006",
"0.8276868",
"0.8276868",
"0.82299995",
"0.82203096",
"0.82065564",
"0.82005554",
"0.8088647",
"0.80799615",
"0.8068705",
"0.805171",
"0.79645824",
"0.7895765",
"0.7890... | 0.8690189 | 3 |
Makes sure the provided input specifications are valid. If the input specification is a list of strings, this will build a proper SpecInfo object out of it. | def BeLX(Cqok: ty.Union[SpecInfo, ty.List[str], ty.Dict[str, ty.Type[ty.Any]], BaseSpec, None], qcCq: str, onns: str, fSWM: bool=False) -> IqTb:
N69p = ('_graph_checksums', Yrvv.Any)
if Cqok:
if isinstance(Cqok, IqTb):
if BFgG not in Cqok.bases:
raise ValueError('Provided Spe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hfK9(Mzww: List[Spec]) -> x1iM[WI8m]:\n import re\n Sapb = []\n for KCHu in Mzww:\n AXJS = []\n if type(KCHu) is list:\n AXJS = []\n for Ty9i in KCHu:\n if type(Ty9i) is str:\n AXJS.append(Ty9i)\n gmY1 = WI8m(attribute=AX... | [
"0.6888476",
"0.6604153",
"0.647821",
"0.6301332",
"0.62267417",
"0.6131582",
"0.6112566",
"0.60663754",
"0.6057379",
"0.5865045",
"0.5744483",
"0.5704971",
"0.5674663",
"0.56574816",
"0.564455",
"0.5634725",
"0.56149197",
"0.5582389",
"0.55678",
"0.55351317",
"0.55261695",
... | 0.6182656 | 5 |
Pop the oldest message off the channel backup queue. The result isn't interesting as it was already processed. | async def _clean_receive_backup(YKHO, d6pt, YwkQ):
UzPC = YKHO.connection(d6pt)
await UzPC.zpopmin(YKHO._backup_channel_name(YwkQ)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SfXI(YKHO) -> vM0C:\n return _eVy.heappop(YKHO._message_queue)",
"def m4XD(YKHO):\n if not YKHO.queue:\n return None\n DkAy = YKHO.queue.pop()\n YKHO.queue.clear()\n return DkAy",
"def BEuN(YKHO):\n if not YKHO.cache.keys():\n return None\n pqwE = min(YKHO.cache.values(),... | [
"0.7090869",
"0.67947435",
"0.67688775",
"0.6674266",
"0.6638986",
"0.6629688",
"0.656715",
"0.6547474",
"0.65237445",
"0.6446121",
"0.64460033",
"0.64460033",
"0.64144915",
"0.6375425",
"0.6370925",
"0.6351969",
"0.6338671",
"0.6321069",
"0.6304237",
"0.6301744",
"0.6300429"... | 0.64627296 | 9 |
Evaluate the gaussian at the given location. | def nrOS(YKHO, BWXx: ndarray) -> float:
IZxK = nSzW(mean=YKHO.mean.T[0], cov=YKHO.covariance)
return YKHO.weight * YWvJ(float, IZxK.pdf(BWXx.T[0])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ufxv(WKvO, JBMS, WTkW, caa_, vgXP):\n LVAh = IAWS(WKvO, JBMS, WTkW, caa_, vgXP)\n return LVAh",
"def IAWS(WKvO):\n return oyIN.exp(-WKvO ** 2)",
"def IAWS(WKvO):\n return oyIN.exp(-(WKvO ** 2 / 2))",
"def IAWS(WKvO, JBMS, SRYB):\n return oyIN.exp(-0.5 * (oyIN.asarray(WKvO) - JBMS) ** 2 / S... | [
"0.6756405",
"0.6680757",
"0.66806585",
"0.66669416",
"0.66669416",
"0.65648603",
"0.65636337",
"0.6556609",
"0.65540123",
"0.65425926",
"0.64955544",
"0.64644223",
"0.64644146",
"0.6451",
"0.6435949",
"0.6432954",
"0.64158565",
"0.6406249",
"0.64026713",
"0.6376842",
"0.6368... | 0.0 | -1 |
n is pentagonal if the inverse pentagonal function returns an integer | def abn4(exwG):
ydff = (epAf.sqrt(24 * exwG + 1) + 1) / 6.0
return ydff == float(int(ydff)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oBTK(exwG):\n return int(exwG * (3 * exwG - 1) / 2)",
"def lEC5(exwG):\n return exwG * (3 * exwG - 1) >> 1",
"def nEwE(exwG):\n return exwG * (3 * exwG - 1) // 2",
"def W1zZ(exwG):\n YRbF = 1\n while True:\n XP5J = lEC5(YRbF)\n if XP5J == exwG:\n return True\n ... | [
"0.8520126",
"0.8428885",
"0.79109216",
"0.7782763",
"0.7726582",
"0.70552486",
"0.6957648",
"0.691793",
"0.6914276",
"0.69105154",
"0.68962514",
"0.680534",
"0.679973",
"0.6791119",
"0.6760847",
"0.67110264",
"0.6651834",
"0.66375613",
"0.65744936",
"0.65507287",
"0.65391535... | 0.76222944 | 6 |
n is pentagonal if the inverse pentagonal function returns an integer | def abn4(exwG):
ydff = (epAf.sqrt(24 * exwG + 1) + 1) / 6.0
return ydff == float(int(ydff)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oBTK(exwG):\n return int(exwG * (3 * exwG - 1) / 2)",
"def lEC5(exwG):\n return exwG * (3 * exwG - 1) >> 1",
"def nEwE(exwG):\n return exwG * (3 * exwG - 1) // 2",
"def W1zZ(exwG):\n YRbF = 1\n while True:\n XP5J = lEC5(YRbF)\n if XP5J == exwG:\n return True\n ... | [
"0.8519333",
"0.84281635",
"0.79103",
"0.7781448",
"0.7725303",
"0.7055041",
"0.6959089",
"0.69169295",
"0.6913527",
"0.6912863",
"0.6895597",
"0.6805228",
"0.6799588",
"0.67906034",
"0.6760302",
"0.6710293",
"0.6652688",
"0.663987",
"0.6574536",
"0.6551457",
"0.65420073",
... | 0.76213664 | 5 |
test that index response status code is 200 | def QJXU(YKHO):
dg7v = i9zE()
geh0 = dg7v.get('/')
YKHO.assertEqual(geh0.status_code, 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZZwI(YKHO):\n print('In method', YKHO._testMethodName)\n YKHO.assertEqual(200, YKHO.response.status_code)",
"def mdVt(YKHO):\n geh0 = YKHO.client.get(gxEw('index'))\n YKHO.assertEqual(geh0.status_code, 200)",
"def a32l():\n assert '200 OK' == wk5E.test_client().get('/').status",
"def nlJK(... | [
"0.88639504",
"0.87268937",
"0.8705584",
"0.84890866",
"0.8354317",
"0.8284404",
"0.8261139",
"0.8133786",
"0.8117433",
"0.80221343",
"0.79617125",
"0.7926322",
"0.7917267",
"0.79105055",
"0.7891194",
"0.7891194",
"0.7876726",
"0.78507537",
"0.78507537",
"0.7838725",
"0.78387... | 0.73360276 | 70 |
The data file should always be saved in the same directory as main.py, not in the directory that the script is run from. This method returns the data file's full path. | def WVBM(YKHO):
UWsy = kxvW()
gadK = cHDr(UWsy)
yil3 = '%s/data.bin' % gadK
return yil3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s8df(YKHO, Ux0P):\n wd8X = Hy7s.path.dirname(xAKo)\n return Hy7s.path.join(wd8X, '..', 'data', Ux0P)",
"def s8df() -> str:\n i0XC = Hy7s.path.join(Hy7s.path.dirname(xAKo), 'data')\n return i0XC",
"def p5UZ(YKHO, Ux0P):\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'data', Ux0P)",
"def O... | [
"0.8403654",
"0.8392644",
"0.8252483",
"0.82352424",
"0.81862956",
"0.81305784",
"0.80716085",
"0.7999169",
"0.7916669",
"0.79060656",
"0.7847947",
"0.7818756",
"0.77557665",
"0.7727899",
"0.7723783",
"0.7722906",
"0.7698261",
"0.7681331",
"0.7672638",
"0.76710385",
"0.764587... | 0.8217364 | 4 |
This function implements the dictionary that has the functions which compute the variables shown in the plot window. Each key in 'self.var_computer' is a vaqriable to be computed and the correspondent key should be the function which computes the variable described by the key (the function is already defined, of course... | def ctaX(YKHO):
if YKHO.variables == []:
YKHO.variables = list(N7Fb)
YKHO.var_computer = jth9.deepcopy(OUEp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rof0(YKHO, SRYB):\n if SRYB in list(YKHO.var_computer.keys()):\n return YKHO.var_computer[SRYB](YKHO)\n else:\n print('WARNING: Variable not found!')\n print(\"Computation of '\" + SRYB + \"' was not possible.\")\n return -1",
"def N_Pi(YKHO):\n YKHO.cost_inv = {}\n YK... | [
"0.6052638",
"0.56950593",
"0.5675292",
"0.5649212",
"0.5609832",
"0.5524375",
"0.5455612",
"0.5431123",
"0.53972006",
"0.5342333",
"0.53312606",
"0.53266394",
"0.5315858",
"0.5289833",
"0.5260802",
"0.5236131",
"0.52360266",
"0.5233716",
"0.51428133",
"0.5104305",
"0.5089216... | 0.6289117 | 0 |
Check that the result in 'data' contains the names given in the array 'names'. | def jVtS(YKHO, nPrm, ZWCE):
def d7YE(tTpl):
return tTpl['name']
BeR8 = list(map(d7YE, nPrm))
SjMt(BeR8, ZWCE) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AQPw(YKHO, nPrm, qzC2=None):\n if qzC2 == None:\n qzC2 = [YKHO.user_a.username, YKHO.user_b.username]\n for mWFP in qzC2:\n YKHO.assertTrue(mWFP in nPrm)",
"def LDBg(YKHO, ZWCE: Iterable) -> None:\n en1V = [WKvO for WKvO in ZWCE if WKvO not in YKHO.__by_name.keys()]\n if en1V:\n ... | [
"0.72780406",
"0.67965794",
"0.65770644",
"0.6516698",
"0.65088403",
"0.64512104",
"0.6436584",
"0.6429709",
"0.63756377",
"0.6323045",
"0.6318416",
"0.6304471",
"0.63009983",
"0.6296679",
"0.6283495",
"0.6283331",
"0.6223444",
"0.6164631",
"0.614292",
"0.614292",
"0.60713446... | 0.7934195 | 0 |
Return True if any element in str_list is in the str_url. | def qWaH(hkWs, G10Q):
return Pusg(lambda LVAh, epBp: LVAh or epBp, map(lambda WKvO: WKvO in G10Q, hkWs)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XFwS(stWx, qFa0):\n if any((YBcr in stWx for YBcr in qFa0)):\n return True\n else:\n return False",
"def HCFx(YKHO, byzw, STOR):\n mZmz = False\n for hkxX in byzw:\n if hkxX in STOR:\n mZmz = True\n break\n return mZmz",
"def mZmz(NfAq, Kt8u):\n ... | [
"0.7226721",
"0.72085035",
"0.70967317",
"0.6822961",
"0.6788588",
"0.66953063",
"0.6693329",
"0.66858464",
"0.6569884",
"0.6525789",
"0.64547366",
"0.638774",
"0.6375018",
"0.63575244",
"0.6354984",
"0.63140047",
"0.62800014",
"0.626819",
"0.62424576",
"0.62306476",
"0.62285... | 0.7721471 | 0 |
Test if the dictionaries are equal, in managable parts. | def kq4b(AKpo, BvfI):
for G1Hx in ['LN', 'NS', 'PATTERN', 'X']:
assert AKpo[G1Hx] == BvfI[G1Hx], ('mistmatch', G1Hx, 'test dictionary', AKpo[G1Hx], 'match dictionary', BvfI[G1Hx]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ifco(lGE9, n2Q1):\n if isinstance(lGE9, list):\n assert isinstance(n2Q1, list)\n return all((Ifco(Ngpo, dg7v) for Ngpo, dg7v in zip(lGE9, n2Q1)))\n elif isinstance(lGE9, (jUrF, int)):\n assert isinstance(n2Q1, (jUrF, int))\n return lGE9 == n2Q1\n assert isinstance(lGE9, dic... | [
"0.77351856",
"0.75963926",
"0.7577572",
"0.75645167",
"0.7557117",
"0.75100976",
"0.7491138",
"0.74800724",
"0.7478295",
"0.7438969",
"0.7212503",
"0.7194447",
"0.7187788",
"0.71817523",
"0.7178157",
"0.71767366",
"0.71589845",
"0.7130632",
"0.7083488",
"0.70769936",
"0.7063... | 0.0 | -1 |
Configure the logging framework | def tqPq(It6F: Union[Dict, str, Path]):
if isinstance(It6F, (GkAb, str)):
if isinstance(It6F, str):
_5Pi = GkAb(It6F)
else:
_5Pi = It6F
_5Pi = _5Pi.expanduser().absolute()
It6F = AXOg(_5Pi)
G9jH.config.dictConfig(It6F) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lWLw(bo34):\n pass",
"def tqPq():\n G9jH.config.fileConfig('config/logging.conf')",
"def VdIj():\n G9jH.config.dictConfig(GPtr)",
"def EsWC(YKHO):\n from olympia.lib.log_settings_base import log_configure\n log_configure()",
"def wmdW():\n G9jH.config.dictConfig(GPtr['logging_dict'])"... | [
"0.8000772",
"0.79602",
"0.7894337",
"0.7876376",
"0.7779095",
"0.7680253",
"0.7625402",
"0.7562944",
"0.75617135",
"0.75469476",
"0.7542337",
"0.7521665",
"0.7521665",
"0.7515066",
"0.75021183",
"0.74998784",
"0.7486351",
"0.74688405",
"0.7443986",
"0.7439561",
"0.7405378",
... | 0.0 | -1 |
List of all tokens contained in the given code. | def thS1(Wxnj: str, RY7g=None) -> a1PO.List[wr3U.TokenInfo]:
assert isinstance(Wxnj, str), type(Wxnj)
kNjK = Wxnj.encode()
with xDSY.BytesIO(kNjK) as GiuL:
b0j5 = wr3U.tokenize(GiuL.readline)
s2mk = [eOtH for eOtH in b0j5 if RY7g is None or RY7g(eOtH)]
return s2mk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pPAz(Wxnj):\n Wxnj = Wxnj.rstrip() + '\\n'\n if isinstance(Wxnj, QMSQ):\n Wxnj = Wxnj.encode('utf8')\n Wxnj = '# coding: utf8\\n' + Wxnj\n Q4kH = wr3U.generate_tokens(kJm3(Wxnj).readline)\n return Q4kH",
"def wr3U(Wxnj):\n sVX5 = []\n aFve = False\n Nqlg = Wxnj.splitlines()\n ... | [
"0.7510994",
"0.7291694",
"0.6976919",
"0.69661474",
"0.68652374",
"0.6798942",
"0.67729115",
"0.6768717",
"0.6748573",
"0.65679544",
"0.656663",
"0.6439245",
"0.63977015",
"0.63977015",
"0.6358827",
"0.6342588",
"0.62707406",
"0.6270084",
"0.6270028",
"0.6267843",
"0.6257036... | 0.76110476 | 0 |
returns the sum of two tuples as tuple. | def QOqc(n2Q1, SpII):
return tuple(map(seET.add, n2Q1, SpII)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R7io(cz0k, VT58):\n return (cz0k[0] + VT58[0], cz0k[1] + VT58[1])",
"def R7io(cz0k, VT58):\n return (cz0k[0] + VT58[0], cz0k[1] + VT58[1])",
"def H2v5(cz0k, VT58):\n return (cz0k[0] + VT58[0], cz0k[1] + VT58[1])",
"def VKZd(P4b5=(), ssvP=()):\n if len(P4b5) < 1:\n P4b5 = (0, 0)\n el... | [
"0.86082745",
"0.8564827",
"0.8264272",
"0.82159257",
"0.79666525",
"0.79512966",
"0.7831619",
"0.7666976",
"0.76582396",
"0.74644184",
"0.7319973",
"0.7153956",
"0.71294826",
"0.7118019",
"0.70720243",
"0.70091426",
"0.69072396",
"0.6849343",
"0.6849343",
"0.6849343",
"0.682... | 0.82583845 | 3 |
The set of arguments for constructing a Preset resource. | def FIMM(Ro_8, *, Oc3o: Any, Ghho: Optional[pulumi.Input[str]]=None, JBZA: Optional[pulumi.Input[str]]=None, mWFP: Optional[pulumi.Input[str]]=None, dJ1p: Optional[Any]=None):
qe4Y.set(Ro_8, 'settings_json', Oc3o)
if Ghho is not None:
qe4Y.set(Ro_8, 'category', Ghho)
if JBZA is not None:
qe4... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, kFeU: str, qIxc: HoneypotPresetArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def zx8A(YKHO):\n return ''",
"def FIMM(Ro_8, kFeU: str, VKhi: Optional[pulumi.ResourceOptions]=None, isAr: Optional[pulumi.Input[bool]]=None, OVXe: Optional[pulumi.Input[str]]=None, YSxq: Optional[... | [
"0.6278334",
"0.6026598",
"0.58925694",
"0.58476555",
"0.58350587",
"0.58248043",
"0.58062553",
"0.5806223",
"0.5781646",
"0.57701796",
"0.57701796",
"0.57685715",
"0.5764288",
"0.57565457",
"0.5720584",
"0.57184446",
"0.57089776",
"0.56997824",
"0.5695742",
"0.5682054",
"0.5... | 0.0 | -1 |
Get an existing Preset 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) -> 'Preset':
VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))
r6DL = SQgs.__new__(SQgs)
r6DL.__dict__['arn'] = None
r6DL.__dict__['category'] = None
r6DL.__dict__['description'] = None
r6D... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, bHnq: Optional[pulumi.Input[str]]=None, ixN0: Optional[pulumi.Input[str]]=None, e5kH: Optional[pulumi.Input[pulumi.InputType['HoneypotPresetMetaArgs']]]=None, Lnes: Optional[pulumi.Input[str]]=None, XzxE: Optional[pulumi.Input[... | [
"0.56420517",
"0.55673456",
"0.5456624",
"0.5412763",
"0.53468984",
"0.5346302",
"0.53339994",
"0.53170973",
"0.53116256",
"0.53013766",
"0.5290927",
"0.5278985",
"0.5275566",
"0.5271189",
"0.5270336",
"0.5263572",
"0.52354056",
"0.5176071",
"0.5160927",
"0.513671",
"0.512308... | 0.6403602 | 0 |
A user should not be able to make a request to change another user's password | def P8kD(YKHO):
YKHO.client.login(username='member2', password='password')
V_D6 = {'user_id': YKHO.user.id, 'password': 'password', 'new_password': 'password2', 'new_confirmed': 'password2'}
geh0 = YKHO.client.post(gxEw('user-change-password'), V_D6)
YKHO.assertEqual(geh0.status_code, 403) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D8v4(ClzK, AroK):\n geh0 = ClzK.get('/profile/user/edit')\n nPrm = BfDw.load_data_from_form(geh0.text, 'basic_form')\n nPrm['password'] = 'test123'\n nPrm['confirm'] = 'test123'\n geh0 = ClzK.post('/profile/user/edit', data=nPrm)\n assert geh0.status_code == 200\n assert x0hE.login(ClzK, A... | [
"0.79930633",
"0.76706773",
"0.76558167",
"0.7534301",
"0.74068886",
"0.7217331",
"0.7140834",
"0.70672935",
"0.70468605",
"0.7028486",
"0.70119697",
"0.70006305",
"0.69928735",
"0.6963719",
"0.69221336",
"0.6918487",
"0.6918331",
"0.6885185",
"0.6867823",
"0.68608445",
"0.68... | 0.7541898 | 3 |
Fuses all Convolution and Batchnorm layers to get better latency. | def Ea_4(YKHO):
print('Fusing Conv Batch Norm Layers.')
if not YKHO._fused:
YKHO._fused = True
for gEmA in YKHO.submodules:
if isinstance(gEmA, okaM.ConvBN):
gEmA.fuse()
YKHO.summary()
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zUti(g4y1, gt4n=16, wf59=64, Ot1W=3, FEri=1, YDYE='relu', uNRR=False, jYxY=False, RG9Q='he_normal', o1A9=0):\n jYCi = g4y1.get_shape()[-1]\n if gt4n <= wf59:\n yIp6 = IbI1(gt4n, kernel_size=Ot1W, strides=FEri, padding='same', kernel_initializer=RG9Q, kernel_regularizer=V70B(o1A9))\n I7zk = ... | [
"0.67336184",
"0.67095625",
"0.67037886",
"0.6655301",
"0.66302556",
"0.6550338",
"0.6550101",
"0.65444154",
"0.6525725",
"0.64888",
"0.6486665",
"0.64761084",
"0.64724827",
"0.64721644",
"0.6462994",
"0.6449667",
"0.6416585",
"0.6396174",
"0.6386173",
"0.6377221",
"0.6371615... | 0.72073007 | 0 |
Sets the learning rate to the initial LR decayed by 10 every 30 epochs | def e_63(K0do, qtWj, YkNu=4, _nen=0.2):
tspZ = qIxc.lr * _nen ** (qtWj // YkNu)
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(K0do, qtWj):\n nIX4 = nIX4 * 0.1 ** ((qtWj - 117) // 30)",
"def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.1 ** (qtWj // 30)\n K0do.state_dict()['param_groups'][-1]['lr'] = tspZ",
"def e_63(ma4o, K0do, qtWj, ctbl):\n tspZ = ma4o * 0.1 ** (qtWj // int(epAf.ceil(30.0 / ctbl)))\n for Lwm... | [
"0.7991378",
"0.7939764",
"0.7889",
"0.7827389",
"0.7822272",
"0.7816309",
"0.78095895",
"0.7802081",
"0.77903694",
"0.7787502",
"0.7781302",
"0.77642953",
"0.77639496",
"0.77607936",
"0.77484435",
"0.77374756",
"0.7730363",
"0.7723494",
"0.77112955",
"0.77080715",
"0.7703506... | 0.0 | -1 |
Sets the learning rate to the initial LR decayed by 10 every 30 epochs | def TfLF(K0do, tspZ, _nen=0.2):
gxDU = tspZ * _nen
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = gxDU
return gxDU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(K0do, qtWj):\n nIX4 = nIX4 * 0.1 ** ((qtWj - 117) // 30)",
"def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.1 ** (qtWj // 30)\n K0do.state_dict()['param_groups'][-1]['lr'] = tspZ",
"def e_63(ma4o, K0do, qtWj, ctbl):\n tspZ = ma4o * 0.1 ** (qtWj // int(epAf.ceil(30.0 / ctbl)))\n for Lwm... | [
"0.7991837",
"0.7940576",
"0.78895533",
"0.78278863",
"0.7822731",
"0.78170556",
"0.7810941",
"0.78027624",
"0.77914375",
"0.7788607",
"0.7782131",
"0.7765793",
"0.77645",
"0.77609223",
"0.7749379",
"0.7739108",
"0.7731853",
"0.77242327",
"0.77121335",
"0.7708826",
"0.7704794... | 0.0 | -1 |
This function creates a dataframe containing the season averaged stats for each player on a Fantasy Team. It then finds the average stats for the entire team and returns a single row dataframe with the Fantasy Team name and its seasoned averaged 9cat stats. | def H2eH(JdyM, bJqe):
cPTy = PJRl(JdyM, bJqe)
jrqr = Qr17(cPTy, JdyM)
return jrqr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OuOL():\n rLdf = ja1s('t_original_regular_season_compact_results')\n tpeq = rLdf[['season', 'w_team_id', 'w_score']]\n tpeq.columns = ['season', 'team_id', 'score']\n m1X1 = rLdf[['season', 'l_team_id', 'l_score']]\n m1X1.columns = ['season', 'team_id', 'score']\n CkfX = tpeq.append(m1X1)\n ... | [
"0.7468275",
"0.7283319",
"0.7265124",
"0.7144817",
"0.7018986",
"0.6709671",
"0.6708836",
"0.65054125",
"0.6495097",
"0.6473197",
"0.6465731",
"0.6459939",
"0.64093244",
"0.6408136",
"0.63946897",
"0.6320032",
"0.63023764",
"0.62704986",
"0.6269675",
"0.6265011",
"0.6210103"... | 0.7062801 | 4 |
Returns a User instance given its id | def TKWP(NCls: Session, uJjO: int):
return NCls.query(FYrf.User).filter(FYrf.User.id == uJjO).first() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bt8D(id: int) -> mv1M:\n return DQE7(mv1M, mv1M.id, id)",
"def ggdo(Emd4, id):\n CBIr = Emd4.get_by_id(id)\n return CBIr",
"def ggdo(Emd4, id):\n CBIr = Emd4.get_by_id(id)\n return CBIr",
"def bt8D(id):\n return mv1M.query.get(id)",
"def TKWP(Emd4, id):\n C3ST = Nc2H.query.filter_b... | [
"0.92885596",
"0.8900623",
"0.8900623",
"0.8822043",
"0.8805816",
"0.8751164",
"0.86080027",
"0.8549926",
"0.85426646",
"0.8452922",
"0.8428257",
"0.8419311",
"0.8388425",
"0.8377985",
"0.8363513",
"0.8312174",
"0.8302362",
"0.8297584",
"0.82945067",
"0.8279889",
"0.8269877",... | 0.775209 | 91 |
Returns a User instance given its email | def CYTf(NCls: Session, D3lj: str):
return NCls.query(FYrf.User).filter(FYrf.User.email == D3lj).first() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CYTf(D3lj: str) -> mv1M:\n return DQE7(mv1M, mv1M.email, D3lj)",
"def CYTf(YKHO, D3lj: str) -> mv1M:\n return mv1M().get_by_email(D3lj)",
"def CYTf(Emd4, D3lj):\n CBIr = mv1M.query.filter(mv1M.email == D3lj).first()\n return CBIr",
"def CYTf(D3lj, QePW=None):\n return lCqJ(email=D3lj, requ... | [
"0.9112977",
"0.8997539",
"0.88707393",
"0.8767358",
"0.8718519",
"0.8701338",
"0.86349636",
"0.86321974",
"0.8598619",
"0.8584087",
"0.857393",
"0.85509104",
"0.8544572",
"0.8541827",
"0.8479882",
"0.8460996",
"0.8460996",
"0.8460996",
"0.8444341",
"0.8434606",
"0.84341425",... | 0.84503835 | 18 |
Total of this test | def wjRY(YKHO):
return STnF.objects.filter(conf=YKHO.conf, finished=True).count() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ne9N(YKHO):\n pass",
"def wjRY(YKHO):\n return 10.0",
"def Opfd(YKHO) -> int:\n Aofo: int = 0\n for QOe9 in YKHO._tests:\n Aofo += QOe9.total_results\n return Aofo",
"def cSu7():\n LLrw(15, VMCk.total(5))\n LLrw(1, VMCk.total(1))\n LLrw(0, VMCk.total(0))\n LLrw(None, VMC... | [
"0.7893563",
"0.77234507",
"0.7682934",
"0.7623363",
"0.7623229",
"0.76002246",
"0.75327396",
"0.7504274",
"0.7482768",
"0.7426054",
"0.74186397",
"0.73948747",
"0.73452145",
"0.73452145",
"0.73452145",
"0.7316465",
"0.7293353",
"0.726634",
"0.719963",
"0.7196364",
"0.7167108... | 0.73476034 | 12 |
Construct string to represent state of a Warehouse object. | def zAg0(YKHO):
return f'{{name: {YKHO.name}, inventory: {YKHO.inventory}}}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return 'State{\\n %s \\n}' % '\\n'.join(['\\t{}: {}'.format(G1Hx, str(YRbF)) for G1Hx, YRbF in YKHO.__dict__.items() if not G1Hx.startswith('_')])",
"def wHJl(YKHO):\n Y0Fj = f'{YKHO.generic_data.model_description} ({YKHO.generic_data.alm_sn})' if YKHO.generic_data else f'Indego mower'\n ... | [
"0.7256653",
"0.6913048",
"0.69105923",
"0.68842596",
"0.68682677",
"0.6852593",
"0.6821993",
"0.6781534",
"0.66950804",
"0.66728586",
"0.6663915",
"0.66540194",
"0.6608323",
"0.65971166",
"0.6587656",
"0.65714157",
"0.6554984",
"0.6554984",
"0.6551969",
"0.6525995",
"0.65154... | 0.0 | -1 |