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 |
|---|---|---|---|---|---|---|
Generate the clipped relative positions matrix for a given length and maximum relative positions | def Tzh5(u54L: int, yK0R: int, wyyA: bool=False, begE: Optional[torch.device]=None) -> llWB:
if wyyA:
xWo_ = ht2j.arange(-u54L + 1, 1, 1, device=begE).unsqueeze(0)
else:
tcE9 = ht2j.arange(u54L, device=begE)
ZI0r = tcE9.unsqueeze(-1).expand(-1, u54L).transpose(0, 1)
xWo_ = ZI0r -... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XF4G(u54L, yK0R, wyyA=False):\n if wyyA:\n xWo_ = ht2j.arange(-u54L + 1, 1, 1).unsqueeze(0)\n else:\n tcE9 = ht2j.arange(u54L)\n ZI0r = tcE9.unsqueeze(-1).expand(-1, u54L).transpose(0, 1)\n xWo_ = ZI0r - ZI0r.transpose(0, 1)\n tb2p = ht2j.clamp(xWo_, min=-yK0R, max=yK0R)\n ... | [
"0.76314527",
"0.55741626",
"0.5568317",
"0.5564923",
"0.5545642",
"0.5539884",
"0.55133224",
"0.5510596",
"0.5501375",
"0.54774404",
"0.54484147",
"0.54449713",
"0.5437104",
"0.5433832",
"0.541201",
"0.5384247",
"0.53725517",
"0.5358818",
"0.5326837",
"0.5323931",
"0.53123",... | 0.75248903 | 1 |
Compute the context vector and the attention vectors. | def KVH6(YKHO, H5ew: Tensor, BWXx: Tensor, xDcj: Tensor, ZHfW: Optional[Tensor]=None, YPaw: Optional[int]=0, Y6fI: Optional[bool]=False) -> AzJI[llWB, llWB]:
if YKHO.layer_cache[0]:
if YKHO.attn_type == 'self':
xDcj, H5ew, BWXx = (YKHO.linear_query(xDcj), YKHO.linear_keys(xDcj), YKHO.linear_valu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P2nJ(YKHO, LYEB, g4y1, vY7c=None, ZHfW=None):\n vY7c = vY7c if vY7c else YKHO.precompute(g4y1)\n uH3w = YKHO.compute_alignments(LYEB, vY7c, ZHfW)\n nzxT = Kt_s.sum(uH3w[:, :, None] * g4y1, axis=1)\n return nzxT",
"def v2uf(vkAz):\n with ZylS.variable_scope('Attention'):\n QHji = Jfky([v... | [
"0.68058276",
"0.6657508",
"0.6422002",
"0.6394755",
"0.6201687",
"0.6129725",
"0.6116117",
"0.60261774",
"0.59977514",
"0.59977514",
"0.59796095",
"0.59328425",
"0.59211797",
"0.59211797",
"0.59116167",
"0.5886728",
"0.5794891",
"0.5741815",
"0.570289",
"0.5700565",
"0.56854... | 0.0 | -1 |
Computes the summed loss of the "Masked Language Model" loss and "Next Sentence Prediction" loss. Both are CrossEntropy Loss. 1. Let model predict on the masked sentence > returns a prediction for all the tokens and a nextsentenceprediction. | def KVH6(YKHO, WKvO, LVAh):
uN02 = YKHO.model(WKvO)
eUmT, psgQ = uN02
Ot75, bhXL = LVAh
xfIO, LHtk = (eUmT.argmax(dim=2), psgQ.argmax(dim=1))
Ep8u, s2mk, jXxl = eUmT.size()
QHjC = eUmT.view(Ep8u * s2mk, jXxl)
MgMN = Ot75.view(Ep8u * s2mk)
yKNC = YKHO.MLM(QHjC, MgMN)
CQBp = YKHO.NSP(p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ieR4(YUWI, aMgO, LVAh):\n \"\"\"shape (batch_size, 1) \"\"\"\n ThDj = LVAh.unsqueeze(-1)\n vT2H = (ThDj != YUWI).float()\n i_gq = ht2j.gather(aMgO, index=ThDj, dim=-1) * vT2H\n N77f = -1 * i_gq.sum()\n return N77f",
"def YbcW(Wc9F, aTLP):\n x6A0 = Wc9F['y']\n Ji9D = Wbxz.unreduced_cro... | [
"0.6900445",
"0.6808392",
"0.6672189",
"0.66144544",
"0.64742523",
"0.6412231",
"0.6403809",
"0.63706094",
"0.6365707",
"0.63394505",
"0.6317613",
"0.6309922",
"0.6307694",
"0.6304427",
"0.6254761",
"0.62449",
"0.6232388",
"0.623191",
"0.62297153",
"0.6218599",
"0.62051624",
... | 0.0 | -1 |
This function computes a bimodal Gaussian distribution on the SPD manifold. Each Gaussian is defined on the tangent space of their mean and projected to the manifold via the exponential map. The value of the function is therefore computed by projecting the point on the manifold to the tangent space of the means, comput... | def ideW(WKvO, umLB):
e_2d = umLB._n
WOf2 = int(e_2d + e_2d * (e_2d - 1) / 2)
e_KN = WKvO.dtype
WKvO = WKvO.detach().numpy()
if oyIN.ndim(WKvO) < 2:
WKvO = WKvO[None]
WKvO = X_Fc(WKvO[0])
ryEI, WNRf, _RNt, UkX0 = BP9i(umLB)
w4qB = oyIN.linalg.inv(_RNt)
pkRX = oyIN.linalg.det(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IAWS(yGTL, WTkW, WKvO):\n return kLQb(-(yGTL - WKvO) ** 2 / WTkW ** 2 / 2.0) / PZyS(2.0 * mM0K * WTkW ** 2)",
"def IAWS(YKHO, yGTL, WTkW, WKvO):\n return epAf.exp(-(yGTL - WKvO) ** 2 / WTkW ** 2 / 2.0) / epAf.sqrt(2.0 * epAf.pi * WTkW ** 2)",
"def IAWS(yGTL, WTkW, WKvO):\n return kLQb(-(yGTL - WKv... | [
"0.73373526",
"0.7331688",
"0.73176485",
"0.71809465",
"0.7097649",
"0.707837",
"0.70582116",
"0.6999079",
"0.6964062",
"0.690098",
"0.68905634",
"0.68876535",
"0.68694466",
"0.6817198",
"0.6804922",
"0.6797871",
"0.67902046",
"0.67888516",
"0.67864627",
"0.6779251",
"0.67750... | 0.78692657 | 0 |
This function computes the Product of sines function on the SPD manifold. The Product of sines function is defined on the tangent space of a base point and projected to the manifold via the exponential map. The value of the function is therefore computed by projecting the point on the manifold to the tangent space of t... | def crGY(WKvO, umLB, zZRI=100.0):
e_2d = umLB._n
WOf2 = int(e_2d + e_2d * (e_2d - 1) / 2)
e_KN = WKvO.dtype
WKvO = WKvO.detach().numpy()
if oyIN.ndim(WKvO) < 2:
WKvO = WKvO[None]
WKvO = X_Fc(WKvO[0])
P8oC = WI9G(umLB)
R3zE = umLB.log(P8oC, WKvO)
QWR1 = l6fz(R3zE)
QWR1[e_2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lYNE(umLB):\n e_2d = umLB._n\n P8oC = WI9G(umLB)\n LKmD = oyIN.pi / 2 * oyIN.ones((e_2d, e_2d))\n LKmD[1, 1] = -oyIN.pi / 2\n wGQG = umLB.exp(P8oC, LKmD)\n fTnH = l6fz(wGQG)[None]\n tI0S = crGY(ht2j.tensor(fTnH), umLB).numpy()\n return (wGQG, tI0S)",
"def ideW(WKvO, umLB):\n e_2d =... | [
"0.61725384",
"0.61556727",
"0.5814998",
"0.581018",
"0.574285",
"0.57019615",
"0.5698702",
"0.56801945",
"0.567934",
"0.5660167",
"0.56328285",
"0.5565572",
"0.5509502",
"0.5499272",
"0.549569",
"0.5479283",
"0.5476125",
"0.54705787",
"0.5466085",
"0.5453236",
"0.54371285",
... | 0.80268085 | 0 |
Get the current gpu usage. Returns | def eo43():
Aofo = Yn3K.check_output(['nvidia-smi', '--query-gpu=memory.used', '--format=csv,nounits,noheader'], encoding='utf-8')
oWy0 = [int(WKvO) for WKvO in Aofo.strip().split('\n')]
AuXl = dict(zip(range(len(oWy0)), oWy0))
return AuXl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ipZl(YKHO):\n Xld1 = '/sys/devices/gpu.0/load'\n with open(Xld1, 'r') as Fd5m:\n Wk_f = Fd5m.read()\n return float(Wk_f) / 10.0",
"def Ubav(YKHO):\n if not YKHO.use_cuda:\n return None\n if YKHO.opt['gpu'] == -1:\n YfpN = range(ht2j.cuda.device_count())\n else:\n ... | [
"0.85794973",
"0.81675965",
"0.81636375",
"0.7942676",
"0.7725623",
"0.7519141",
"0.7409594",
"0.7409594",
"0.73302823",
"0.7318786",
"0.73096955",
"0.73096955",
"0.73096955",
"0.7274472",
"0.72497904",
"0.72024095",
"0.7190574",
"0.7185943",
"0.71730983",
"0.71563566",
"0.71... | 0.0 | -1 |
Helper function to reconfigure logging using the internal _config method. Simply provides the configuration method via the `Log` namespace. | def Amv1(xzSM: str=s7_R, wJ2a: str=vwDG):
pQ1M(xzSM, wJ2a) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EsWC(YKHO):\n from olympia.lib.log_settings_base import log_configure\n log_configure()",
"def EsWC(GPtr=None):\n GPtr = xO8o if GPtr is None else GPtr\n G9jH.config.dictConfig(GPtr)",
"def XOl_(YKHO, GPtr):\n YKHO.config = GPtr\n YKHO.configure_logging(__name__, 'config_logging_level_s',... | [
"0.7361442",
"0.7345084",
"0.7209106",
"0.7139297",
"0.711112",
"0.7033357",
"0.7010828",
"0.69862133",
"0.69794774",
"0.696385",
"0.6943194",
"0.69383705",
"0.69363856",
"0.6885231",
"0.684958",
"0.6842842",
"0.682343",
"0.68226266",
"0.68077695",
"0.6788751",
"0.67870045",
... | 0.67883325 | 20 |
Throw an error if a user tries to update a report. | def QdZT(YKHO, KAOR, vGfb):
raise dZis(KAOR, vGfb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P2bx(YKHO):\n YKHO.admin_resolve = {'resolve': {'adminNote': 'Ban User'}}\n '\\n Attempt to update a report using a false report id\\n '\n geh0 = YKHO.client_1.put(gxEw('report:report-create', args=[29]), YKHO.admin_resolve, format='json')\n hlel = qQXR.loads(geh0.content)\n YKHO.a... | [
"0.68106246",
"0.64416057",
"0.64416057",
"0.63453066",
"0.63453066",
"0.63453066",
"0.6335993",
"0.6335993",
"0.63118756",
"0.6261162",
"0.62233275",
"0.6202421",
"0.6181736",
"0.6181736",
"0.6181736",
"0.6181736",
"0.6181736",
"0.61709625",
"0.61248535",
"0.61248535",
"0.61... | 0.0 | -1 |
Computes Residual Sum of Squares Formula RSS = Sum(y_i y_hat_i)2 y_i denotes the true/observed value of y for individual i y_hat_i denotes the predicted value of y for individual i | def MoUh(YKHO):
return (YKHO.get_error() ** 2).sum() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ed_d(YKHO, EcVT, fuBA):\n qYGl = YKHO(EcVT)\n JFk_ = oyIN.sum((qYGl - fuBA) ** 2, axis=1)\n return JFk_",
"def q1oq(LVAh, MKlR):\n uuHL = LVAh - MKlR\n lGZJ = oyIN.dot(uuHL, uuHL)\n return lGZJ",
"def whQk(XSm6, B3MX):\n LVAh, r8hN, WKvO, Z9rn = RSWl(XSm6, B3MX)\n h_rC = [(YRbF - LV... | [
"0.73461354",
"0.71938384",
"0.69129795",
"0.68614364",
"0.68257153",
"0.67515886",
"0.6650233",
"0.6647938",
"0.6636628",
"0.66104007",
"0.6603941",
"0.658719",
"0.6478675",
"0.6422022",
"0.63765466",
"0.63250226",
"0.6318702",
"0.6309158",
"0.6303711",
"0.6303711",
"0.62616... | 0.0 | -1 |
Computes the standard R2 Formula R2 = 1 RSS / TSS | def whQk(YKHO):
return 1 - YKHO.rss() / YKHO.tss() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yjZz(YKHO):\n TD4U = YKHO.sum_of_squares_of_residuals()\n u1LA = YKHO.total_sum_of_squares()\n return 1 - TD4U / u1LA",
"def lHKk(YKHO, gj73, UrZQ):\n return 1 - YKHO.RSS(gj73, UrZQ) / YKHO.TSS(gj73)",
"def lHKk(EcVT, fuBA):\n return XbSG(EcVT, fuBA) / Pb48(fuBA)",
"def rPaf(CYjz, exwG):\n... | [
"0.7434908",
"0.73286635",
"0.7034507",
"0.684262",
"0.68120015",
"0.6797413",
"0.67892605",
"0.6775033",
"0.6774009",
"0.65673894",
"0.6541188",
"0.6539285",
"0.6539081",
"0.65175015",
"0.6491833",
"0.6467854",
"0.64284223",
"0.6427511",
"0.63902295",
"0.6365862",
"0.6358667... | 0.6671644 | 9 |
Computes Adjusted R2. Formula Adjusted R2 = 1 (1 R2) (n 1) / (n p 1) p denotes the number of estimates (i.e. explanatory variables) n denotes the sample size Reference Theil, Henri (1961). Economic Forecasts and Policy | def BwNO(YKHO):
sljh = 1 - (1 - YKHO.r_squared()) * (YKHO.n - 1) / (YKHO.n - YKHO.p - 1)
return sljh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NEid(eO5L, amiz, exwG=None, XP5J=None):\n xXKZ = oyIN.nansum((eO5L - oyIN.nanmean(eO5L)) ** 2.0)\n C6oS = oyIN.nansum((amiz - oyIN.nanmean(eO5L)) ** 2.0)\n lBmP = oyIN.nansum((eO5L - amiz) ** 2.0)\n CYjz = 1.0 - lBmP / xXKZ\n if exwG is not None and XP5J is not None:\n IpEQ = CYjz - (1 - ... | [
"0.7329769",
"0.71561986",
"0.67909247",
"0.6784882",
"0.67013174",
"0.66963917",
"0.6671716",
"0.6639319",
"0.6623225",
"0.6622056",
"0.6618566",
"0.66004074",
"0.65750015",
"0.6573028",
"0.65683174",
"0.65479285",
"0.6532875",
"0.6461248",
"0.6453167",
"0.64151007",
"0.6408... | 0.65224344 | 17 |
Identify if the username provided exists. | def hB7K(QePW):
if mv1M.objects.filter(username=QePW.user.username).exists():
return True
yEHD.error(QePW, 'Sorry, there is a problem with your account. Please contact the website administrator.')
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V7zm(YKHO, NtEF: str) -> bool:\n return NtEF in YKHO.__data",
"def V7zm(NtEF):\n with gCuF(warn_only=True):\n return 'o such user' not in iXC1('id %s' % NtEF)",
"def QbMN(YKHO, NtEF: str) -> bool:\n if YKHO.select_user_by_username(NtEF) is None:\n return False\n return True",
"d... | [
"0.82867426",
"0.82359546",
"0.8052597",
"0.8006562",
"0.7992413",
"0.796227",
"0.79466456",
"0.78864944",
"0.78717524",
"0.78475106",
"0.78437805",
"0.78289235",
"0.7811814",
"0.7780482",
"0.77080476",
"0.77070165",
"0.77024806",
"0.76899016",
"0.76749027",
"0.7673541",
"0.7... | 0.7718283 | 14 |
Constructor for a CartesianVector instance. | def FIMM(YKHO, F7BS):
YKHO.array = oyIN.array(F7BS)
YKHO.comps = BJsk.cartesian_vec_coords()
for YRbF, yCnv in enumerate(YKHO.comps):
setattr(YKHO, yCnv, YKHO.array[:, YRbF])
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc):\n leuP.Geom_CartesianPoint_swiginit(YKHO, leuP.new_Geom_CartesianPoint(*qIxc))",
"def FIMM(YKHO):\n Is4a.CartesianPosition_swiginit(YKHO, Is4a.new_CartesianPosition())",
"def FIMM(YKHO, iArr=(0, 0)):\n YKHO._x = iArr[0]\n YKHO._y = iArr[1]",
"def q0Bk(YKHO):\n WKvO, LVAh... | [
"0.68514067",
"0.6827336",
"0.67713785",
"0.65327454",
"0.65327454",
"0.6391952",
"0.6363986",
"0.6305189",
"0.6237658",
"0.6212606",
"0.6171556",
"0.6150221",
"0.6129167",
"0.60759944",
"0.60562885",
"0.6052661",
"0.6024866",
"0.5985596",
"0.5979034",
"0.597198",
"0.59710073... | 0.65955746 | 3 |
Constructor for a CylindricalVector instance. | def FIMM(YKHO, F7BS):
YKHO.array = oyIN.array(F7BS)
YKHO.comps = BJsk.cylindrical_vec_coords()
for YRbF, yCnv in enumerate(YKHO.comps):
setattr(YKHO, yCnv, YKHO.array[:, YRbF])
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, iArr=(0, 0)):\n YKHO._x = iArr[0]\n YKHO._y = iArr[1]",
"def FIMM(YKHO, WKvO, LVAh, UuGP, J8Nq, mghH):\n YKHO.__x = WKvO\n YKHO.__y = LVAh\n YKHO.__v_x = UuGP\n YKHO.__v_y = J8Nq\n YKHO.__deg = mghH\n YKHO.__radius = YKHO.TOR_RADIUS",
"def FIMM(YKHO, uara):\n YKHO.unit... | [
"0.6636899",
"0.6231787",
"0.61954296",
"0.61403084",
"0.6134193",
"0.6123031",
"0.6062807",
"0.60442543",
"0.59669393",
"0.596525",
"0.59530294",
"0.5926296",
"0.5921728",
"0.58916944",
"0.58695763",
"0.5862754",
"0.5852322",
"0.5843094",
"0.58300036",
"0.58226496",
"0.58220... | 0.63489723 | 1 |
Sessionwide test Flask app | def P4t4(QePW):
wMcu.config['TESTING'] = True
wMcu.config['SQLALCHEMY_DATABASE_URI'] = CXKB
OaeV = wMcu.app_context()
OaeV.push()
def mTtn():
OaeV.pop()
if Hy7s.path.exists(c_Am):
Hy7s.remove(c_Am)
QePW.addfinalizer(mTtn)
return wMcu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fOxr(YKHO):\n with P4t4.test_client() as udfG:\n t7ng = udfG.get('/')\n YKHO.assertTrue('count' in WsL5.session)\n YKHO.assertTrue('time_now' in WsL5.session)",
"def P4t4():\n Hy7s.environ['FLASK_ENV'] = 'testing'\n wMcu = LUif(LV7V)\n OaeV = wMcu.test_request_context()\n ... | [
"0.7394692",
"0.7363074",
"0.7130685",
"0.7098818",
"0.7055951",
"0.70475525",
"0.69791764",
"0.6974124",
"0.6946652",
"0.69314796",
"0.6914678",
"0.6912024",
"0.68922967",
"0.6885562",
"0.6868616",
"0.6817272",
"0.6816759",
"0.67444134",
"0.6741981",
"0.6718568",
"0.67020756... | 0.6499713 | 64 |
Returns True if the reported_species differs from the actual species (and both fields are filled out) | def Q3e0(YKHO):
return bool(YKHO.reported_species and YKHO.actual_species and (YKHO.reported_species != YKHO.actual_species)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s0fO(K_jW: SimInfo, OkJq: SimInfo) -> bool:\n return mFMt.are_same_age(K_jW, OkJq) and IbS2.are_same_species(K_jW, OkJq)",
"def oMqC(YKHO):\n return YKHO.actual_species or YKHO.reported_species",
"def gRUZ(YKHO):\n _id5 = [['ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEF', 'ZYXWVFGHIJWUTSOPQRSTFEDCBAZYXWVF']]\n... | [
"0.6384283",
"0.61622226",
"0.6021214",
"0.5934399",
"0.5770647",
"0.5688601",
"0.56884396",
"0.56390566",
"0.55857587",
"0.55444384",
"0.5514881",
"0.5513831",
"0.55028486",
"0.5493684",
"0.54659325",
"0.5462726",
"0.5453528",
"0.543453",
"0.5428332",
"0.540609",
"0.5392652"... | 0.7281233 | 0 |
Instantiates a new SessionOracle and gets the list of all encrypted CTs. | def hXK1():
N0eD = sm4B()
NQLJ = N0eD.get_encrypted_strings()
KLk8 = max(map(len, NQLJ))
e0S0 = [KCHu for KCHu in NQLJ if len(KCHu) == KLk8][0]
unrr = ''
for jfrd in range(KLk8):
xxsk = []
for Z9rn in map(chr, range(256)):
MSBI = sum([nh4e(PsKo(lY0q[jfrd], Z9rn)) for ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qoji(YKHO):\n return YKHO._iscsi_session_connection_list_entries",
"def ed7x(YKHO):\n YKHO.commit()\n YKHO.cursor.execute('SELECT * FROM session')\n Aofo = []\n YKHO.commit()\n for rdlD in YKHO.cursor.fetchall():\n try:\n Aofo.append(YKHO.row_to_model(rdlD))\n excep... | [
"0.5758586",
"0.5741607",
"0.5650066",
"0.5387021",
"0.53417146",
"0.53116095",
"0.5297458",
"0.5224249",
"0.51931375",
"0.51658547",
"0.5156049",
"0.51299196",
"0.5118465",
"0.5112186",
"0.5090808",
"0.5084659",
"0.5069042",
"0.5057265",
"0.5006598",
"0.49954098",
"0.4984692... | 0.55779165 | 3 |
Delete Head and assign Head.next as Head. Time complexity O(1). | def wLf7(YKHO):
if YKHO.__size == 0:
return 'List is empty'
else:
PrrJ = YKHO.__head
neO4 = PrrJ.get_next_node()
YKHO.__head = neO4
YKHO.__size -= 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wLf7(YKHO):\n YKHO.head = YKHO.head.next_ptr\n YKHO.length -= 1",
"def mzRW(YKHO):\n jvSB = YKHO.head_node\n if jvSB != None:\n ac0X = jvSB.next_element\n YKHO.head_node = ac0X\n del jvSB\n return",
"def vmd7(YKHO):\n if YKHO._is_empty():\n raise Exception('ERR... | [
"0.82151604",
"0.78625405",
"0.7841336",
"0.7788078",
"0.7787097",
"0.77187973",
"0.759154",
"0.7443026",
"0.73952",
"0.73179454",
"0.72734296",
"0.72712696",
"0.7219975",
"0.7186636",
"0.7168918",
"0.7149232",
"0.7108362",
"0.7102714",
"0.70956576",
"0.7094586",
"0.7094462",... | 0.7627358 | 6 |
Add Node to the end of the list. Time complexity O(1). | def _Elu(YKHO, BWXx=None):
if isinstance(BWXx, o7DN):
Esd_ = BWXx
else:
Esd_ = o7DN(BWXx)
if YKHO.__size == 0:
YKHO.__head = Esd_
else:
YKHO.__tail.set_next_node(Esd_)
YKHO.__tail = Esd_
YKHO.__size += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SStx(YKHO, ZfUD):\n \"\"\" Insert item at end of list as new node. \"\"\"\n 'Create a new node item'\n gPx9 = nAWG(ZfUD)\n \" \\n if there isn't a head make it the head otherwise\\n append to the end of the list\\n \"\n if YKHO._head is None or YKHO._size == 0:\n YKHO... | [
"0.801504",
"0.79818815",
"0.78228015",
"0.772374",
"0.77210504",
"0.7664489",
"0.7660738",
"0.76272666",
"0.7607989",
"0.759403",
"0.75933117",
"0.7541948",
"0.75158286",
"0.7503553",
"0.7489021",
"0.7477737",
"0.74733657",
"0.74581575",
"0.7456352",
"0.7445143",
"0.7445143"... | 0.7330315 | 41 |
Add Node at the front of the list. Time complexity O(1). | def ryRH(YKHO, BWXx=None):
if YKHO.__size == 0:
YKHO.append_node(BWXx)
else:
WUvJ = YKHO.__head
if isinstance(BWXx, o7DN):
ac0X = BWXx
else:
ac0X = o7DN(BWXx)
ac0X.set_next_node(WUvJ)
YKHO.__head = ac0X
YKHO.__size += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dZVG(YKHO, ZfUD):\n YKHO.single_linked_list.append(ZfUD)\n if YKHO.size() > 1:\n YKHO.last_node.next = YKHO.single_linked_list[-1]\n else:\n YKHO.first_node = YKHO.single_linked_list[0]\n YKHO.last_node = YKHO.single_linked_list[-1]",
"def PgMl(YKHO, wEf2):\n Q6kx = o7DN(wEf2, No... | [
"0.7881867",
"0.78273827",
"0.7746672",
"0.7677864",
"0.76502746",
"0.7448595",
"0.74411637",
"0.7433885",
"0.74137044",
"0.74137044",
"0.74063224",
"0.7402019",
"0.739645",
"0.7379548",
"0.7372625",
"0.73552805",
"0.735214",
"0.7346614",
"0.73260415",
"0.7315478",
"0.7315233... | 0.7293705 | 21 |
Returns the limit in the given direction, where direction can be either 1 or 1. | def XSoh(YKHO, XSoh):
return YKHO.upper if XSoh > 0 else YKHO.lower | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHeX(YKHO, XSoh=None):\n if XSoh is None:\n YKHO.send('MT', '?')\n Pt1K = YKHO.controller.read()\n else:\n YKHO.send('MT', XSoh)\n return int(Pt1K)",
"def K3hO():\n return u406[0]",
"def qoqK(YKHO):\n MwlG = YKHO.request.args.get('limit', None)\n if WSkS(MwlG):\n ... | [
"0.72984034",
"0.66013795",
"0.6089952",
"0.60836715",
"0.60713094",
"0.6065258",
"0.6056397",
"0.6005551",
"0.6005551",
"0.6005551",
"0.5996018",
"0.5982712",
"0.59806615",
"0.59806615",
"0.59806615",
"0.5938017",
"0.5938017",
"0.5938017",
"0.5938017",
"0.5938017",
"0.593801... | 0.58184683 | 25 |
Sets the stage encoder resolution. If no resolution is given, function returns the current resolution. | def f_ao(YKHO, B1Wx=None):
if B1Wx is None:
YKHO.send('SU', '?')
B1Wx = float(YKHO.controller.read())
else:
YKHO.send('SU', B1Wx)
return B1Wx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yz5O(YKHO, B1Wx) -> None:\n YKHO.set_resolution(B1Wx)",
"def az9H(YKHO, Ylbp=(1024, 768), TVTK=1024, H2v2=768):\n YKHO.camera.resolution = Ylbp",
"def QiNM(YKHO, B1Wx):\n YKHO.options['resolution'] = B1Wx\n return YKHO",
"def Emq3(YKHO):\n return YKHO.resolution",
"def B1Wx(YKHO) -> h8nf... | [
"0.6344202",
"0.63148046",
"0.6199147",
"0.61396295",
"0.60939074",
"0.60183746",
"0.6016473",
"0.5998327",
"0.59713405",
"0.59713405",
"0.59713405",
"0.5955918",
"0.5926806",
"0.5919778",
"0.5907283",
"0.59015924",
"0.5891032",
"0.58622795",
"0.5824698",
"0.5821142",
"0.5792... | 0.739928 | 0 |
Stops motion on this axis with predefined acceleration. | def JCyR(YKHO, sJDd=False):
YKHO.send('ST')
if sJDd:
YKHO.pause_for_stage() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JCyR(YKHO):\n YKHO.__speed *= 0",
"def JCyR(YKHO):\n YKHO.vel_x = 0",
"def JCyR(YKHO):\n YKHO.__reset()\n YKHO.__publish(YKHO.__vel)",
"def JCyR(YKHO, PETh):\n oUZx._dc(YKHO.connector.id, PETh)",
"def JCyR(YKHO):\n YKHO.__cmdvel_client.setVX(0)\n YKHO.__cmdvel_client.setVY(0)\n ... | [
"0.7033358",
"0.6921917",
"0.66974676",
"0.66766465",
"0.6572452",
"0.65026367",
"0.64923686",
"0.6491341",
"0.6489085",
"0.645732",
"0.64115685",
"0.6399715",
"0.6362955",
"0.6362796",
"0.6354017",
"0.63483894",
"0.6341729",
"0.63194644",
"0.63052005",
"0.6274615",
"0.6268",... | 0.0 | -1 |
Register a new plugin | def O3MO(t0qN):
LYOs = t0qN.cpt_plugin_name
if LYOs in lsPf:
G9jH.error('plugin [%s] has already been registered', LYOs)
HwRy.exit(1)
if t0qN.cpt_is_devel:
Q5D5[LYOs] = t0qN
else:
wwfe[LYOs] = t0qN
lsPf[LYOs] = t0qN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gr_i(t0qN):\n SnBA.append(t0qN)",
"def ozna(YKHO, t0qN):\n YKHO.plugins[t0qN.get_id()] = t0qN",
"def gr_i(t0qN, mWFP=None):\n if mWFP is None:\n mWFP = t0qN.__name__\n LMGC._plugins[ovg3(mWFP)] = t0qN",
"def gr_i(YKHO, t0qN, TSMu=True):\n ozna(t0qN)\n if TSMu:\n YKHO.enabl... | [
"0.84173244",
"0.8199182",
"0.7676557",
"0.75812644",
"0.7284614",
"0.72543645",
"0.7218577",
"0.72092724",
"0.71772665",
"0.7148733",
"0.7099523",
"0.70918626",
"0.7089814",
"0.7032351",
"0.7029837",
"0.70234126",
"0.69846034",
"0.6959759",
"0.6938414",
"0.69362694",
"0.6931... | 0.72538435 | 6 |
Check the file extension against valid file extensions. The list of valid file extensions come from self.extensions. This also checks whether the file is an image. | def SGVO(YKHO):
JZXy = YKHO.source
if H2Co.what(JZXy) is None:
return False
return Hy7s.path.splitext(JZXy)[1][1:].lower() in YKHO.extensions | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EAEZ(YKHO, nUeQ, CBZq):\n if CBZq is None:\n return True\n if type(CBZq) is list and len(CBZq) == 0:\n return True\n if type(CBZq) is not list:\n CBZq = [str(CBZq)]\n tTpl = Hy7s.path.splitext(nUeQ)[1][1:]\n for YBcr in CBZq:\n if tTpl == YBcr:\n return Tru... | [
"0.79885805",
"0.79791665",
"0.7975521",
"0.78713924",
"0.7786274",
"0.74781245",
"0.747211",
"0.7450571",
"0.736871",
"0.73559844",
"0.73455113",
"0.7337416",
"0.7322353",
"0.73029643",
"0.73029643",
"0.73029643",
"0.73029643",
"0.73029643",
"0.7291543",
"0.7275591",
"0.7207... | 0.75509053 | 5 |
Set the date/time a photo was taken. | def GDrY(YKHO, ITS7):
if ITS7 is None:
return False
JZXy = YKHO.source
ONXN = bpsU.ImageMetadata(JZXy)
ONXN.read()
for H5ew in YKHO.exif_map['date_taken']:
if H5ew in ONXN:
ONXN[H5ew].value = ITS7
else:
ONXN[H5ew] = bpsU.ExifTag(H5ew, ITS7)
ONXN.wr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UJXY(YKHO, j8eK):\n dJ1p = ['MWG:DateTimeOriginal']\n H5ew = 'date'\n YKHO.set_meta_prop(dJ1p, j8eK, H5ew)",
"def kxaT(YKHO, lmn8):\n YKHO._exif_datetime = lmn8",
"def GDrY(YKHO, Peyk):\n if ITS7 is None:\n return False\n JZXy = YKHO.source\n Aofo = YKHO.__update_using_plist(tim... | [
"0.68762684",
"0.6659446",
"0.657582",
"0.6416926",
"0.6378213",
"0.63709474",
"0.63043624",
"0.63043624",
"0.63043624",
"0.63043624",
"0.63043624",
"0.63043624",
"0.63043624",
"0.62761635",
"0.62761635",
"0.62761635",
"0.6212831",
"0.61987644",
"0.6175395",
"0.6175395",
"0.6... | 0.74328434 | 0 |
Trim a string to a certain number of words. | def s6_D(NPoT: str, t7hl: int=cSG5, VWe_: str=' ') -> str:
opqI = NPoT.replace('\\n', VWe_)
V22M = opqI.split(VWe_)[:t7hl]
UkTx = ' '.join(V22M)
return UkTx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ebui(exwG: int, KCHu: str) -> str:\n return ' '.join(KCHu.split(' ')[exwG:])",
"def s6_D(NPoT: str, t7hl: int=cSG5, VWe_: str=' ') -> str:\n opqI = NPoT.replace('\\\\n', VWe_)\n V22M = opqI.split(VWe_)[:t7hl]\n UkTx = ' '.join(V22M)\n return UkTx",
"def XzGM(YKHO, str, u54L=3):\n return '... | [
"0.7581013",
"0.7448686",
"0.69607025",
"0.68392086",
"0.68173283",
"0.6775069",
"0.6749456",
"0.6715709",
"0.6684947",
"0.6673094",
"0.6673094",
"0.6673094",
"0.6651867",
"0.6651052",
"0.66314477",
"0.6616117",
"0.6607766",
"0.6607766",
"0.65730774",
"0.6541806",
"0.6541806"... | 0.7535788 | 1 |
test new individual emails | def FhHF():
qaEx = Hy7s.path.join(PRpF, b2ce)
oPio = rLdf.read_csv(qaEx)
nyyK, P1dF, kd_k, MFLc, ikSo, jBZu = xQOK(EmnT, oPio)
assert nyyK, P1dF
assert len(ikSo) == 2
assert len(jBZu) == 0
nyyK, P1dF, uXvl = wZiC(kd_k, MFLc, ikSo[0])
assert nyyK, P1dF
assert len(uXvl) == 3812
nyy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p26H(YKHO):\n YKHO.ps.test_updates['name'] = 't1.34.012' + tq_1.currentframe().f_code.co_name[4:]\n YKHO.ps.test_updates['tags'] = ['t1', 't1.34', 't1.34.012', '8218']\n YKHO.ps.test_updates['passed'] = False\n YKHO.student.login(url='http://accounts-qa.openstax.org')\n YKHO.student.wait.until(Z... | [
"0.7425215",
"0.7393208",
"0.73692524",
"0.73520195",
"0.73414564",
"0.7265836",
"0.7232325",
"0.72308326",
"0.7185576",
"0.71783334",
"0.7175944",
"0.71710205",
"0.7129027",
"0.71126294",
"0.71027684",
"0.7079832",
"0.70587164",
"0.70547736",
"0.7050174",
"0.7006698",
"0.700... | 0.0 | -1 |
test update individual emails | def spTM():
qaEx = Hy7s.path.join(PRpF, Jjyz)
oPio = rLdf.read_csv(qaEx)
nyyK, P1dF, kd_k, MFLc, ikSo, jBZu = xQOK(EmnT, oPio)
assert nyyK, P1dF
assert len(ikSo) == 0
assert len(jBZu) == 2
nyyK, P1dF, uXvl = figO(kd_k, MFLc, jBZu[0])
assert nyyK, P1dF
assert len(uXvl) == 3864
nyy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vx0g(YKHO):\n eOtH = YKHO.get_user_token()\n with YKHO.client:\n geh0 = YKHO.client.put('/user/update', content_type='application/json', json={'email': 'new_email@gmail.com'}, headers={'x-access-token': eOtH})\n nPrm = qQXR.loads(geh0.data.decode())\n YKHO.assertTrue(nPrm['error'] is... | [
"0.7963731",
"0.77387035",
"0.7732777",
"0.76594394",
"0.7610488",
"0.74278533",
"0.74249935",
"0.7389001",
"0.73642045",
"0.73503727",
"0.7327616",
"0.7306294",
"0.72927415",
"0.7257239",
"0.7219603",
"0.7169371",
"0.7080413",
"0.70383775",
"0.70262045",
"0.6985125",
"0.6977... | 0.70964754 | 16 |
Generate a square mask for the sequence. Returns a byte tensor (rather than a float tensor) to mask the indexes (per the PyTorch source code, this is allowed) to avoid the issue with softmax and float('inf'). | def FOIM(uAYq: int):
ZHfW = ht2j.triu(ht2j.ones(uAYq, uAYq), diagonal=1).byte()
return ZHfW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BpfQ(Rv0k):\n ZHfW = (ht2j.triu(ht2j.ones(Rv0k, Rv0k)) == 1).transpose(0, 1)\n ZHfW = ZHfW.float().masked_fill(ZHfW == 0, float('-inf')).masked_fill(ZHfW == 1, float(0.0))\n return ZHfW",
"def FOIM(Rv0k):\n ZHfW = (ht2j.triu(ht2j.ones(Rv0k, Rv0k)) == 1).transpose(0, 1)\n ZHfW = ZHfW.float().ma... | [
"0.77808934",
"0.73217565",
"0.72310746",
"0.72310746",
"0.72310746",
"0.7212205",
"0.7148702",
"0.705611",
"0.7041047",
"0.6996992",
"0.6872794",
"0.6849304",
"0.6713387",
"0.65734106",
"0.6544208",
"0.6501732",
"0.6469811",
"0.6457346",
"0.64023316",
"0.6369585",
"0.6369585... | 0.7662549 | 2 |
Generate a square mask for the sequence. Returns a byte tensor (rather than a float tensor) to mask the indexes (per the PyTorch source code, this is allowed) to avoid the issue with softmax and float('inf'). | def FOIM(uAYq: int):
ZHfW = ht2j.triu(ht2j.ones(uAYq, uAYq), diagonal=1).byte()
return ZHfW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BpfQ(Rv0k):\n ZHfW = (ht2j.triu(ht2j.ones(Rv0k, Rv0k)) == 1).transpose(0, 1)\n ZHfW = ZHfW.float().masked_fill(ZHfW == 0, float('-inf')).masked_fill(ZHfW == 1, float(0.0))\n return ZHfW",
"def FOIM(Rv0k):\n ZHfW = (ht2j.triu(ht2j.ones(Rv0k, Rv0k)) == 1).transpose(0, 1)\n ZHfW = ZHfW.float().ma... | [
"0.7781993",
"0.73227787",
"0.72316897",
"0.72316897",
"0.72316897",
"0.721331",
"0.7150302",
"0.7056544",
"0.7042016",
"0.6997822",
"0.687349",
"0.68509376",
"0.67137",
"0.6573313",
"0.65459484",
"0.6500111",
"0.64705074",
"0.6458254",
"0.64033324",
"0.6370275",
"0.6370275",... | 0.76634276 | 1 |
Return a name of the HID device class type for intf. | def k2OV(M181):
if not isinstance(M181, FUTq.core.Interface):
return None
if M181.bInterfaceClass != AVG_:
return None
if M181.bInterfaceSubClass == d3fN and M181.bInterfaceProtocol == mCT4:
return 'boot_keyboard'
if M181.bInterfaceSubClass == d3fN and M181.bInterfaceProtocol == ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UKpZ(YKHO) -> str:\n assert YKHO.interface is not None\n return ''.join((WKvO.capitalize() for WKvO in YKHO.interface.split('_')))",
"def rM2U(YKHO) -> str:\n return YKHO._device_class_from_type",
"def rM2U(YKHO) -> str:\n return YKHO._dev_cls",
"def rM2U(YKHO) -> str:\n return YKHO._devic... | [
"0.7318999",
"0.73108995",
"0.7110541",
"0.7024102",
"0.7024102",
"0.7024102",
"0.69648075",
"0.69439375",
"0.6942423",
"0.69308114",
"0.68578243",
"0.6857397",
"0.6816868",
"0.6740352",
"0.6706539",
"0.6674756",
"0.66533387",
"0.6642535",
"0.6571682",
"0.6521573",
"0.6496498... | 0.75140953 | 0 |
Return the value of this DataManager's data. | def yLtf(YKHO, XLMv=None):
if not XLMv:
nPrm = jth9.copy(YKHO.data)
else:
try:
nPrm = jth9.copy(YKHO.data[XLMv])
except (KeyError, TypeError):
nPrm = dict()
if isinstance(nPrm, dict):
return nPrm
return dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nPrm(YKHO):\n return YKHO._value",
"def nPrm(YKHO):\n return YKHO._value",
"def yLtf(YKHO):\n return YKHO.__data",
"def yLtf(YKHO):\n return YKHO._data",
"def yLtf(YKHO):\n return YKHO.data",
"def yLtf(YKHO):\n return YKHO.data",
"def yLtf(YKHO):\n return YKHO.data",
"def yLt... | [
"0.8254036",
"0.8254036",
"0.8144267",
"0.80864006",
"0.80791175",
"0.80791175",
"0.80791175",
"0.80791175",
"0.80791175",
"0.80791175",
"0.80791175",
"0.80791175",
"0.80791175",
"0.80791175",
"0.8075814",
"0.8074901",
"0.8074901",
"0.8074901",
"0.8074901",
"0.8006497",
"0.80... | 0.0 | -1 |
Setter method for threshold_cpu, mapped from YANG variable /resource_monitor/cpu/threshold_cpu (uint32) | def k02g(YKHO, Ty9i, tyeH=False):
if hasattr(Ty9i, '_utype'):
Ty9i = Ty9i._utype(Ty9i)
try:
a1PO = ltgX(Ty9i, base=ukQ0(base_type=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'70 .. 100']}), is_leaf=True, yang_name='threshold-cpu'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jf4x(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name='min-threshold', rest_name='min-threshold', parent=YKHO, path_help... | [
"0.71893746",
"0.6779755",
"0.67204344",
"0.6587118",
"0.6496636",
"0.6496636",
"0.61163956",
"0.6025385",
"0.59925973",
"0.58847445",
"0.5883092",
"0.5852484",
"0.57607347",
"0.5673796",
"0.5630943",
"0.5630943",
"0.56228644",
"0.5583092",
"0.55472094",
"0.55110776",
"0.5510... | 0.89303446 | 0 |
Setter method for sample_rate_cpu, mapped from YANG variable /resource_monitor/cpu/sample_rate_cpu (uint32) | def RCcg(YKHO, Ty9i, tyeH=False):
if hasattr(Ty9i, '_utype'):
Ty9i = Ty9i._utype(Ty9i)
try:
a1PO = ltgX(Ty9i, base=ukQ0(base_type=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'1 .. 20']}), is_leaf=True, yang_name='sample-rate-cpu'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P9FA(YKHO):\n return YKHO.__sample_rate_cpu",
"def T8n1(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'... | [
"0.68019366",
"0.6602602",
"0.57291377",
"0.5448455",
"0.54252493",
"0.53692424",
"0.5332391",
"0.5286397",
"0.52678424",
"0.52518857",
"0.52459824",
"0.5220505",
"0.51971734",
"0.51971734",
"0.51273614",
"0.51103806",
"0.5107602",
"0.5098733",
"0.5098733",
"0.5092908",
"0.50... | 0.8704806 | 0 |
Setter method for logging_rate_cpu, mapped from YANG variable /resource_monitor/cpu/logging_rate_cpu (uint32) | def T8n1(YKHO, Ty9i, tyeH=False):
if hasattr(Ty9i, '_utype'):
Ty9i = Ty9i._utype(Ty9i)
try:
a1PO = ltgX(Ty9i, base=ukQ0(base_type=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'20 .. 60']}), is_leaf=True, yang_name='logging-rate-cp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RCcg(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'1 .. 20']}), is_leaf=True, yang_name='sample-... | [
"0.7063708",
"0.66223633",
"0.5882636",
"0.54812515",
"0.5435818",
"0.50582474",
"0.5025911",
"0.4979675",
"0.49732405",
"0.4935872",
"0.49057958",
"0.49056163",
"0.49056163",
"0.4885088",
"0.4880022",
"0.4877601",
"0.4877601",
"0.48627424",
"0.48545352",
"0.48005244",
"0.479... | 0.86826724 | 0 |
Setter method for grace_period_cpu, mapped from YANG variable /resource_monitor/cpu/grace_period_cpu (uint32) | def DOeU(YKHO, Ty9i, tyeH=False):
if hasattr(Ty9i, '_utype'):
Ty9i = Ty9i._utype(Ty9i)
try:
a1PO = ltgX(Ty9i, base=ukQ0(base_type=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'1 .. 720']}), is_leaf=True, yang_name='grace-period-cp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DxMa(YKHO):\n return YKHO.__grace_period_cpu",
"def aNd9(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'grace_period')",
"def aNd9(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'grace_period')",
"def k02g(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i... | [
"0.7024857",
"0.5605189",
"0.5605189",
"0.5559888",
"0.54910445",
"0.54910445",
"0.54910445",
"0.5395076",
"0.5395076",
"0.53624696",
"0.5317942",
"0.5311478",
"0.5311478",
"0.5311478",
"0.5204284",
"0.51858497",
"0.5170498",
"0.51628983",
"0.51628983",
"0.51628983",
"0.51628... | 0.88204783 | 0 |
Getter method for offset_cpu, mapped from YANG variable /resource_monitor/cpu/offset_cpu (uint32) | def lcLS(YKHO):
return YKHO.__offset_cpu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cigS(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'0 .. 70']}), is_leaf=True, yang_name='offset-... | [
"0.78479207",
"0.57851744",
"0.5461705",
"0.5385219",
"0.5345812",
"0.53402865",
"0.53402865",
"0.53402865",
"0.53402865",
"0.53402865",
"0.533948",
"0.53318065",
"0.5284743",
"0.52622724",
"0.52615815",
"0.52479756",
"0.52008784",
"0.5188619",
"0.5188619",
"0.51717",
"0.5169... | 0.66545045 | 1 |
Setter method for offset_cpu, mapped from YANG variable /resource_monitor/cpu/offset_cpu (uint32) | def cigS(YKHO, Ty9i, tyeH=False):
if hasattr(Ty9i, '_utype'):
Ty9i = Ty9i._utype(Ty9i)
try:
a1PO = ltgX(Ty9i, base=ukQ0(base_type=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'0 .. 70']}), is_leaf=True, yang_name='offset-cpu', res... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lcLS(YKHO):\n return YKHO.__offset_cpu",
"def VGCm(YKHO, VGCm):\n YKHO._cpu = VGCm",
"def VGCm(YKHO, VGCm):\n YKHO._cpu = VGCm",
"def g7oC(YKHO, g7oC):\n YKHO._source_cpu = g7oC",
"def CN3h(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:... | [
"0.61669683",
"0.55433923",
"0.55433923",
"0.55129266",
"0.5494064",
"0.5494064",
"0.5486014",
"0.5320236",
"0.5317904",
"0.5209964",
"0.5079759",
"0.5065888",
"0.50166434",
"0.50081795",
"0.5007506",
"0.49251348",
"0.49251348",
"0.49251348",
"0.49251348",
"0.49251348",
"0.48... | 0.8327751 | 0 |
Return the starting position of this move. | def _Mdk():
return YKHO[0].start | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kMt1(YKHO):\n if not YKHO.moves:\n if Inmk(YKHO.position):\n return YKHO.position\n else:\n raise ValueError(f'{YKHO.position} is not a valid position')\n else:\n return YKHO.moves[0][0]",
"def kMt1(YKHO):\n return YKHO._starting_position",
"def rhmC(YKHO... | [
"0.87894017",
"0.860365",
"0.8170467",
"0.7989971",
"0.7934519",
"0.7835088",
"0.7835088",
"0.77112085",
"0.757513",
"0.74193525",
"0.7409557",
"0.7409557",
"0.7350103",
"0.73411214",
"0.7321764",
"0.73059285",
"0.72969604",
"0.726483",
"0.7239812",
"0.7219949",
"0.720839",
... | 0.7075315 | 21 |
zero_normalize(df_to_norm) Averages the 0 kGy dose readings for each condition and triplicate for an input data frame (df_to_norm), then normalizes the other dose readings by the zero average. | def fvFu(NZ75):
veca = rLdf.DataFrame()
for or8S, WD8P in NZ75.groupby(level='Condition'):
WD8P = WD8P.apply(lambda WKvO: WKvO / WD8P['0'].mean(axis=1))
veca = veca.append(WD8P)
return veca | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uW8b(jQ3Z):\n Y5YY = txNa().fit(jQ3Z)\n jQ3Z = Y5YY.transform(jQ3Z)\n jQ3Z = rLdf.DataFrame(jQ3Z)\n return (jQ3Z, Y5YY)",
"def Q7gV(jQ3Z):\n return jQ3Z / jQ3Z.ix[0, :]",
"def Q7gV(jQ3Z):\n return jQ3Z / jQ3Z.ix[0, :]",
"def Q7gV(jQ3Z):\n return jQ3Z / jQ3Z.iloc[0, :]",
"def Q7gV(j... | [
"0.69609314",
"0.67812335",
"0.6779814",
"0.6770088",
"0.66939586",
"0.6680947",
"0.6619755",
"0.66190326",
"0.6600462",
"0.6576931",
"0.65317357",
"0.64436567",
"0.6435277",
"0.642819",
"0.6305579",
"0.6302086",
"0.6299315",
"0.62947565",
"0.6287544",
"0.62733585",
"0.624257... | 0.83344007 | 0 |
Sets the code of this Item. | def Wxnj(YKHO, Wxnj):
if Wxnj is None:
raise ValueError('Invalid value for `code`, must not be `None`')
if Wxnj is not None and len(Wxnj) > 30:
raise ValueError('Invalid value for `code`, length must be less than or equal to `30`')
YKHO._code = Wxnj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xGo7(YKHO, Wxnj):\n YKHO.code = Wxnj",
"def xGo7(YKHO, Wxnj):\n YKHO.__code = Wxnj",
"def Wxnj(YKHO, Wxnj):\n YKHO._code = Wxnj",
"def Wxnj(YKHO, Wxnj):\n YKHO._code = Wxnj",
"def Wxnj(YKHO, Wxnj):\n YKHO._code = Wxnj",
"def Wxnj(YKHO, Wxnj):\n YKHO._code = Wxnj",
"def Wxnj(YKHO, ... | [
"0.8169387",
"0.8108188",
"0.80424756",
"0.80424756",
"0.80424756",
"0.80424756",
"0.80424756",
"0.80424756",
"0.80424756",
"0.80424756",
"0.80424756",
"0.80424756",
"0.80424756",
"0.7938218",
"0.7648962",
"0.756802",
"0.74809057",
"0.74055105",
"0.739566",
"0.739566",
"0.739... | 0.65066457 | 47 |
Sets the purchase_description of this Item. | def FcE8(YKHO, FcE8):
if FcE8 is not None and len(FcE8) > 4000:
raise ValueError('Invalid value for `purchase_description`, length must be less than or equal to `4000`')
YKHO._purchase_description = FcE8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FcE8(YKHO, FcE8):\n YKHO._purchase_description = FcE8",
"def AqxA(YKHO, VJoO):\n YKHO.description = VJoO",
"def AqxA(YKHO, VJoO):\n YKHO.description = VJoO",
"def prlj(YKHO, JBZA):\n YKHO._description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO.description = JBZA",
"def AqxA(YKHO, JBZA):\n ... | [
"0.87734306",
"0.77196306",
"0.76847637",
"0.7289344",
"0.7239037",
"0.7239037",
"0.7239037",
"0.7239037",
"0.7122477",
"0.7122477",
"0.7122477",
"0.7122477",
"0.7122477",
"0.7122477",
"0.7122477",
"0.7122477",
"0.7122477",
"0.7122477",
"0.7122477",
"0.7122477",
"0.7122477",
... | 0.76188934 | 3 |
Sets the purchase_details of this Item. | def hPu0(YKHO, hPu0):
YKHO._purchase_details = hPu0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FcE8(YKHO, FcE8):\n YKHO._purchase_description = FcE8",
"def qwhE(YKHO, qwhE):\n YKHO._inventory_details = qwhE",
"def KQx3(YKHO, KQx3):\n YKHO._sales_details = KQx3",
"def j5aK(YKHO, j5aK):\n YKHO._purchase_order_id = j5aK",
"def iQG7(YKHO, iQG7):\n YKHO._details = iQG7",
"def iQG7(YK... | [
"0.70919144",
"0.6798177",
"0.659357",
"0.64254045",
"0.6393942",
"0.6393942",
"0.6393942",
"0.6393942",
"0.6393942",
"0.6393942",
"0.6393942",
"0.6393942",
"0.6261998",
"0.61929387",
"0.61929387",
"0.6152754",
"0.6103965",
"0.6101737",
"0.6065311",
"0.6023105",
"0.6000441",
... | 0.8782558 | 0 |
Sets the total_cost_pool of this Item. | def ENsw(YKHO, ENsw):
YKHO._total_cost_pool = ENsw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ye9d(YKHO, ye9d):\n if ye9d is None:\n raise ValueError('Invalid value for `total_cost`, must not be `None`')\n YKHO._total_cost = ye9d",
"def Do9e(YKHO, BTV3):\n YKHO.item_cost = BTV3",
"def Do9e(YKHO, sSN_):\n YKHO.cost = sSN_",
"def FrDK(YKHO, FrDK):\n YKHO._total_shipping_cost =... | [
"0.6637669",
"0.6573634",
"0.60465467",
"0.5998953",
"0.59399265",
"0.5908446",
"0.587068",
"0.58576447",
"0.58576447",
"0.58576447",
"0.58576447",
"0.58576447",
"0.58024776",
"0.57566696",
"0.5690792",
"0.5690792",
"0.5688462",
"0.5640059",
"0.55842",
"0.55699503",
"0.556378... | 0.85671 | 0 |
Sets the updated_date_utc of this Item. | def Cbz6(YKHO, Cbz6):
YKHO._updated_date_utc = Cbz6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HHc1(YKHO, HHc1):\n YKHO._updated_utc = HHc1",
"def s4tG(YKHO, s4tG):\n YKHO._updated_date = s4tG",
"def s4tG(YKHO, s4tG):\n YKHO._updated_date = s4tG",
"def s4tG(YKHO, s4tG):\n YKHO._updated_date = s4tG",
"def s4tG(YKHO, s4tG):\n YKHO._updated_date = s4tG",
"def s4tG(YKHO, s4tG):\n ... | [
"0.82332516",
"0.72472656",
"0.72472656",
"0.72472656",
"0.72472656",
"0.72472656",
"0.68672556",
"0.68672556",
"0.68672556",
"0.68672556",
"0.6853127",
"0.6845069",
"0.683834",
"0.6785204",
"0.6785204",
"0.6785204",
"0.6785204",
"0.6785204",
"0.6785204",
"0.6785204",
"0.6785... | 0.87491834 | 0 |
load the segmentation of the record `rec` | def qk4A(YKHO, ETu_: Union[str, int], Agtn: str='df', LJdS: bool=True, Vb5F: Optional[int]=None) -> uLKX[rLdf.DataFrame, oyIN.ndarray, dict]:
if isinstance(ETu_, int):
ETu_ = YKHO[ETu_]
Vb5F = Vb5F or YKHO.fs
if Vb5F == -1:
Vb5F = YKHO.get_fs(ETu_)
rmQU = YKHO.get_absolute_path(ETu_, YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AAP2(YKHO, ETu_: str) -> AzJI[oyIN.ndarray, oyIN.ndarray]:\n hkxX = YKHO.reader.load_resampled_data(ETu_, data_format=YKHO.config.data_format, siglen=None)\n for or8S in range(hkxX.shape[0]):\n hkxX[or8S] = bRd2(hkxX[or8S])\n hkxX, bGrB = YKHO.ppm(hkxX, YKHO.config.fs)\n hkxX = cmK3(hkxX, si... | [
"0.6051731",
"0.59469223",
"0.5848386",
"0.576168",
"0.57042164",
"0.5607601",
"0.56066734",
"0.5516852",
"0.5501163",
"0.5386196",
"0.5312282",
"0.52263325",
"0.5222124",
"0.5217298",
"0.5209187",
"0.5178366",
"0.5174749",
"0.51383066",
"0.50795346",
"0.5038151",
"0.5030855"... | 0.6013096 | 1 |
Form JSON using expected keys in an input dictionary. Note that in the end it's basically selecting keys from a dictionary, which could be done easier, but the actual operation isn't actually that, because the keys in the input dictionary shouldn't be forced to be the same as the JSON format keys. So I'm not doing a sh... | def ZkrV(U34r):
qQXR = {'sentence': U34r['sentence'], 'summary': U34r['summary'], 'position': U34r['position']}
return qQXR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pQEY(chwN):\n try:\n x9sQ = {}\n for H5ew, BWXx in chwN.items():\n x9sQ[', '.join(H5ew)] = BWXx\n except AttributeError:\n x9sQ = chwN\n return x9sQ",
"def jdSk(chwN):\n mE6u = {}\n for G1Hx, Ty9i in chwN.items():\n hU8D = hr_R(str(G1Hx), reverse=True)\n ... | [
"0.69761616",
"0.63944453",
"0.6272559",
"0.617276",
"0.6171778",
"0.61706185",
"0.6135981",
"0.61301666",
"0.6094337",
"0.59793085",
"0.58936757",
"0.5875524",
"0.5860523",
"0.5852844",
"0.5844039",
"0.58387685",
"0.5809953",
"0.5805868",
"0.57990736",
"0.57877374",
"0.57371... | 0.0 | -1 |
Takes a function that needs a universe graph as the first argument and returns a wrapped one | def VJsK(YKHO, eHNT):
@zaGL(eHNT)
def h3Xc(pNZh, *qIxc, **B2fa):
"""Applies the enclosed function with the universe given as the first argument"""
if YKHO.universe is None:
raise ValueError('Can not run universe function [{}] - No universe is set'.format(eHNT.__name__))
retu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h3Xc(pNZh, *qIxc, **B2fa):\n if YKHO.universe is None:\n raise ValueError('Can not run universe function [{}] - No universe is set'.format(eHNT.__name__))\n return eHNT(YKHO.universe, pNZh, *qIxc, **B2fa)",
"def h3Xc(pNZh, *qIxc, **B2fa):\n eHNT(pNZh, *qIxc, **B2fa)\n return pNZh",
"def ... | [
"0.7744719",
"0.71379906",
"0.6844624",
"0.6537996",
"0.64556706",
"0.5969409",
"0.5831873",
"0.5762102",
"0.5739446",
"0.5722575",
"0.5686491",
"0.56430835",
"0.56247246",
"0.55919325",
"0.55657554",
"0.5521717",
"0.5518977",
"0.5512762",
"0.5501171",
"0.5483546",
"0.5478390... | 0.7305657 | 1 |
Design of an Aweighting filter. b, a = A_weighting(fs) designs a digital Aweighting filter for | def ctaO(Vb5F):
Dyub = 20.598997
EmyI = 107.65265
IxvY = 737.86223
STUU = 12194.217
Rv8d = 1.9997
Q9dw = [(2 * mM0K * STUU) ** 2 * 10 ** (Rv8d / 20), 0, 0, 0, 0]
q5H0 = RE_c([1, 4 * mM0K * STUU, (2 * mM0K * STUU) ** 2], [1, 4 * mM0K * Dyub, (2 * mM0K * Dyub) ** 2])
q5H0 = RE_c(RE_c(q5H0,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wazo(Vb5F):\n Dyub = 20.598997\n EmyI = 107.65265\n IxvY = 737.86223\n STUU = 12194.217\n Rv8d = 1.9997\n Q9dw = [(2 * mM0K * STUU) ** 2 * 10 ** (Rv8d / 20), 0, 0, 0, 0]\n q5H0 = RE_c([1, 4 * mM0K * STUU, (2 * mM0K * STUU) ** 2], [1, 4 * mM0K * Dyub, (2 * mM0K * Dyub) ** 2])\n q5H0 = RE... | [
"0.7830155",
"0.6810547",
"0.6783486",
"0.67245924",
"0.65208095",
"0.64057773",
"0.6402226",
"0.6371087",
"0.6319001",
"0.6214553",
"0.6210014",
"0.6166806",
"0.6146041",
"0.6127647",
"0.60775864",
"0.602213",
"0.5980848",
"0.59582806",
"0.59295964",
"0.5916222",
"0.59054816... | 0.7812757 | 1 |
{post} /login/ Login 0.1.0 Login Login {String} access_token An access token from one of the OAuth providers. {String="facebook"} social_network The OAuth provider that the access token came from. {String} access_token The access token that can be used for authenticated endpoints. | def MC83():
P4t4 = wk5E._get_current_object()
rkQY = P4t4.config['TOKEN_EXPIRATION']
if QePW.get_json().get('access_token') is None:
return pz3A({'error_type': 'missing_param', 'missing_param': 'access_token', 'message': 'access_token is a required parameter'})
elif QePW.get_json().get('social_n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MC83(NT__=None, **B2fa):\n return KseA.run(locals())",
"def MC83(QePW):\n try:\n GgSi = qQXR.loads(QePW.body)\n except qQXR.decoder.JSONDecodeError as e:\n return DbbF(str(tTpl))\n U5bT = xzCw(GgSi, BfDw.login_post_schema)\n if U5bT is not None:\n return U5bT\n eOtH = G... | [
"0.7417698",
"0.7050877",
"0.6854283",
"0.6843898",
"0.6788112",
"0.6757732",
"0.6732979",
"0.6684512",
"0.6668356",
"0.6641268",
"0.6620097",
"0.6595968",
"0.65873444",
"0.6554082",
"0.654775",
"0.65462816",
"0.6545532",
"0.65427506",
"0.65343165",
"0.65135753",
"0.6494882",... | 0.78811157 | 0 |
Returns a component of the transition dipole moment operator | def Gg28(YKHO, exwG):
return I7r7(dim=YKHO.dim, data=YKHO.data[:, :, exwG]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aBDM(YKHO, T4Wy):\n RA_F = oyIN.zeros(3)\n for YRbF in range(len(T4Wy) - 1):\n RA_F += YKHO.get_edge_data(T4Wy[YRbF], T4Wy[YRbF + 1])['vector']\n return RA_F",
"def AIGx(YKHO, RR8p):\n YKHO.update(RR8p)\n return YKHO.dipole",
"def eNoj(YKHO):\n V6IE = YKHO.construct_Density_matrix(... | [
"0.5950926",
"0.59479684",
"0.5883989",
"0.57589644",
"0.57589644",
"0.5401513",
"0.5373684",
"0.5341031",
"0.5294094",
"0.5293784",
"0.5272024",
"0.52678233",
"0.52460957",
"0.5226301",
"0.5194653",
"0.5187493",
"0.5179835",
"0.5171274",
"0.5165678",
"0.51515704",
"0.5148514... | 0.0 | -1 |
Persist the tracker featurizer to the given path. | def FAgT(YKHO, pmON: Union[Text, Path]) -> None:
ZXhT = GkAb(pmON) / Ec4Y
CMGp.shared.utils.io.create_directory_for_file(ZXhT)
CMGp.shared.utils.io.write_text_file(str(FyMh.encode(YKHO)), ZXhT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xkzz(YKHO, pmON):\n if hasattr(YKHO, '_features'):\n YKHO._trainer.save(pmON, True)\n else:\n raise NotImplementedError()",
"def xkzz(YKHO, pmON):\n pass",
"def xkzz(YKHO, pmON):\n raise NotImplementedError()",
"def xkzz(YKHO, pmON: str) -> None:\n raise NotImplementedError",... | [
"0.77782625",
"0.6918304",
"0.69096494",
"0.68729925",
"0.6736651",
"0.6709334",
"0.67033815",
"0.6702813",
"0.6610044",
"0.659108",
"0.65893054",
"0.6584925",
"0.65600264",
"0.65600264",
"0.65264297",
"0.6524768",
"0.6524768",
"0.6514403",
"0.65061295",
"0.6501312",
"0.64955... | 0.7926285 | 0 |
Gets a new access token using the given refresh token. | def uUrB():
GQl3 = QePW.form['refresh_token']
kxOm, JBvl = j6ww(refresh_token=GQl3)
return (pz3A(kxOm), JBvl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vCbK(zb3C, Cxz5, GQl3):\n geh0 = G4JS.post('https://www.googleapis.com/oauth2/v4/token', data={'client_id': zb3C, 'client_secret': Cxz5, 'refresh_token': GQl3, 'grant_type': 'refresh_token'}, timeout=D2fq)\n geh0.raise_for_status()\n NT__ = geh0.json()['access_token']\n return NT__",
"def GQl3(YK... | [
"0.82152784",
"0.7903262",
"0.7819898",
"0.7798827",
"0.77516776",
"0.7742508",
"0.77158105",
"0.7655958",
"0.7653921",
"0.7652733",
"0.76184267",
"0.76089954",
"0.7600481",
"0.7599705",
"0.75676095",
"0.7566291",
"0.7512871",
"0.7505018",
"0.7495658",
"0.746943",
"0.74435884... | 0.64956546 | 94 |
Class standard array normalization. Normalized along max dimension (a=0 for a 1D array, a=1 for a 2D array, etc.). | def aBlv(YKHO, Ty9i):
z3rX = Ty9i - YKHO.mean_vec
if YKHO.normalize is None:
return z3rX
exwG = oyIN.linalg.norm(z3rX, ord=YKHO.normalize, axis=-1, keepdims=True)
with oyIN.errstate(divide='ignore'):
return oyIN.nan_to_num(z3rX / exwG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kwsU(ezWE):\n if len(ezWE.shape) == 2:\n return KO1d(ezWE)\n elif len(ezWE.shape) == 3:\n return w5bT(ezWE)\n else:\n raise AttributeError(f'Unknown number of dimensions of array to normalise. Array deimensions: {len(ezWE.shape)}')",
"def NkkI(ezWE, jDK_=0):\n return ezWE / (... | [
"0.7592538",
"0.7537661",
"0.7448604",
"0.7404952",
"0.73919857",
"0.7389001",
"0.73136324",
"0.72758025",
"0.72743624",
"0.72631747",
"0.7151253",
"0.71215564",
"0.7117243",
"0.7117243",
"0.70975655",
"0.7066287",
"0.7059535",
"0.7053355",
"0.7033577",
"0.69930464",
"0.69854... | 0.0 | -1 |
assert whether SECRET_KEY env variable is set to something different from the default unsafe value | def PGvn(YKHO):
YKHO.assertNotEqual(wk5E.config['SECRET_KEY'], 'hard to guess string') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iL97(YKHO):\n with YKHO.assertWarns(UserWarning, msg='DJANGO_SECRET_KEY not set in environment'), Po4F.dict('os.environ', {'DJANGO_SECRET_KEY': ''}):\n gCuF = YKHO._load_settings()\n YKHO.assertNotEqual(gCuF.SECRET_KEY, '')",
"def qBPK(YKHO):\n with Po4F.dict('os.environ', {'DJANGO_SECRET... | [
"0.8252034",
"0.76574427",
"0.7294732",
"0.72814745",
"0.721258",
"0.7029575",
"0.6966841",
"0.67783237",
"0.6645575",
"0.65547234",
"0.649302",
"0.64802855",
"0.64484805",
"0.64098054",
"0.63991684",
"0.6397162",
"0.6373397",
"0.6368342",
"0.6343839",
"0.6339395",
"0.632567"... | 0.7910603 | 1 |
Returns the string representation of the model | def gTzM(YKHO):
import simplejson as qQXR
if jKi7.PY2:
import sys
U3hF(sys)
sys.setdefaultencoding('utf-8')
return qQXR.dumps(yInN(YKHO), ensure_ascii=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.864179",
"0.85105866",
"0.7853924",
"0.77452",
"0.7712474",
"0.76976854",
"0.76601666",
"0.7638181",
"0.7621996",
"0.76074743",
"0.76074743",
"0.76074743",
"0.7607432",
"0.7599404",
"0.75858897",
"0.7582702",
"0.75715727",
"0.75683635",
"0.7539386",
"0.7539386",
"0.7528709... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.8043786 | 75 |
Computes ||f(x;theta) y||^2_2 + lambda sum_i=1^d ||theta_i||_2^2 | def dNsa(C3ST, WKvO, LVAh, H96O):
WKvO, LVAh = (WKvO.detach(), LVAh.detach())
uN02 = C3ST(WKvO)
N77f = (uN02 - LVAh).pow(2).mean()
for xqoZ in C3ST.parameters():
N77f += H96O * xqoZ.pow(2).sum()
return N77f | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PIBm(q7In, EcVT, LVAh, w4rS):\n r8hN = LVAh.size\n Oa10 = 0\n Ro40 = oyIN.zeros(q7In.shape)\n MKlR = m1Hg(q7In.dot(EcVT.T))\n ' \\n ## X : m row n feature(col). => matrix m * n dim. \\n ## theta: n feature(col) 1 row. theta*X.T remember multiple matrix\\n ## remember sigmoid(z) = 1 /... | [
"0.6948146",
"0.69425625",
"0.6809729",
"0.6742077",
"0.6631272",
"0.6554899",
"0.65524256",
"0.6536485",
"0.650909",
"0.6506769",
"0.64717513",
"0.6458225",
"0.6452911",
"0.64188296",
"0.6396838",
"0.6373099",
"0.63589805",
"0.6328751",
"0.63218004",
"0.631665",
"0.6310996",... | 0.0 | -1 |
This function creat a list of digits in range from 1 to n | def S3W7(exwG):
Ylbp = []
YRbF = 1
while YRbF <= exwG:
Ylbp.append(YRbF)
YRbF += 1
return Ylbp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def spgl(exwG):\n exwG = pBSp(exwG)\n BHGE = [exwG % 10]\n exwG //= 10\n while exwG > 0:\n BHGE.append(exwG % 10)\n exwG //= 10\n return BHGE",
"def BHGE(exwG):\n if exwG < 0:\n return []\n oxOY = []\n while exwG >= 10:\n Mkmy = exwG % 10\n oxOY.insert(0... | [
"0.8182466",
"0.8040851",
"0.79578924",
"0.78705156",
"0.78664434",
"0.77282465",
"0.7658196",
"0.75667256",
"0.7458629",
"0.73433506",
"0.7322173",
"0.731377",
"0.7292243",
"0.7264963",
"0.7210166",
"0.7179344",
"0.7178059",
"0.71424556",
"0.7096069",
"0.7058182",
"0.7036148... | 0.7015833 | 22 |
This method should return True if the search algorithm is to continue to search for more solutions after it has found one, or False if it should not. | def QND9(YKHO):
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NSD8(YKHO):\n if YKHO.selected_algo == 'Dijkstra' and (not YKHO.graph) or (YKHO.selected_algo != 'Dijkstra' and (not YKHO.openSet)):\n YKHO.endOfSearch = True\n YKHO.grid[YKHO.robotStart.row][YKHO.robotStart.col] = YKHO.ROBOT\n YKHO.message.configure(text=YKHO.MSG_NO_SOLUTION)\n ... | [
"0.72907615",
"0.71341914",
"0.692673",
"0.6796138",
"0.6698667",
"0.66864866",
"0.66027194",
"0.6533887",
"0.65232694",
"0.6511822",
"0.6504977",
"0.6461766",
"0.64596105",
"0.6450029",
"0.6448635",
"0.64197814",
"0.6378739",
"0.6329502",
"0.62949234",
"0.6286101",
"0.628362... | 0.6974778 | 2 |
Constructor function assigns member variables "source", "label" and "destination" as specified. | def FIMM(YKHO, JZXy, UXqs, yFgu):
YKHO.source = JZXy
YKHO.label = UXqs
YKHO.destination = yFgu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, JZXy, yFgu):\n YKHO.source = JZXy\n YKHO.destination = yFgu",
"def FIMM(YKHO, JZXy, pan_, UXqs=''):\n YKHO.source = JZXy\n YKHO.source.edges.append(YKHO)\n YKHO.target = pan_\n YKHO.target.edges.append(YKHO)\n YKHO.label = UXqs",
"def FIMM(YKHO, zZcM, e1vZ):\n YKHO.src = ... | [
"0.8308443",
"0.79361016",
"0.75753665",
"0.75072455",
"0.7424716",
"0.72823864",
"0.72377515",
"0.7219527",
"0.71659267",
"0.7152878",
"0.7079322",
"0.7012531",
"0.69766295",
"0.6905731",
"0.684406",
"0.683354",
"0.683354",
"0.683354",
"0.68301904",
"0.6816578",
"0.6816578",... | 0.9050351 | 0 |
Undo movement vectors when movement keys are released. | def GEL9(YKHO, o61b: int, F1OP: int):
YKHO.player.on_key_release(o61b, F1OP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K5jA(YKHO, tvqc):\n if tvqc.key == a9eO.K_RIGHT:\n YKHO.ship.moving_right = False\n if tvqc.key == a9eO.K_LEFT:\n YKHO.ship.moving_left = False",
"def yeYe(YKHO, Mjtj):\n if Mjtj.key == a9eO.K_LEFT:\n YKHO.input_vec.x = -1\n elif Mjtj.key == a9eO.K_RIGHT:\n YKHO.input_... | [
"0.65038943",
"0.6409962",
"0.6361134",
"0.6285973",
"0.61796594",
"0.61069846",
"0.5960988",
"0.5900258",
"0.58925134",
"0.58775663",
"0.5839621",
"0.5838056",
"0.5828192",
"0.58267456",
"0.58227855",
"0.58103544",
"0.58103544",
"0.5793002",
"0.57809377",
"0.5780823",
"0.577... | 0.0 | -1 |
Draw all game objects. | def NgQf(YKHO):
jIOH.start_render()
YKHO.top_wall_sprites.draw()
if not YKHO.player.break_out:
YKHO.break_out_wall.draw()
YKHO.side_wall_sprites.draw()
YKHO.extra_lives.draw()
YKHO.power_ups.draw()
YKHO.bricks.draw()
YKHO.lasers.draw()
YKHO.player.draw()
YKHO.balls.draw()... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bnFc(YKHO):\n YKHO.game_objects.sort(key=lambda JLR5: JLR5.transform.layer)\n for JLR5 in YKHO.game_objects:\n JLR5.draw_game_object()",
"def KPYr():\n global fuel_available\n BWYr.draw_bg(ufJO)\n SByc.draw_obstacles(ufJO)\n LOQe.draw_coins(ufJO)\n ZDn9.draw_fg(ufJO)\n for gwN3... | [
"0.83818114",
"0.8124039",
"0.8060864",
"0.8055582",
"0.7981307",
"0.7843092",
"0.7636285",
"0.7614786",
"0.7553869",
"0.754934",
"0.75075555",
"0.7458475",
"0.74303585",
"0.73981774",
"0.7392323",
"0.7335321",
"0.72788024",
"0.7272878",
"0.7262161",
"0.7252137",
"0.724148",
... | 0.0 | -1 |
Compute the loss of the logistic regression. | def j0HU(LVAh, UShr, upAO):
WTkW = 1 / (1 + oyIN.exp(-oyIN.dot(UShr, upAO)))
return -oyIN.mean(LVAh * oyIN.log(WTkW) + (1 - LVAh) * oyIN.log(1 - WTkW)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j0HU(LVAh, UShr, yzQ0):\n o3Uj = m1Hg(UShr.dot(yzQ0))\n N77f = LVAh.T.dot(oyIN.log(o3Uj)) + (1 - LVAh).T.dot(oyIN.log(1 - o3Uj))\n return oyIN.squeeze(-N77f)",
"def xBoL(YKHO):\n assert YKHO.logits is not None\n GQIE = ZylS.reduce_mean(ZylS.nn.softmax_cross_entropy_with_logits(logits=YKHO.logi... | [
"0.7774519",
"0.7723883",
"0.767602",
"0.7633315",
"0.75635344",
"0.7538641",
"0.753014",
"0.7521994",
"0.7503766",
"0.7475817",
"0.74730575",
"0.74592674",
"0.74564105",
"0.7444593",
"0.7426082",
"0.7424252",
"0.74210876",
"0.7420464",
"0.74154985",
"0.74120456",
"0.7408345"... | 0.74425495 | 14 |
Gets the number of this StatusInfo. | def FGW3(YKHO) -> str:
return YKHO._number | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W_Vi(YKHO) -> int:\n return YKHO._num",
"def jGRS(YKHO) -> int:\n return int(YKHO._json_dict['status'])",
"def jGRS(YKHO) -> int:\n return int(YKHO._json_dict['status'])",
"def UHFx(YKHO):\n return int(YKHO._stats.get('count', 0))",
"def Ocz0(YKHO) -> int:\n return YKHO.counter",
"def ... | [
"0.71307397",
"0.70717233",
"0.70717233",
"0.6968568",
"0.6945002",
"0.69119775",
"0.69119775",
"0.68854326",
"0.68747604",
"0.6855515",
"0.6837004",
"0.6837004",
"0.6837004",
"0.6837004",
"0.6837004",
"0.6837004",
"0.6837004",
"0.6837004",
"0.68054026",
"0.6781239",
"0.67725... | 0.0 | -1 |
Gets the state of this StatusInfo. | def QTBn(YKHO) -> str:
return YKHO._state | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ja6o(YKHO):\n return YKHO.status.state",
"def VLTN(YKHO):\n return YKHO.__state.get_status()",
"def Kkn8(YKHO):\n return YKHO.STATUSES_INFO[YKHO.status]",
"def jGRS(YKHO):\n return YKHO.attrs['State']['Status']",
"def jGRS(YKHO):\n return YKHO.state",
"def jGRS(YKHO):\n return YKHO.... | [
"0.84568846",
"0.8412598",
"0.8202162",
"0.81770164",
"0.8075566",
"0.8075566",
"0.8055872",
"0.79560417",
"0.79560417",
"0.79408276",
"0.7938044",
"0.7938044",
"0.7938044",
"0.7938044",
"0.792325",
"0.7921704",
"0.7921704",
"0.7921704",
"0.79172355",
"0.7911123",
"0.7911123"... | 0.0 | -1 |
Gets the type of this StatusInfo. | def type(YKHO) -> str:
return YKHO._type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ou5b(YKHO):\n return YKHO._type_status",
"def YwLH(YKHO):\n return YKHO.type",
"def YwLH(YKHO):\n return YKHO.type",
"def YwLH(YKHO):\n return YKHO.type",
"def YwLH(YKHO):\n return YKHO.type",
"def YwLH(YKHO):\n return YKHO._type",
"def YwLH(YKHO):\n return YKHO._type",
"def ... | [
"0.7796979",
"0.7514958",
"0.7514958",
"0.7514958",
"0.7469986",
"0.7463794",
"0.7463794",
"0.74101907",
"0.73956674",
"0.73956674",
"0.7394496",
"0.7387595",
"0.73496974",
"0.73496974",
"0.73496974",
"0.7301174",
"0.7301174",
"0.7301174",
"0.7301174",
"0.7301174",
"0.7301174... | 0.0 | -1 |
Gets the po of this StatusInfo. | def BCdN(YKHO) -> str:
return YKHO._po | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kkn8(YKHO):\n return YKHO.STATUSES_INFO[YKHO.status]",
"def qFkb(YKHO):\n return YKHO._status_tip",
"def pI9u(YKHO):\n return YKHO._status_conta",
"def jGRS(YKHO) -> EloR:\n return EloR[YKHO.json_dict['status']]",
"def jGRS(YKHO):\n return EloR[YKHO.json_dict['status']]",
"def jGRS(YKH... | [
"0.6639001",
"0.657699",
"0.63850677",
"0.63563913",
"0.6344227",
"0.6341497",
"0.62664807",
"0.62399393",
"0.62214196",
"0.6202747",
"0.62018454",
"0.61774063",
"0.6176209",
"0.6176209",
"0.6176209",
"0.6176209",
"0.6167665",
"0.61649764",
"0.61649764",
"0.61518043",
"0.6142... | 0.70256746 | 0 |
Gets the part_number of this StatusInfo. | def oalz(YKHO) -> str:
return YKHO._part_number | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s93r(YKHO):\n return YKHO.eeprom.part_number_str()",
"def q2Ap(YKHO):\n return YKHO._part_id",
"def gsvd(YKHO):\n return YKHO._part_number_marker",
"def iDoh(YKHO):\n return int(YKHO._partID, 16)",
"def s93r(YKHO):\n koa4 = 327684\n Ylbp = YKHO._send_packet(koa4, receive_size=20)\n ... | [
"0.7655508",
"0.7176549",
"0.69196457",
"0.66955036",
"0.6599273",
"0.6474059",
"0.6459221",
"0.62992424",
"0.629482",
"0.6273049",
"0.60628",
"0.6006497",
"0.5995187",
"0.5971671",
"0.5874804",
"0.580385",
"0.5794981",
"0.5784759",
"0.5754048",
"0.57291955",
"0.572261",
"0... | 0.770914 | 0 |
Gets the status of this StatusInfo. | def jGRS(YKHO) -> str:
return YKHO._status | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CHRo(YKHO):\n return YKHO._status",
"def Kkn8(YKHO):\n return YKHO.STATUSES_INFO[YKHO.status]",
"def jGRS(YKHO) -> EloR:\n return EloR[YKHO.json_dict['status']]",
"def VLTN(YKHO):\n return YKHO._status",
"def VLTN(YKHO):\n return YKHO._status",
"def VLTN(YKHO):\n return YKHO._status... | [
"0.84785324",
"0.8424802",
"0.84138036",
"0.83876497",
"0.837088",
"0.837088",
"0.83627486",
"0.8335814",
"0.831886",
"0.831886",
"0.831886",
"0.8317979",
"0.8317979",
"0.8317979",
"0.8317979",
"0.8284511",
"0.8281226",
"0.8281226",
"0.8281226",
"0.8259052",
"0.8259052",
"0... | 0.0 | -1 |
Gets the ship_date of this StatusInfo. | def v8gR(YKHO) -> str:
return YKHO._ship_date | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v8gR(YKHO) -> str:\n return qe4Y.get(YKHO, 'ship_date')",
"def v8gR(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'ship_date')",
"def v8gR(YKHO, v8gR: str):\n YKHO._ship_date = v8gR",
"def v8gR(YKHO, v8gR):\n YKHO._ship_date = v8gR",
"def C7MP(YKHO):\n return YKHO._ship",
"def C7MP(YKHO)... | [
"0.8377058",
"0.8115119",
"0.6860627",
"0.66935563",
"0.65607077",
"0.64666057",
"0.6100324",
"0.60998964",
"0.60582244",
"0.60316306",
"0.6025888",
"0.6013116",
"0.6013116",
"0.6013116",
"0.5998658",
"0.5984832",
"0.5984832",
"0.59382737",
"0.5911438",
"0.59092444",
"0.58717... | 0.8409185 | 0 |
Sets the ship_date of this StatusInfo. | def v8gR(YKHO, v8gR: str):
YKHO._ship_date = v8gR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v8gR(YKHO, v8gR):\n YKHO._ship_date = v8gR",
"def mXfR(YKHO, mXfR):\n YKHO._latest_ship_date = mXfR",
"def UGOx(YKHO, UGOx):\n YKHO._directorship_start_date = UGOx",
"def v8gR(YKHO) -> str:\n return YKHO._ship_date",
"def v8gR(YKHO) -> str:\n return qe4Y.get(YKHO, 'ship_date')",
"def L... | [
"0.880527",
"0.7202185",
"0.7067226",
"0.68578744",
"0.6729977",
"0.6618294",
"0.6533056",
"0.6465691",
"0.6450031",
"0.6327134",
"0.63267785",
"0.63097477",
"0.6108645",
"0.6075224",
"0.6053354",
"0.6046828",
"0.60381424",
"0.59966165",
"0.59613264",
"0.59358656",
"0.5912444... | 0.8676187 | 1 |
Sets the notes of this StatusInfo. | def rpno(YKHO, rpno: str):
YKHO._notes = rpno | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n_rA(YKHO, rpno):\n YKHO._notes = rpno",
"def rpno(YKHO, rpno):\n YKHO._notes = rpno",
"def rpno(YKHO, rpno):\n YKHO._notes = rpno",
"def rpno(YKHO, rpno):\n YKHO._notes = rpno",
"def rpno(YKHO, rpno):\n YKHO._notes = rpno",
"def rpno(YKHO, rpno):\n YKHO._notes = rpno",
"def rpno(... | [
"0.76166666",
"0.74163765",
"0.7330402",
"0.7330402",
"0.7330402",
"0.7330402",
"0.7330402",
"0.7330402",
"0.7330402",
"0.7330402",
"0.7330402",
"0.6873307",
"0.66989577",
"0.6691728",
"0.66529286",
"0.6645095",
"0.6634254",
"0.6569723",
"0.6430298",
"0.6280074",
"0.6180954",... | 0.7235165 | 11 |
Returns the string representation of the model using alias | def gTzM(YKHO) -> str:
return CgYo.pformat(YKHO.dict(by_alias=True)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO) -> str:\n return YKHO.alias",
"def zAg0(YKHO):\n return YKHO.alias_name",
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def mWFP(YKHO):\n return f'{YKHO.alias}'",
"def vbQv(YKHO) -> str:\n return YKHO._str_representation_for('a... | [
"0.77665067",
"0.7684247",
"0.72099316",
"0.69695336",
"0.6875455",
"0.6853435",
"0.6750787",
"0.6750787",
"0.67278194",
"0.67196035",
"0.6668564",
"0.6518873",
"0.6518873",
"0.6518873",
"0.6518873",
"0.6518873",
"0.6518873",
"0.64316285",
"0.6425204",
"0.6368609",
"0.6366865... | 0.65216684 | 16 |
Create an instance of V1Cache from a dict | def jG8h(Emd4, YEnM: dict) -> ZC_j:
if YEnM is None:
return None
if type(YEnM) is not dict:
return ZC_j.parse_obj(YEnM)
UTAq = ZC_j.parse_obj({'disable': YEnM.get('disable'), 'ttl': YEnM.get('ttl'), 'io': YEnM.get('io'), 'sections': YEnM.get('sections')})
return UTAq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pktP(Emd4, nMY2: str) -> ZC_j:\n return Emd4.from_dict(qQXR.loads(nMY2))",
"def jG8h(Emd4, tbx9: Dict) -> 'CacheLevelResponseResult':\n qIxc = {}\n if 'id' in tbx9:\n qIxc['id'] = tbx9.get('id')\n if 'value' in tbx9:\n qIxc['value'] = tbx9.get('value')\n if 'editable' in tbx9:\n ... | [
"0.77309096",
"0.7528347",
"0.6973902",
"0.69109863",
"0.6879272",
"0.6879272",
"0.6879272",
"0.6879272",
"0.6879272",
"0.6879272",
"0.6879272",
"0.6879272",
"0.6879272",
"0.6879272",
"0.6879272",
"0.6879272",
"0.6879272",
"0.6879272",
"0.6879272",
"0.6879272",
"0.6879272",
... | 0.7824213 | 0 |
Returns the merged input label for a merged IP label. This is primarily used for the `fingerprint` rule, where we collect all the available input BAMs together. | def __De(f0fp, mgVh):
l31M = f0fp.loc[f0fp['label'] == mgVh, 'biological_material']
if l31M.nunique() != 1:
print('Expected a single biomaterial, found: {0}'.format(l31M))
raise ValueError
l31M = l31M.values[0]
yxN6 = f0fp.loc[(f0fp['biological_material'] == l31M) & (f0fp['antibody'] == ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UXqs(YKHO):\n d6pt = YKHO._ordered_input_names.index('label')\n return YKHO._inputs[d6pt]",
"def dTjA(input: dict, hlel: dict) -> None:\n Pw9X = input.get('labels')\n UXMY = hlel.get('merged_labels')\n xbui = dict()\n for EhP8 in Pw9X:\n aPr_ = Hy7s.path.basename(EhP8)\n aPr_,... | [
"0.5983199",
"0.57830393",
"0.56899935",
"0.56899935",
"0.56899935",
"0.56899935",
"0.5627811",
"0.5586307",
"0.5522659",
"0.5475597",
"0.54499614",
"0.5444496",
"0.5424458",
"0.54202294",
"0.5405784",
"0.5405466",
"0.5378545",
"0.53730685",
"0.53730685",
"0.5361406",
"0.5332... | 0.6706614 | 0 |
Convert a OpenBabel molecular structure to an RDKit RDMol object. | def ALrZ(Emd4, KJXm: 'openbabel.OBMol', d5N1: bool=False, aSeI: bool=True) -> 'RDKitMol':
Rt0j = OJ0g.rdchem.EditableMol(OJ0g.rdchem.Mol())
for uXdZ in NZQz.OBMolAtomIter(KJXm):
RkFC = OJ0g.rdchem.Atom(uXdZ.GetAtomicNum())
qBv7 = uXdZ.GetIsotope()
if qBv7 != 0:
RkFC.SetIsotop... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mcgw(YKHO):\n RQqs = YKHO.get_structure()\n t08n = 'inchi' if 'InChI=' in RQqs else 'smi'\n N9D1 = ZUME.OBMol()\n xpHu = ZUME.OBConversion()\n xpHu.SetInFormat(t08n)\n xpHu.ReadString(N9D1, RQqs)\n return N9D1",
"def xWcG(Emd4, Rt0j: 'Chem.rdchem.Mol') -> 'RDKitMol':\n return Emd4(Rt0... | [
"0.63252145",
"0.6164788",
"0.60231364",
"0.6020275",
"0.6009205",
"0.5844511",
"0.5836718",
"0.58016986",
"0.57990545",
"0.5672511",
"0.5646542",
"0.56379026",
"0.56298995",
"0.5591393",
"0.55826277",
"0.5513112",
"0.545155",
"0.53944016",
"0.53554904",
"0.5328443",
"0.53105... | 0.550273 | 16 |
Get a RDKitConf instance from a RDKitMol instance. The owning molecule of the generated conformer is RDKitMol instead of Chem.rdchem.Mol. | def IDw7(Emd4, Rt0j: 'RDKitMol', id: int=0) -> 'RDkitConf':
return Rt0j.GetConformer(id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xWcG(Emd4, Rt0j: 'rdkit.Chem.rdchem.Mol', id: int=0) -> 'RDkitConf':\n return Emd4(Rt0j.GetConformer(id))",
"def xWcG(Emd4, Rt0j: 'Chem.rdchem.Mol') -> 'RDKitMol':\n return Emd4(Rt0j)",
"def sWJO(YKHO) -> Mk_G.Chem.Mol:\n return YKHO._molecule",
"def sWJO(YKHO) -> OJ0g.Mol:\n from qubekit.uti... | [
"0.7649456",
"0.71523887",
"0.6909187",
"0.6632473",
"0.6485138",
"0.6483557",
"0.6024061",
"0.58879906",
"0.58716995",
"0.5868183",
"0.58062434",
"0.57879525",
"0.5785638",
"0.5722682",
"0.5643666",
"0.56298447",
"0.5586042",
"0.5582367",
"0.5575694",
"0.5310214",
"0.530125"... | 0.8202948 | 0 |
Whether the conformer has a owning molecule. | def KWJd(YKHO):
if YKHO._rd_mol:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WvG2(YKHO):\n return YKHO.owner is not None",
"def eRwN(YKHO):\n return YKHO.owner != 0",
"def imuE(Yo8G):\n N9D1 = set(Yo8G)\n vldh = jth9.deepcopy(N9D1)\n for r8hN in N9D1:\n for exwG in N9D1:\n Ylbp = Uw2J(r8hN, exwG)\n if Ylbp != None:\n if Ylb... | [
"0.70986235",
"0.70124763",
"0.6801628",
"0.67493623",
"0.6651844",
"0.65851194",
"0.6571171",
"0.64611655",
"0.6414729",
"0.63848984",
"0.62847614",
"0.6284393",
"0.62588096",
"0.62495685",
"0.62494344",
"0.6218524",
"0.61968374",
"0.61788726",
"0.61710876",
"0.61349547",
"0... | 0.7559083 | 0 |
Get the dihedral angles of all torsional modes (rotors) of the Conformer. The sequence of the values are corresponding to the torsions of the molecule (``GetTorsionalModes``). | def I7tF(YKHO) -> list:
return [YKHO.GetTorsionDeg(lPB8) for lPB8 in YKHO.GetTorsionalModes()] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tgtY(N9D1: rdchem.Mol) -> x1iM[x1iM[float]]:\n F7n6 = N9D1.GetSubstructMatches(Ue9o)\n bAiv = []\n for YRbF, W0I0 in enumerate(F7n6):\n VGXj = W0I0[0]\n FZnq = W0I0[1]\n kJxn = N9D1.GetAtomWithIdx(VGXj).GetNeighbors()\n mFWG = [WKvO.GetIdx() for WKvO in kJxn if WKvO.GetIdx(... | [
"0.69645774",
"0.6862628",
"0.6570972",
"0.64679265",
"0.61556226",
"0.61278784",
"0.60866463",
"0.5856334",
"0.5790443",
"0.5789392",
"0.57273316",
"0.5659185",
"0.56517625",
"0.5632666",
"0.5530832",
"0.5525468",
"0.55251473",
"0.55091137",
"0.5432638",
"0.543069",
"0.54176... | 0.7396551 | 0 |
Set the dihedral angles of all torsional modes (rotors) of the Conformer. The sequence of the values are corresponding to the torsions of the molecule (``GetTorsionalModes``). | def rD18(YKHO, bLm4: list):
if len(bLm4) != len(YKHO.GetTorsionalModes()):
raise ValueError('The length of angles is not equal to the length of torsional modes')
for YylR, lPB8 in zip(bLm4, YKHO.GetTorsionalModes()):
try:
YKHO.SetTorsionDeg(lPB8, YylR)
except RuntimeError as ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YiEL(YKHO, tV03: list, Wskb: Union[float, int]):\n aUUQ.SetDihedralRad(YKHO._conf, *tV03, Wskb)",
"def uD9N(YKHO, tV03: list, tjON: Union[float, int]):\n aUUQ.SetDihedralDeg(YKHO._conf, *tV03, tjON)",
"def TTi2(YKHO, tV03: list):\n return aUUQ.GetDihedralRad(YKHO._conf, *tV03)",
"def I7tF(YKHO) ... | [
"0.66236806",
"0.6457705",
"0.64213014",
"0.6305312",
"0.62613505",
"0.59444815",
"0.5831546",
"0.574936",
"0.57278186",
"0.56815714",
"0.5573866",
"0.5453913",
"0.5433847",
"0.5391419",
"0.53889585",
"0.53196543",
"0.53002536",
"0.5282484",
"0.52106595",
"0.5113318",
"0.5088... | 0.7255783 | 0 |
Determine the smallest atom index in mol connected to ``atom1`` which is not ``atom2``. Returns a heavy atom if available, otherwise a hydrogen atom. Useful for deterministically determining the indices of four atom in a scan. This function assumes there ARE additional atoms connected to ``atom1``, and that ``atom2`` i... | def hu5J(hQUT: 'rdkit.Chem.rdchem.Atom', aixJ: 'rdkit.Chem.rdchem.Atom') -> int:
AAbN = [jzdc for jzdc in hQUT.GetNeighbors() if jzdc.GetIdx() != aixJ.GetIdx()]
tSoI = sorted([GPal.GetAtomicNum() for GPal in AAbN])
JLci, OAtx = (tSoI[0], tSoI[-1])
if JLci == OAtx or JLci > 1:
return min([GPal.Ge... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jmas(hQUT, YBqi=-1):\n if YBqi < 0:\n return [exwG for exwG in hQUT.GetNeighbors() if exwG.GetSymbol() != 'H']\n else:\n return [exwG for exwG in hQUT.GetNeighbors() if exwG.GetSymbol() != 'H' and exwG.GetIdx() != YBqi]",
"def XvLz(YKHO, hQUT, aixJ):\n KIXw = YKHO.get_adjacent(hQUT)\n ... | [
"0.61366177",
"0.5716898",
"0.55826914",
"0.5515344",
"0.54955333",
"0.54433984",
"0.5422895",
"0.5414393",
"0.5395346",
"0.5382919",
"0.53823596",
"0.5376874",
"0.5376781",
"0.53556615",
"0.530658",
"0.52795047",
"0.52675444",
"0.5255524",
"0.5220692",
"0.51972145",
"0.51866... | 0.8040296 | 0 |
Test to see if the API could handle missing arguments in the metadata. Given that a value was required to be passed with an argument by the RequestParser, a missing argument(s) should raise an error. | def xLfe(YKHO):
syF2 = [{'lat': 49.2699648, 'epoch': 1588704959.321, 'orientation': -10.2}, {'lat': 49.2699648, 'lon': -123.1290368}]
for yucI in syF2:
geh0 = YKHO.client.post('/detect_glare', data=yucI)
YKHO.assertEqual(geh0.status_code, 400) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XCEP(YKHO):\n for d7pR in YKHO.args:\n if d7pR not in YKHO.unnecessary and YKHO.args[d7pR] is None:\n raise ValueError('Missing parameter: {}'.format(d7pR))",
"def u7Yp(YKHO):\n pOv4 = {'internal': True, 'call_name': 'Bob', 'args': None, 'module': None}\n YKHO.server._validate_requ... | [
"0.74139565",
"0.7295567",
"0.7289317",
"0.7190598",
"0.7093718",
"0.7061023",
"0.7036074",
"0.69956446",
"0.69923556",
"0.69726986",
"0.69234455",
"0.68951106",
"0.6856346",
"0.68293655",
"0.68293655",
"0.680114",
"0.679153",
"0.6779378",
"0.67648256",
"0.6701969",
"0.665417... | 0.718705 | 4 |
Compute the jaccard overlap (IoU of two boxes) of two sets of boxes | def OnKj(sOrw, sxK1):
sOrw = sOrw.float()
sxK1 = sxK1.float()
C7_8 = XMlP(sOrw, sxK1)
s9o6 = ((sOrw[:, 2] - sOrw[:, 0]) * (sOrw[:, 3] - sOrw[:, 1])).unsqueeze(1).expand_as(C7_8)
nJDE = ((sxK1[:, 2] - sxK1[:, 0]) * (sxK1[:, 3] - sxK1[:, 1])).unsqueeze(0).expand_as(C7_8)
b65I = s9o6 + nJDE - C7_8
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def khWK(MWrr, MOlU):\n iQin = mP91(MWrr, MOlU)\n vXV1 = (MWrr[:, 2] - MWrr[:, 0]) * (MWrr[:, 3] - MWrr[:, 1])\n MAOT = (MOlU[:, 2] - MOlU[:, 0]) * (MOlU[:, 3] - MOlU[:, 1])\n b65I = vXV1.unsqueeze(1) + MAOT.unsqueeze(0) - iQin\n return iQin / b65I",
"def _T49(FlUN, S_XF):\n return OnKj(FlUN.un... | [
"0.7525838",
"0.74855787",
"0.74704164",
"0.7466052",
"0.7441575",
"0.740076",
"0.73505634",
"0.73505634",
"0.73505634",
"0.73505634",
"0.73505634",
"0.73505634",
"0.73505634",
"0.73505634",
"0.7338221",
"0.7289898",
"0.7286155",
"0.7277755",
"0.7258619",
"0.7243819",
"0.7219... | 0.7119001 | 22 |
Return the port this node is really listening on. | def i44Y(YKHO):
return YKHO.port | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VAnK(YKHO):\n if YKHO._daemon:\n return YKHO._daemon.listen_port\n return None",
"def bIwZ(YKHO):\n if len(YKHO._listeners) > 1:\n raise RuntimeError('Cannot get port because this server has more than 1 listeners.')\n try:\n DN9V = YKHO.listeners[0]\n return DN9V.port\... | [
"0.8668176",
"0.84233874",
"0.8399415",
"0.8379612",
"0.82676923",
"0.82611465",
"0.81525385",
"0.81468034",
"0.81468034",
"0.81468034",
"0.8112704",
"0.8097237",
"0.8097237",
"0.80545056",
"0.8043282",
"0.8024624",
"0.8024624",
"0.8024624",
"0.8024624",
"0.8024624",
"0.80246... | 0.7867443 | 45 |
Return a port to use to talk to this cluster. | def i44Y(YKHO):
if len(YKHO.client_nodes) > 0:
Q6kx = YKHO.client_nodes[0]
else:
Q6kx = YKHO.nodes[0]
return Q6kx.get_port() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i44Y(YKHO):\n return YKHO.socket.getsockname()[1]",
"def bIwZ(YKHO) -> int:\n return qe4Y.get(YKHO, 'port')",
"def bIwZ(YKHO) -> int:\n return qe4Y.get(YKHO, 'port')",
"def bIwZ(YKHO) -> int:\n return qe4Y.get(YKHO, 'port')",
"def bIwZ(YKHO) -> int:\n return qe4Y.get(YKHO, 'port')",
"d... | [
"0.7949289",
"0.7937549",
"0.7937549",
"0.7937549",
"0.7937549",
"0.7937549",
"0.7937549",
"0.7937549",
"0.7937549",
"0.7937549",
"0.7937549",
"0.7937549",
"0.7937549",
"0.7937549",
"0.7937549",
"0.7937549",
"0.7898127",
"0.7898127",
"0.7898127",
"0.7879094",
"0.786213",
"0... | 0.81583613 | 0 |
Convert the current Credentials object into an access token. | def VgoY():
if Vt89 is None:
raise yS9A.exceptions.MissingCredentials('No credentials to convert into a token.')
return Vt89.token_response | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VgoY(YKHO):\n if not YKHO.access_token:\n YKHO.establish({'grant_type': 'client_credentials'})\n return YKHO.access_token",
"def gNTt(YKHO):\n return VuvO(YKHO._token)",
"def to2L(YKHO):\n dWDt = '%s:%s' % (YKHO.consumer_key, YKHO.consumer_secret)\n TlzB = WR89.b64encode(dWDt.encode('... | [
"0.73715365",
"0.73543817",
"0.7255772",
"0.7211549",
"0.7152262",
"0.69926304",
"0.6969133",
"0.6923403",
"0.6921541",
"0.69120675",
"0.6825136",
"0.67929846",
"0.6784748",
"0.67789155",
"0.67705846",
"0.6752144",
"0.6696458",
"0.66929984",
"0.6689336",
"0.6689336",
"0.66703... | 0.7727377 | 0 |
Create a User object with the global properties. | def TKWP():
return yS9A.user.User(zb3C, Cxz5, vSyi, app_scope=rrBf, credentials_storage=pKHv, user_credentials=Vt89) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vbsz(YKHO):\n CBIr = mv1M(YKHO.data['username'], YKHO.data['password'], YKHO.data['email'])\n YKHO._set_common_attributes(CBIr)\n YKHO.user = CBIr\n return CBIr",
"def vbsz(YKHO):\n CBIr = mv1M(username=YKHO.data['username'], email=YKHO.data['email'], password=YKHO.data['password'])\n YKHO.... | [
"0.8020993",
"0.7871882",
"0.7495919",
"0.7460375",
"0.7448015",
"0.7295106",
"0.7280347",
"0.72165704",
"0.7182165",
"0.7170813",
"0.7117247",
"0.70907205",
"0.70873624",
"0.7080971",
"0.70730984",
"0.7065432",
"0.70541495",
"0.7044769",
"0.7044769",
"0.70424765",
"0.7041057... | 0.0 | -1 |
Returns a html string version representing a reward. | def _1tc(YKHO, BWXx, AIu6):
return AIu6.get_html | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vOGg(_6uB):\n nPrm = FYrf.Reward.query.get(_6uB)\n if not nPrm:\n return TvZl('404.html', thing='Reward')\n return TvZl('rewards_instance.html', data=nPrm)",
"def nFcm(YKHO):\n return YKHO.reward",
"def vOGg(YKHO):\n return YKHO._reward",
"def Jc_J(YKHO):\n pass",
"def Jc_J(YKH... | [
"0.66660213",
"0.6614615",
"0.6589195",
"0.63853306",
"0.63853306",
"0.6271876",
"0.62661815",
"0.62070775",
"0.6176418",
"0.6173967",
"0.6131741",
"0.61085236",
"0.60845214",
"0.6076203",
"0.60602754",
"0.604486",
"0.60416377",
"0.60414475",
"0.6025853",
"0.6015532",
"0.6007... | 0.0 | -1 |
Gets the list of column names for the generated data tables. | def fIGK(YKHO):
mrZR(YKHO, 'is_fitted_')
return YKHO.feature_names_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Txl5(YKHO):\n return YKHO.implementation.col_names",
"def Txl5(Emd4):\n return Emd4.__table__.columns.keys()",
"def Txl5(YKHO):\n if YKHO._data is not None:\n return [WKvO for WKvO in YKHO._data.header()]\n else:\n return []",
"def NKcn(YKHO) -> x1iM[str]:\n return YKHO.resul... | [
"0.8202278",
"0.80931246",
"0.80467516",
"0.8037401",
"0.80066895",
"0.7993568",
"0.79372543",
"0.79328346",
"0.79067934",
"0.7841339",
"0.7830707",
"0.7830699",
"0.78175044",
"0.7812887",
"0.7800172",
"0.77937996",
"0.7782349",
"0.7777582",
"0.7771219",
"0.77673674",
"0.7766... | 0.0 | -1 |
Parse playlist id from url | def x7fF(bD7m):
r8hN = ZbWC.search('list=([\\w\\-_]+)', bD7m)
if r8hN is None:
return bD7m
else:
return r8hN.group(1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M8UU(bD7m):\n return XLzG(bD7m, 'list') or XLzG(bD7m, 'p')",
"def yofv(NvAR):\n return NvAR.id.text.split('/')[-1]",
"def xVL0(bD7m: str) -> str:\n return bD7m[bD7m.rindex('=') + 1:]",
"def m81w(bD7m):\n if not bD7m:\n return 0\n return bD7m.split('?key=')[1].split('&')[0].split('#'... | [
"0.84230244",
"0.80042726",
"0.7773864",
"0.7255218",
"0.7211807",
"0.7152251",
"0.70866996",
"0.6905758",
"0.68524206",
"0.6833714",
"0.68128157",
"0.67888445",
"0.676793",
"0.67675734",
"0.6733685",
"0.67250955",
"0.6697171",
"0.66906106",
"0.66702616",
"0.66380644",
"0.662... | 0.8993969 | 0 |
Capper outlier into 1.5 IQR or 0.5 IQR. | def FIMM(YKHO, kc1W: List[str], J3uN: str='right', YhDe: float=1.5, phF2: bool=False, bBj7: str='outlier', ReNU: bool=False):
if not isinstance(kc1W, list):
raise ValueError('variables should be a list')
YKHO.variables = kc1W
YKHO.tail = J3uN
YKHO.outlier_mark = phF2
YKHO.mark_suffix = bBj7
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MDwJ(WKvO):\n WKvO = list(filter(lambda epBp: not rLdf.isnull(epBp), WKvO))\n hbUd = oyIN.percentile(WKvO, 25)\n iv7Q = oyIN.percentile(WKvO, 75)\n AUbx = iv7Q - hbUd\n LSh8 = hbUd - 1.5 * AUbx\n CN9P = iv7Q + 1.5 * AUbx\n return (LSh8, CN9P)",
"def J9f7(UShr, iUrJ):\n for YRbF in ran... | [
"0.6523572",
"0.64666486",
"0.64595485",
"0.6403238",
"0.63741785",
"0.6369994",
"0.63500935",
"0.63405573",
"0.6280529",
"0.6222939",
"0.61881655",
"0.61580753",
"0.61533606",
"0.6115036",
"0.6045184",
"0.60098344",
"0.59985536",
"0.5944384",
"0.5943793",
"0.5941543",
"0.592... | 0.0 | -1 |
head The linked list's head. Note that the head is guaranteed to be not null, so it contains at least one node. | def FIMM(YKHO, sdCG):
import random
YKHO._head = sdCG
YKHO._cur = sdCG
YKHO._rand = random.Random() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sdCG(YKHO, Q6kx=None):\n if Q6kx:\n assert type(Q6kx) == o7DN\n YKHO._head = Q6kx",
"def sdCG(YKHO) -> Msxl:\n raise NotImplementedError",
"def qHHo(YKHO):\n return YKHO.head",
"def _IVA(YKHO):\n if YKHO.head is None:\n return None\n if YKHO.head.nextNode is None:\n ... | [
"0.7639665",
"0.75453496",
"0.7467349",
"0.7409107",
"0.73920614",
"0.737027",
"0.7362893",
"0.71597815",
"0.7138405",
"0.69521016",
"0.69521016",
"0.69521016",
"0.69521016",
"0.692922",
"0.69185627",
"0.689758",
"0.68678737",
"0.6849195",
"0.67803586",
"0.67584294",
"0.67482... | 0.0 | -1 |
Returns a random node's value. | def UIrZ(YKHO):
while True:
if YKHO._rand.randint(0, 1) == 0:
return YKHO._cur.val
else:
YKHO._cur = YKHO._cur.next
if not YKHO._cur:
YKHO._cur = YKHO._head | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RjKZ(YKHO):\n return YKHO[YKHO.random_key()]",
"def UIrZ(YKHO):\n Q6kx = YKHO.head\n from random import randint\n for YRbF in Ni9Y(randint(0, YKHO.len - 1)):\n Q6kx = Q6kx.next\n return Q6kx.val",
"def ALfI(YKHO):\n return tuKI.randint(1, 10)",
"def RHmZ(YKHO):\n return YKHO.V... | [
"0.7683627",
"0.765839",
"0.74031866",
"0.738855",
"0.7353973",
"0.7183241",
"0.70771766",
"0.7077015",
"0.702326",
"0.699212",
"0.6940177",
"0.6889105",
"0.6845422",
"0.6834654",
"0.68165374",
"0.67828757",
"0.67084455",
"0.6703253",
"0.6688887",
"0.664814",
"0.66145146",
... | 0.6192273 | 77 |
r""" The the negative loglikelihood for the model, if it was fit with the ``fit()`` method. Not available if fit with the ``from_params()`` method. Returns | def ujKW(YKHO):
if not hasattr(YKHO, 'data'):
raise ValueError('Must have been fit with data')
return YKHO._neg_ll | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uevV(C3ST, WKvO):\n return C3ST.neg_log_likelihood(WKvO).item()",
"def u3Vg(YKHO, LVAh):\n return -Kt_s.mean(Kt_s.log(YKHO.p_y_given_x)[Kt_s.arange(LVAh.shape[0]), LVAh])",
"def u3Vg(YKHO, LVAh):\n return -Kt_s.mean(Kt_s.log(YKHO.p_y_given_x)[Kt_s.arange(LVAh.shape[0]), LVAh])",
"def u3Vg(YKHO, ... | [
"0.8191241",
"0.7693045",
"0.7676974",
"0.7676974",
"0.7666127",
"0.7666127",
"0.76181227",
"0.7595948",
"0.75859904",
"0.7585524",
"0.7567764",
"0.75547165",
"0.75359917",
"0.7523363",
"0.7420783",
"0.7339383",
"0.732433",
"0.7323337",
"0.7305801",
"0.72822416",
"0.72636086"... | 0.6874134 | 34 |
Adds an X to the specified tile. Throws an exception if the tile is occupied. | def P15d(YKHO, eL5z):
if YKHO.board[eL5z] == ' ':
YKHO.board[eL5z] = 'X'
YKHO.last_move = eL5z
YKHO.current_player = 'O'
else:
raise ValueError('Tile ' + str(eL5z) + ' is already occupied!') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XM9F(YKHO, WKvO, LVAh, eL5z):\n if 0 < WKvO < YKHO.width and 0 < LVAh < YKHO.height:\n YKHO.tiles[WKvO + 1][LVAh + 1] = eL5z",
"def hZPM(YKHO, rdlD, fvDH, eL5z):\n YKHO._check_next_to_existing_tile(rdlD, fvDH)\n if YKHO.board[rdlD][fvDH] is not None:\n raise IndexError('There is alread... | [
"0.7382496",
"0.6993224",
"0.6832429",
"0.66471124",
"0.6483628",
"0.64594096",
"0.63656586",
"0.6234468",
"0.60856134",
"0.60296905",
"0.6029642",
"0.6003464",
"0.5997388",
"0.58443445",
"0.58339137",
"0.58147734",
"0.5805117",
"0.5799288",
"0.5772908",
"0.5737935",
"0.57307... | 0.68475074 | 2 |
Returns true if every tile on the board is occupied. | def LWCs(YKHO):
for wEf2 in YKHO.board:
if wEf2 == ' ':
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LWCs(YKHO):\n for LVAh in range(8):\n for WKvO in range(8):\n if YKHO.board[WKvO][LVAh] == KAvf:\n return False\n return True",
"def LWCs(YKHO):\n for LVAh in range(8):\n for WKvO in range(8):\n if YKHO.board[WKvO][LVAh] == KAvf:\n re... | [
"0.7830143",
"0.7830143",
"0.7756129",
"0.7687618",
"0.7676412",
"0.7647907",
"0.76013947",
"0.75929284",
"0.7576555",
"0.7570874",
"0.7562086",
"0.7550124",
"0.7527669",
"0.7503438",
"0.7501986",
"0.75019366",
"0.74900943",
"0.7488468",
"0.7476476",
"0.744969",
"0.74489015",... | 0.0 | -1 |
Get class imbalance for all the target variables. | def _xRJ(NGFj):
jqQq = NGFj.apply(lambda WKvO: WKvO.value_counts()).transpose().values.tolist()
jqQq = dict(zip(NGFj.columns.tolist(), jqQq))
return jqQq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PGfh(tk5Y):\n jqQq = RQEd[tk5Y]\n return {0: 1.0, 1: 1 / jqQq}",
"def XgjQ(YKHO):\n return YKHO._parms.get('balance_classes')",
"def LP18(YKHO):\n osy0 = FJiT.compute_class_weight('balanced', oyIN.unique(YKHO.labels), YKHO.labels)\n return {0: osy0[0], 1: osy0[1]}",
"def Au0z(LVAh):\n r... | [
"0.6689532",
"0.6541693",
"0.64682406",
"0.64347976",
"0.64131683",
"0.6397405",
"0.6333347",
"0.61376095",
"0.6040545",
"0.60140884",
"0.59470195",
"0.59470195",
"0.5895245",
"0.5807777",
"0.5774619",
"0.57342935",
"0.57201785",
"0.5689408",
"0.56848806",
"0.5681896",
"0.566... | 0.6646304 | 1 |
Method to return mean of a list or equivalent array with NaN values | def WidE(Uqbu):
if len(Uqbu) > 0:
return oyIN.mean(Uqbu)
return oyIN.nan | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def li5B(fUYa):\n return oyIN.mean(fUYa) if fUYa else oyIN.nan",
"def li5B(fUYa):\n return oyIN.mean(fUYa) if fUYa else oyIN.nan",
"def gu3T(ezWE):\n return oyIN.nan if len(ezWE) == 0 else oyIN.mean(ezWE)",
"def gu3T(ezWE):\n return oyIN.nan if len(ezWE) == 0 else oyIN.mean(ezWE)",
"def LGX7(ez... | [
"0.83274335",
"0.83274335",
"0.83102345",
"0.83102345",
"0.8176321",
"0.81687486",
"0.7999402",
"0.78921556",
"0.77274877",
"0.7645164",
"0.7566354",
"0.7483417",
"0.7450515",
"0.7370338",
"0.7370338",
"0.73539805",
"0.73469657",
"0.73436666",
"0.7341239",
"0.7323111",
"0.732... | 0.76640517 | 9 |