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 |
|---|---|---|---|---|---|---|
Return x with the lowest set bit shifted to the kth bit. bit_array has only the kth bit set high indicating the bit to shift to. If there are no 1's. return 0. This can use shift_trailing_zeros() on x first because the lost 0's will be shifted back in. | def eLDi(WKvO, mRnc):
return dh6q(WKvO) * mRnc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RWEF(WKvO, G1Hx):\n return dh6q(WKvO) << G1Hx",
"def ZZ_c(WKvO, G1Hx):\n if WKvO == -1:\n return -1\n return (WKvO << G1Hx) // oJjO(WKvO)",
"def uWbJ(WKvO, G1Hx, zNig, vgXP=0):\n ANfV = WKvO >> vgXP\n ANfV >>= G1Hx * zNig\n return nVyT(ANfV, zNig)",
"def ZeYs(WKvO, G1Hx):\n if... | [
"0.81172955",
"0.7688981",
"0.7221767",
"0.7165726",
"0.7140687",
"0.6981214",
"0.68823075",
"0.6547663",
"0.6175876",
"0.6038623",
"0.5869019",
"0.58094484",
"0.5802688",
"0.5698221",
"0.568577",
"0.5653078",
"0.56424487",
"0.56420314",
"0.56406707",
"0.56187147",
"0.5579268... | 0.7484894 | 2 |
Return x with the lowest unset bit shifted to the kth bit. bit_array has only the kth bit set high indicating the bit to shift to. If there are no 0's, return 1. This can't use shift_trailing_ones() on x first because the ones will be lost. | def xPUT(WKvO, mRnc):
if WKvO == -1:
return -1
return WKvO * mRnc // oJjO(WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZZ_c(WKvO, G1Hx):\n if WKvO == -1:\n return -1\n return (WKvO << G1Hx) // oJjO(WKvO)",
"def RWEF(WKvO, G1Hx):\n return dh6q(WKvO) << G1Hx",
"def eLDi(WKvO, mRnc):\n return dh6q(WKvO) * mRnc",
"def uWbJ(WKvO, G1Hx, zNig, vgXP=0):\n ANfV = WKvO >> vgXP\n ANfV >>= G1Hx * zNig\n r... | [
"0.7939114",
"0.789853",
"0.7225687",
"0.6905573",
"0.6852066",
"0.6777691",
"0.6731593",
"0.6451681",
"0.6411547",
"0.6312433",
"0.61930674",
"0.6171824",
"0.6095062",
"0.60880286",
"0.6077317",
"0.6030845",
"0.590784",
"0.5901963",
"0.58643866",
"0.5847911",
"0.5844721",
... | 0.7388597 | 2 |
Find sequences of bits, 01, in x starting from the least significant bit and return a number with the 1 bits set high. | def dIRn(WKvO):
return Y2wf(WKvO) & WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mtmh(WKvO):\n mRnc = g8tW(WKvO, dIRn)\n if mRnc == 0:\n return WKvO\n LSh8, CN9P = ReU8(WKvO, mRnc)\n CN9P = W2iF(CN9P, mRnc)\n LSh8 = dh6q(LSh8)\n return CN9P | LSh8",
"def Y83U(WKvO):\n return WKvO & -WKvO",
"def g8tW(WKvO, Tcc0):\n mRnc = Tcc0(WKvO)\n return Y83U(mRnc)"... | [
"0.7067788",
"0.6807962",
"0.66411763",
"0.6602308",
"0.656842",
"0.65238315",
"0.64827526",
"0.6478186",
"0.64742464",
"0.6446635",
"0.6436172",
"0.64166176",
"0.6236039",
"0.6222962",
"0.61953443",
"0.6134106",
"0.6086654",
"0.60725296",
"0.605937",
"0.605937",
"0.60149497"... | 0.7280907 | 0 |
Find sequences of bits, 10, in x starting from the least significant bit and return a number with the 0 bits set high. | def DOLK(WKvO):
return Y2wf(WKvO) & WKvO >> 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y83U(WKvO):\n return WKvO & -WKvO",
"def XRWj(WKvO):\n mRnc = g8tW(WKvO, DOLK)\n if mRnc == 0:\n return WKvO\n LSh8, CN9P = ReU8(WKvO, mRnc)\n CN9P = W2iF(CN9P, mRnc)\n LSh8 = xPUT(LSh8, mRnc)\n return CN9P | LSh8",
"def oJjO(WKvO):\n return ~WKvO & WKvO + 1",
"def dhX8(WKv... | [
"0.6799342",
"0.67721915",
"0.6709165",
"0.66752625",
"0.66603327",
"0.6521347",
"0.6510911",
"0.6496508",
"0.6432418",
"0.6422279",
"0.6361035",
"0.6285963",
"0.62601966",
"0.62506896",
"0.62037855",
"0.6173778",
"0.6156148",
"0.61365587",
"0.61226743",
"0.61226743",
"0.6076... | 0.69844764 | 0 |
Return the closest number greater than x that has the same number of bits set high as x. | def mtmh(WKvO):
mRnc = g8tW(WKvO, dIRn)
if mRnc == 0:
return WKvO
LSh8, CN9P = ReU8(WKvO, mRnc)
CN9P = W2iF(CN9P, mRnc)
LSh8 = dh6q(LSh8)
return CN9P | LSh8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hzxu(WKvO: int) -> int:\n LVAh = 2\n while LVAh < WKvO:\n LVAh *= 2\n return LVAh",
"def UoNd(WKvO):\n return 1 << (WKvO - 1).bit_length()",
"def c5uG(jzdc, WKvO):\n YRbF = eEIR(jzdc, WKvO)\n if YRbF:\n return jzdc[YRbF - 1]\n raise ValueError",
"def Y83U(WKvO):\n re... | [
"0.7382637",
"0.7208239",
"0.68005097",
"0.6641018",
"0.6571517",
"0.647815",
"0.64246887",
"0.64161813",
"0.641301",
"0.63992244",
"0.63894033",
"0.6264416",
"0.6261741",
"0.6231588",
"0.61394876",
"0.6111848",
"0.6108794",
"0.6096718",
"0.6094866",
"0.60071176",
"0.5988731"... | 0.52831644 | 95 |
Return the closest number less than x that has the same number of bits set high as x. | def XRWj(WKvO):
mRnc = g8tW(WKvO, DOLK)
if mRnc == 0:
return WKvO
LSh8, CN9P = ReU8(WKvO, mRnc)
CN9P = W2iF(CN9P, mRnc)
LSh8 = xPUT(LSh8, mRnc)
return CN9P | LSh8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hzxu(WKvO: int) -> int:\n LVAh = 2\n while LVAh < WKvO:\n LVAh *= 2\n return LVAh",
"def UoNd(WKvO):\n return 1 << (WKvO - 1).bit_length()",
"def c5uG(jzdc, WKvO):\n YRbF = eEIR(jzdc, WKvO)\n if YRbF:\n return jzdc[YRbF - 1]\n raise ValueError",
"def Y83U(WKvO):\n re... | [
"0.74601287",
"0.74266887",
"0.7062916",
"0.7020456",
"0.6894633",
"0.68437254",
"0.6745738",
"0.6735366",
"0.67120916",
"0.64814717",
"0.639336",
"0.634387",
"0.63037914",
"0.628311",
"0.6223773",
"0.62043256",
"0.62005055",
"0.6175473",
"0.61514",
"0.61512804",
"0.61501306"... | 0.62332255 | 14 |
Given an x, This will find and cache all solutions of numbers less than x if they haven't already been cached. Only works for x that is a power of 2 (single 1 bit). | def DMIq(WKvO):
nonlocal max_shift_amount
if WKvO in yYxq:
return yYxq[WKvO]
while True:
QI1n = 1 << rq0x
yYxq[QI1n] = rq0x
rq0x += 1
if WKvO == QI1n:
return yYxq[WKvO] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MSil(WKvO):\n for YRbF in range(2, P8oC(WKvO) // 2 + 1):\n if P8oC(WKvO) % YRbF == 0:\n ycBG = P8oC(WKvO)\n exwG = 0\n I1mm = True\n while ycBG > 1:\n if ycBG % YRbF != 0:\n I1mm = False\n break\n ... | [
"0.6436152",
"0.6280868",
"0.6183297",
"0.6064172",
"0.6013688",
"0.5996035",
"0.597075",
"0.59644026",
"0.5933635",
"0.5919297",
"0.5878202",
"0.58426046",
"0.5817578",
"0.5813716",
"0.5774956",
"0.5702751",
"0.55902684",
"0.5587255",
"0.5564748",
"0.5549887",
"0.5536584",
... | 0.0 | -1 |
A vectorized version of diagonal. | def jze1(r8hN: NumpyRealArray) -> VDAH:
_0VL = (..., *oyIN.diag_indices(r8hN.shape[-1]))
RI88 = oyIN.zeros((*r8hN.shape, r8hN.shape[-1]), dtype=r8hN.dtype)
RI88[_0VL] = r8hN
return RI88 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IjIm(Csk6, jDK_=0):\n assert Csk6.ndim == 1\n exwG = Csk6.shape[0]\n WXkz = lambda WKvO: Csk6 * WKvO\n uPnQ = lambda WKvO: eeRW(Csk6) * WKvO\n WXkz, uPnQ = v3T1(WXkz, uPnQ, jDK_)\n return uS0y(times=WXkz, trans=uPnQ, shape=(exwG, exwG))",
"def IjIm(fHgE):\n assert fHgE.ndim == 2, 'diagon... | [
"0.7215263",
"0.7009191",
"0.687507",
"0.68659997",
"0.6804924",
"0.67363244",
"0.66762465",
"0.66440356",
"0.6598403",
"0.6585263",
"0.6561734",
"0.6537138",
"0.65280956",
"0.6485395",
"0.6474084",
"0.6469136",
"0.645229",
"0.64253366",
"0.6413358",
"0.63867694",
"0.63797414... | 0.67265254 | 6 |
Returns the real component of the dot product of the final n_axes axes of two arrays. | def i1tz(WKvO: JaxComplexArray, LVAh: JaxComplexArray, xftY: int) -> UKN8:
MPlV = tuple(range(-xftY, 0))
return oLG2.sum(WKvO * LVAh, axis=MPlV).real | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r_iz(YKHO, MPlV):\n return lambda jzdc, Fg_i: rPnw(jzdc, Fg_i, MPlV)",
"def BJ1H(jzdc, Fg_i):\n jzdc, Fg_i = (uM5J(jzdc), uM5J(Fg_i))\n if jzdc.ndim == 0 or Fg_i.ndim == 0:\n return jzdc * Fg_i\n elif jzdc.ndim > 2 or Fg_i.ndim > 2:\n return rPnw(jzdc, Fg_i, [[jzdc.ndim - 1], [XTiz.... | [
"0.63890517",
"0.6281363",
"0.6116413",
"0.6088469",
"0.6030557",
"0.5830254",
"0.5714325",
"0.56336206",
"0.5619733",
"0.55603635",
"0.5538593",
"0.5524472",
"0.5476481",
"0.5462024",
"0.54237205",
"0.5400313",
"0.53729576",
"0.53461784",
"0.53461784",
"0.5345192",
"0.534224... | 0.6892021 | 0 |
Compute the elementwise softthresholding operator on the vector w. | def TRLC(yzQ0, Cwt5):
return oyIN.sign(yzQ0) * oyIN.clip(oyIN.abs(yzQ0) - Cwt5, 0.0, oyIN.inf) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AA31(YKHO, upAO, vtMg):\n if upAO > vtMg:\n Aofo = upAO - vtMg\n elif abs(upAO) <= vtMg:\n Aofo = 0\n else:\n Aofo = upAO + vtMg\n return Aofo",
"def AA31(EcVT, gwAu):\n XYLA = (oyIN.abs(EcVT) > gwAu).astype('int')\n vV8Y = oyIN.sign(EcVT) * (oyIN.abs(EcVT) - gwAu) * XY... | [
"0.7283324",
"0.69554687",
"0.6854548",
"0.66052395",
"0.6520113",
"0.6390546",
"0.6345883",
"0.6298518",
"0.6242295",
"0.6129075",
"0.6112855",
"0.6098119",
"0.6092725",
"0.6007954",
"0.5985637",
"0.59853303",
"0.5948113",
"0.59381634",
"0.5815257",
"0.5803847",
"0.57240176"... | 0.81232566 | 0 |
Compute maximum value for the trace norm regularization parameter. | def HWPJ(EcVT, fuBA, N77f='square'):
if N77f.lower() == 'square':
return oyIN.linalg.norm(oyIN.dot(EcVT.T, fuBA), ord=2) * (2.0 / EcVT.shape[0])
else:
print('Only square loss implemented so far.')
HwRy.exit(-1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wTln() -> float:\n return 1.0",
"def QPL5(YKHO, f0BO=None):\n\n def MMxd(WKvO):\n return WKvO.max(axis=0)\n return YKHO.utility(MMxd, f0BO)",
"def wTln(eHNT):\n return Ci05(eHNT.rep, eHNT.lev, eHNT.dom)",
"def QPL5(qmcA=7):\n _mSQ = [Ty9i for Ty9i in ZylS.global_variables() if 'weig... | [
"0.73656726",
"0.7131809",
"0.7083843",
"0.70287853",
"0.69845635",
"0.6632864",
"0.6630386",
"0.6597505",
"0.6554116",
"0.65443385",
"0.64960605",
"0.6490095",
"0.64217657",
"0.6371413",
"0.63578606",
"0.6338208",
"0.6316915",
"0.63031405",
"0.6301157",
"0.62781334",
"0.6276... | 0.5947133 | 53 |
Compute maximum value for the l12norm regularization parameter. | def ksWH(EcVT, fuBA, N77f='square'):
if N77f.lower() == 'square':
XsBg = map(lambda WKvO: oyIN.linalg.norm(WKvO, ord=2), EcVT.T.dot(fuBA))
return oyIN.max(XsBg) * (2.0 / EcVT.shape[0])
else:
print('Only square loss implemented so far.')
HwRy.exit(-1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wTln(eHNT):\n return Ci05(eHNT.rep, eHNT.lev, eHNT.dom)",
"def wTln() -> float:\n return 1.0",
"def M6b5(iArr):\n return pEuX.norm(iArr, oyIN.inf)",
"def QPL5(YKHO, f0BO=None):\n\n def MMxd(WKvO):\n return WKvO.max(axis=0)\n return YKHO.utility(MMxd, f0BO)",
"def rwK9(YKHO) -> _AB... | [
"0.67367584",
"0.67348397",
"0.6438151",
"0.6377424",
"0.6288572",
"0.6271007",
"0.622749",
"0.6114743",
"0.6109041",
"0.61051977",
"0.6056785",
"0.6024102",
"0.6010985",
"0.59682924",
"0.5961959",
"0.59512526",
"0.5951213",
"0.5949743",
"0.59294295",
"0.59080696",
"0.5888073... | 0.5701254 | 37 |
Calculate cost to connect start value to end value. Cost function can vary. For [x, y], can use L2 distance For [x, y, theta], can use length of dubins curve connecting the two points For now, we will be using np.array([x, y]) and cost function L2 Euclidean distance. | def sSN_(YKHO, kLRn, OEGN):
sSN_ = oyIN.linalg.norm(kLRn - OEGN)
return sSN_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N8S6(nPrm, K0dj, OE8J):\n EBgd = Mcvp(nPrm, K0dj)\n HpuQ = Mcvp(nPrm, OE8J)\n return T97B(EBgd, HpuQ)",
"def Y76u(YKHO, Jw7X, eUWA):\n YKHO.distance += oyIN.sqrt(Jw7X ** 2 + eUWA ** 2)",
"def UM2M(WKvO, LVAh, q7In=[[0], [0]]):\n r8hN = LVAh.size\n MKlR = WKvO.dot(q7In)\n r845 = 1 / (2 ... | [
"0.72530705",
"0.6578667",
"0.6506388",
"0.6407017",
"0.6351846",
"0.63484657",
"0.6341274",
"0.62276214",
"0.61651635",
"0.61512995",
"0.6129583",
"0.61264396",
"0.6097981",
"0.60950077",
"0.6066673",
"0.60149354",
"0.59684277",
"0.5947067",
"0.5877823",
"0.58756137",
"0.587... | 0.722262 | 1 |
Wraps hidden states in new Tensors, to detach them from their history. This prevents Pytorch from trying to backpropagate into previous input sequences when we use the final hidden states from one minibatch as the initial hidden states for the next minibatch. Using the final hidden states in this way makes sense when t... | def IOWm(MKlR):
if isinstance(MKlR, iQnE):
return MKlR.detach_()
else:
return tuple((IOWm(Ty9i) for Ty9i in MKlR)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def It5M(YKHO, Zode, qxoj):\n if YKHO.rnn_type in ['lstm', 'mylstm']:\n MKlR = iQnE(Zode[0].data)\n Z9rn = iQnE(Zode[1].data)\n Zode = (MKlR, Z9rn)\n for Fg_i, I1mm in enumerate(qxoj):\n if I1mm.data[0] == 1:\n Zode[0][:, Fg_i, :].data.fill_(0)\n ... | [
"0.6448909",
"0.64456254",
"0.64244694",
"0.64038134",
"0.6347175",
"0.6340041",
"0.6335212",
"0.6257508",
"0.6257508",
"0.62368643",
"0.622279",
"0.622279",
"0.6170131",
"0.6170131",
"0.61517733",
"0.60893285",
"0.60880107",
"0.6062792",
"0.60229635",
"0.5956902",
"0.5893305... | 0.0 | -1 |
CNN 2 Model in the paper. | def XUyg(kACu, YDYE=ZylS.nn.relu, hr1G=1):
DKiA = [1, 5, Qi3c, hNpG]
eJxc = [2, 7, hNpG, ZxjL]
j2cC = yIp6(kACu, DKiA, YDYE, 'conv_1', hr1G)
I7zk = yIp6(j2cC, eJxc, YDYE, 'conv_2', hr1G)
PWgb = ZylS.reshape(I7zk, [Ep8u, TVTK * H2v2 * ZxjL])
OCat = Zode(PWgb, YDYE, 'hidden_1', VqWm, hr1G)
KeL... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E3TQ():\n JxU2 = 0.1\n C3ST = ileL()\n C3ST.add(l6ZH(512, activation='relu'))\n C3ST.add(lARV(JxU2))\n C3ST.add(l6ZH(1024, activation='relu'))\n C3ST.add(lARV(JxU2))\n C3ST.add(l6ZH(2048, activation='relu'))\n C3ST.add(lARV(JxU2))\n C3ST.add(l6ZH(2048, activation='relu'))\n C3ST.a... | [
"0.7059993",
"0.7035406",
"0.70304734",
"0.69980437",
"0.6958508",
"0.68194216",
"0.6810173",
"0.68030936",
"0.6790007",
"0.67856807",
"0.67842877",
"0.67632467",
"0.6749917",
"0.67450583",
"0.6742506",
"0.6734817",
"0.67202723",
"0.6717157",
"0.6626205",
"0.6622502",
"0.6621... | 0.64053595 | 48 |
Plot the confusion matrix. | def LwSz(QUkc, Crrw=[], leAC='调制识别混淆矩阵', iMGt=Bcwd.Blues, mWFP=None):
QrM1.figure(figsize=[7, 6], dpi=160)
QrM1.imshow(QUkc, interpolation='nearest', cmap=iMGt, origin='upper')
QrM1.title(leAC)
QrM1.colorbar()
wIWT = oyIN.arange(len(Crrw))
QrM1.xticks(wIWT, Crrw, rotation=45)
QrM1.yticks(wIW... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(YKHO):\n pTn1 = beib.from_learner(YKHO.learn)\n pTn1.plot_confusion_matrix()",
"def kj9G(YKHO):\n QrM1.imshow(YKHO.cm, interpolation='nearest', cmap=YKHO.cmap)\n QrM1.title(YKHO.title)\n QrM1.colorbar()\n wIWT = oyIN.arange(len(YKHO.classes))\n QrM1.xticks(wIWT, YKHO.classes, rotati... | [
"0.8464174",
"0.79953337",
"0.7816915",
"0.7794347",
"0.7793309",
"0.77618045",
"0.7748698",
"0.77338606",
"0.77322257",
"0.77011275",
"0.76877314",
"0.7684856",
"0.76831055",
"0.76309496",
"0.7626916",
"0.76258564",
"0.7621189",
"0.75915456",
"0.75862384",
"0.7585726",
"0.75... | 0.0 | -1 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(T04j, YKHO).__init__(*qIxc, **c_sp)
if YKHO.numberOfTSPTurtles is None:
YKHO.numberOfTSPTurtles = 0
else:
YKHO.numberOfTSPTurtles = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(JwGr, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.header is None:\n YKHO.header = kKAJ.msg.Header()\n if YKHO.cmd is None:\n YKHO.cmd = ''\n if YKHO.cat is None:\n YKHO.cat = ''\n else:\n ... | [
"0.7794795",
"0.77207875",
"0.77207875",
"0.7687243",
"0.7625947",
"0.7564293",
"0.7440383",
"0.74175525",
"0.7352349",
"0.7308313",
"0.72808266",
"0.72378874",
"0.722805",
"0.7225032",
"0.7225032",
"0.7219433",
"0.72120637",
"0.72120637",
"0.72120637",
"0.72120637",
"0.72120... | 0.6564535 | 89 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(pv94, YKHO).__init__(*qIxc, **c_sp)
if YKHO.tsp_turtles is None:
YKHO.tsp_turtles = ''
if YKHO.conveyor_turtle is None:
YKHO.conveyor_turtle = ''
if YKHO.catch_turtle is None:
YKHO.catch_turtle ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(JwGr, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.header is None:\n YKHO.header = kKAJ.msg.Header()\n if YKHO.cmd is None:\n YKHO.cmd = ''\n if YKHO.cat is None:\n YKHO.cat = ''\n else:\n ... | [
"0.77949476",
"0.7720804",
"0.7720804",
"0.7686951",
"0.762662",
"0.75640523",
"0.7440169",
"0.74174535",
"0.73515964",
"0.73084396",
"0.7280321",
"0.7237698",
"0.7227384",
"0.72244126",
"0.72244126",
"0.72194636",
"0.72119427",
"0.72119427",
"0.72119427",
"0.72119427",
"0.72... | 0.6732065 | 73 |
Calculates the number density using the ideal gas law. | def Z42X(CJ2p, ovGo, NSBB):
return CJ2p * NSBB / (sM89 * ovGo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def InLe(YKHO):\n return 0.001 * YKHO.molar_mass * YKHO.pressure / (K6Rf * YKHO.temperature)",
"def RHr8(YKHO, InLe):\n if InLe not in YKHO.potential_memo:\n if InLe == 0:\n YKHO.potential_memo[InLe] = 0\n else:\n jzdc = YKHO.a\n ZbiE = YKHO.x_0\n F... | [
"0.72561014",
"0.6696227",
"0.6667081",
"0.6640805",
"0.6626154",
"0.6593874",
"0.64964694",
"0.64902323",
"0.64877945",
"0.63533324",
"0.63363",
"0.6312357",
"0.6284719",
"0.6246474",
"0.623407",
"0.62214065",
"0.6205838",
"0.61807144",
"0.6172896",
"0.6155815",
"0.6124698",... | 0.5725933 | 63 |
Is the status code 400 if we post without any data? | def uF7X(YKHO):
geh0 = YKHO.app.post('/mq_message', data={})
assert geh0.status_code == 400 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s6Fd(YKHO):\n YKHO.assertEqual(YKHO._request({}), 400)",
"def _ef9():\n return c1Bu(400)",
"def VyLQ(YKHO):\n geh0 = YKHO.post(title='foo')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)",
"def m9Me(YKHO):\n Ylbp = YKHO.client().post('/api/actors', json={'name': 'should fa... | [
"0.750491",
"0.73863155",
"0.7355892",
"0.73534197",
"0.7331296",
"0.7330567",
"0.7297969",
"0.71257865",
"0.7054845",
"0.7014537",
"0.70054436",
"0.7002047",
"0.6960216",
"0.6948585",
"0.6922446",
"0.6895458",
"0.6850946",
"0.6826066",
"0.6817643",
"0.6814133",
"0.68131423",... | 0.7209504 | 7 |
Finds the Euclidian distance between the two parameter points | def vOdA(pbdw, A2BR):
ru4D = oyIN.subtract(pbdw, A2BR)
dFfD = oyIN.sum(oyIN.square(ru4D))
return pow(dFfD, 0.5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j3wi(ZbiE, CSPF, mOlj, ymxS):\n return PZyS((mOlj - ZbiE) ** 2 + (ymxS - CSPF) ** 2)",
"def XouW(o4D3, si3g, ajwV, skBL):\n Ayfi = PZyS(pow(o4D3 - ajwV, 2) + pow(si3g - skBL, 2))\n return Ayfi",
"def _ORZ(YKHO, o4D3, ajwV):\n jzdc = o4D3 - ajwV\n pHXX = jzdc ** 2\n Fg_i = oyIN.sum(pHXX, a... | [
"0.7960498",
"0.78928083",
"0.7785454",
"0.7676242",
"0.7666461",
"0.7628599",
"0.7609112",
"0.75887495",
"0.75618976",
"0.75503033",
"0.75190115",
"0.7502743",
"0.750103",
"0.74907225",
"0.746968",
"0.7459909",
"0.7441681",
"0.74408585",
"0.7430666",
"0.742604",
"0.7411086",... | 0.7470528 | 14 |
Returns EUL roll bytes. Signed 2 Bytes | def bFW8(YKHO):
gGGc = YKHO.i2c.mem_read(2, YKHO.addr, qS1i)
GI8f = YKHO.sign_val((gGGc[1] << 8) + gGGc[0]) / 16.0
return GI8f | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PR6O(YB8B, UHFx):\n return (YB8B << UHFx | YB8B >> 32 - UHFx) & 4294967295",
"def pwHU(YKHO):\n gGGc = YKHO.i2c.mem_read(2, YKHO.addr, T3O0)\n QqZF = YKHO.sign_val((gGGc[1] << 8) + gGGc[0]) / 16.0\n return QqZF",
"def v3Ei(YKHO):\n gGGc = YKHO.i2c.mem_read(2, YKHO.addr, nt7X)\n m2uI = YKH... | [
"0.6063012",
"0.5671296",
"0.5660172",
"0.55400217",
"0.54170233",
"0.53477025",
"0.524055",
"0.52218497",
"0.5178764",
"0.5167341",
"0.51383674",
"0.5123206",
"0.512267",
"0.51079863",
"0.5094285",
"0.50812393",
"0.5079368",
"0.5079368",
"0.5055572",
"0.5053211",
"0.50491834... | 0.73654693 | 0 |
__init__ method for Weapon class | def FIMM(YKHO, BH3N, oyg0):
YKHO.group = BH3N.all_sprites
YKHO.layer = oyg0.layer
a9eO.sprite.Sprite.__init__(YKHO)
YKHO.player = oyg0
YKHO.game = BH3N
YKHO.image = YKHO.game.imageLoader.item_img[YKHO.type].copy()
YKHO.cooldown = 20 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.weapon = mJgt()\n YKHO.armor = mzlL()",
"def Viyj(YKHO, xT8c):\n if xT8c:\n YKHO.weapon = xT8c(YKHO)",
"def FIMM(YKHO, mWFP, Rci7, ZnpV):\n YKHO.name = mWFP\n YKHO.location = Rci7\n YKHO.inventory = []\n YKHO.weapon = []\n YKHO.health = ZnpV",
"def FIMM(Y... | [
"0.8369462",
"0.80852693",
"0.7354432",
"0.71962255",
"0.7131528",
"0.71182716",
"0.7047111",
"0.69000477",
"0.683854",
"0.68075114",
"0.67831874",
"0.6773959",
"0.6754195",
"0.67423034",
"0.67218095",
"0.6703986",
"0.6679633",
"0.66365486",
"0.6624408",
"0.6594912",
"0.65944... | 0.67438895 | 13 |
Called on an iterator to retrieve the next element, or raise StopIteration if there is no next object. | def next(YKHO):
if YKHO._peeked is not None:
ei8N = YKHO._peeked
YKHO._peeked = None
return ei8N
else:
zFiD = YKHO.proc.stdout.readline()
if zFiD:
return zFiD[:-1]
else:
YKHO.returncode = YKHO.proc.returncode
raise StopIteration | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OPHn(YKHO):\n raise NotImplementedError('Iterator.get_next()')",
"def UDAb(YKHO):\n if YKHO._isDone():\n raise StopIteration\n return YKHO._next()",
"def next(YKHO):\n NlZ_ = YKHO.readentry()\n if NlZ_ is None:\n raise StopIteration\n return NlZ_",
"def UDAb(YKHO):\n re... | [
"0.8005501",
"0.78610206",
"0.7821305",
"0.77769256",
"0.77555794",
"0.7677116",
"0.765892",
"0.7594743",
"0.7568692",
"0.7558923",
"0.75551176",
"0.7552735",
"0.74972695",
"0.74184257",
"0.74184257",
"0.73977244",
"0.7383709",
"0.7310048",
"0.7306546",
"0.7249976",
"0.724997... | 0.0 | -1 |
Replaces all whitespace characters and replaces them with their ASCII variant, allowing for a query search. (just space, not tab or newline) | def jFgN(U1OF):
while U1OF.find(' ') != -1:
U1OF = U1OF.replace(' ', '%20')
return U1OF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F0pq(YKHO, l5Ny):\n return ''.join([YRbF if ord(YRbF) < 128 else ' ' for YRbF in l5Ny])",
"def yAYF(l5Ny):\n return fMIo.sub(' ', l5Ny.strip())",
"def T7vC(YKHO, KCHu):\n return KCHu.translate({ord(Z9rn): None for Z9rn in vIwR.whitespace})",
"def pTAa(l5Ny):\n return ZbWC.sub('[^\\\\x00-\\\\x... | [
"0.6900828",
"0.64218396",
"0.6414025",
"0.6405177",
"0.63530594",
"0.634496",
"0.63419527",
"0.6308276",
"0.6281117",
"0.6274982",
"0.6226063",
"0.6202998",
"0.6193327",
"0.61430776",
"0.61347425",
"0.6126422",
"0.6122954",
"0.6096532",
"0.60694104",
"0.6041178",
"0.59977245... | 0.64547974 | 1 |
Subtract this value from the observed magnitude to get the dereddened mags | def XSwQ(u3SZ, ulrI):
NNAR = ascii.read(cjSZ + '/stellar_param_data/sf11.txt')
assert ulrI in NNAR['filter'], (ulrI, NNAR['filter'])
return u3SZ * float(NNAR['AB_EBV'][oyIN.where(NNAR['filter'] == ulrI)[0]]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S04p(YKHO):\n raise NotImplementedError",
"def UMT5(YKHO):\n if not YKHO.has_target():\n raise AttributeError(\"No target defined, I can't get the distance\")\n return YKHO.mag - 5 * (oyIN.log10(YKHO.target.distmpc * 1000000.0) - 1)",
"def PKV0(YKHO):\n return YKHO.magnitude()",
"def Y... | [
"0.7099161",
"0.6983854",
"0.6963925",
"0.6914637",
"0.68374544",
"0.68124694",
"0.6752722",
"0.6706591",
"0.6634573",
"0.66089654",
"0.66069543",
"0.659518",
"0.65472317",
"0.65321046",
"0.6500544",
"0.6491778",
"0.6477429",
"0.6470317",
"0.6470317",
"0.64566755",
"0.6445291... | 0.0 | -1 |
Sets the service_vm_ovf_url of this VersionedDeploymentSpec. | def koo6(YKHO, koo6):
YKHO._service_vm_ovf_url = koo6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, koo6=None, aBjp=None, auGu=None, zf5p=None):\n YKHO._service_vm_ovf_url = None\n YKHO._package_stores = None\n YKHO._host_type = None\n YKHO._host_version = None\n YKHO.discriminator = None\n if koo6 is not None:\n YKHO.service_vm_ovf_url = koo6\n YKHO.package_stores = aB... | [
"0.59920865",
"0.49200514",
"0.49127284",
"0.48636636",
"0.48576945",
"0.48079467",
"0.48051295",
"0.47572348",
"0.47536737",
"0.4749729",
"0.47174475",
"0.47132197",
"0.46938968",
"0.46562898",
"0.46161318",
"0.46035483",
"0.45966738",
"0.45842794",
"0.45842794",
"0.45709077",... | 0.87879884 | 0 |
Sets the host_type of this VersionedDeploymentSpec. | def auGu(YKHO, auGu):
if auGu is None:
raise ValueError('Invalid value for `host_type`, must not be `None`')
BbPm = ['ESXI', 'RHELKVM', 'UBUNTUKVM']
if auGu not in BbPm:
raise ValueError('Invalid value for `host_type` ({0}), must be one of {1}'.format(auGu, BbPm))
YKHO._host_type = auGu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZZ7k(YKHO, ZZ7k):\n BbPm = ['Unknown', 'Hyper-V', 'ESXi']\n if YKHO.local_vars_configuration.client_side_validation and ZZ7k not in BbPm:\n raise ValueError('Invalid value for `hypervisor_type` ({0}), must be one of {1}'.format(ZZ7k, BbPm))\n YKHO._hypervisor_type = ZZ7k",
"def sO7t(YKHO, sO7... | [
"0.58687407",
"0.5676204",
"0.5636107",
"0.5604222",
"0.5597681",
"0.5597681",
"0.5597681",
"0.5597681",
"0.5559057",
"0.5553614",
"0.5530452",
"0.5506565",
"0.55021423",
"0.5495209",
"0.54699165",
"0.54699165",
"0.5446556",
"0.54396564",
"0.5429644",
"0.54161656",
"0.5404732... | 0.7599306 | 0 |
Sets the host_version of this VersionedDeploymentSpec. | def zf5p(YKHO, zf5p):
if zf5p is None:
raise ValueError('Invalid value for `host_version`, must not be `None`')
YKHO._host_version = zf5p | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ro2N(YKHO, Ro2N):\n YKHO._hypervisor_version = Ro2N",
"def jcKm(YKHO, jcKm):\n YKHO._hyperv_host_count = jcKm",
"def tIVJ(YKHO, tIVJ):\n YKHO._hdp_version = tIVJ",
"def KcEq(YKHO, KcEq):\n if KcEq is None:\n raise ValueError('Invalid value for `host`, must not be `None`')\n YKHO._ho... | [
"0.6517477",
"0.6271953",
"0.6178976",
"0.60648376",
"0.598329",
"0.59829396",
"0.59829396",
"0.59829396",
"0.59829396",
"0.5893912",
"0.5824103",
"0.5745678",
"0.56790274",
"0.56704205",
"0.56676763",
"0.5653232",
"0.5653232",
"0.5653232",
"0.5653232",
"0.5653232",
"0.565323... | 0.8062373 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, uRTC):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8089139",
"0.8089139",
"0.8054507",
"0.79827213",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
... | 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 if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Argument type conversion function for an image. This just throws exceptions if the read fails. | def LNo8(IznC):
return XC5k.imread(IznC) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q5aE(QMAG, *qIxc, **B2fa):\n tgYj = hnIv.open(QMAG)\n LNo8 = mLGw.asarray(tgYj)\n return LNo8",
"def wfX0(VXjJ):\n if isinstance(VXjJ, oyIN.ndarray):\n pass\n elif isinstance(VXjJ, hnIv.Image):\n VXjJ = oyIN.array(VXjJ)\n else:\n VXjJ = XC5k.imread(str(VXjJ))\n V... | [
"0.62001646",
"0.612969",
"0.60995746",
"0.6039882",
"0.60203975",
"0.5969262",
"0.59547937",
"0.5888381",
"0.58740425",
"0.5833236",
"0.5819156",
"0.57768655",
"0.57598865",
"0.57563955",
"0.57485396",
"0.57254386",
"0.57153535",
"0.5711157",
"0.568675",
"0.56718147",
"0.566... | 0.0 | -1 |
Creates a data loader for AudioDatasets. | def FIMM(YKHO, *qIxc, **B2fa):
super(KVdc, YKHO).__init__(*qIxc, **B2fa)
YKHO.collate_fn = KbW8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V1Gg(YKHO):\n if YKHO.config_args['num_members'] > 1:\n TGcu = GuwY.MixMoDataset\n else:\n TGcu = GuwY.MSDADataset\n YKHO.traindatasetwrapper = TGcu(dataset=YKHO.train_dataset, num_classes=int(YKHO.config_args['data']['num_classes']), num_members=YKHO.config_args['num_members'], dict_con... | [
"0.6753313",
"0.67081624",
"0.6566129",
"0.6525789",
"0.64995086",
"0.64633924",
"0.6463052",
"0.64046866",
"0.6393812",
"0.6380992",
"0.6355359",
"0.6344864",
"0.6339794",
"0.632222",
"0.62972176",
"0.6295378",
"0.6235412",
"0.6207986",
"0.6169932",
"0.6165656",
"0.61565197"... | 0.61544174 | 22 |
Create an empty queue. | def FIMM(YKHO):
YKHO._head = None
YKHO._tail = None
YKHO._size = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hWEK():\n return g5js(0, None, None)",
"def _OiT():\n return g5js()",
"def _OiT():\n return g5js()",
"def MsSo(YKHO):\n gGq6 = pAjc()\n YKHO.assertTrue(gGq6.empty())\n YKHO.assertEqual(gGq6.size(), 0)",
"def IrVo() -> g5js:\n return laXl.Queue()",
"def W_VD(YKHO, **B2fa):\n mW... | [
"0.90226257",
"0.8610326",
"0.8610326",
"0.7646727",
"0.73392534",
"0.7214641",
"0.7142951",
"0.6982411",
"0.6858135",
"0.68511164",
"0.6781897",
"0.6774313",
"0.6763828",
"0.6726111",
"0.66783184",
"0.6677383",
"0.6663354",
"0.6637819",
"0.66147155",
"0.65712017",
"0.6567653... | 0.63241506 | 56 |
Return True if the queue is empty. | def FBfn(YKHO):
return YKHO._size == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lsmZ(YKHO) -> bool:\n if YKHO.queue.empty():\n return True\n else:\n return False",
"def FBfn(YKHO):\n return len(YKHO.the_queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return len(YKHO._... | [
"0.9318055",
"0.93062776",
"0.93001103",
"0.93001103",
"0.9293065",
"0.92805946",
"0.92068154",
"0.91484445",
"0.91139406",
"0.9094878",
"0.9094723",
"0.90861505",
"0.9058218",
"0.9030448",
"0.9030448",
"0.900692",
"0.9004311",
"0.89929426",
"0.8943369",
"0.8826088",
"0.87624... | 0.79836136 | 74 |
Construct and return a Glyph object from a FreeType GlyphSlot. | def ocbv(hcXw, oQ6W):
lEHr = BnYr.unpack_mono_bitmap(oQ6W.bitmap)
TVTK, H2v2 = (oQ6W.bitmap.width, oQ6W.bitmap.rows)
tlxW = oQ6W.bitmap_top
NuCY = oQ6W.advance.x / 64
return BnYr(hcXw, lEHr, TVTK, H2v2, tlxW, NuCY) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ocbv(oQ6W):\n lEHr = f6BD.unpack_mono_bitmap(oQ6W.bitmap)\n TVTK, H2v2 = (oQ6W.bitmap.width, oQ6W.bitmap.rows)\n return f6BD(lEHr, TVTK, H2v2)",
"def o4TR(Vhvp, TVTK, H2v2):\n return BnYr.from_bytes(MRxC.unhexlify(Vhvp.encode('ascii')), TVTK, H2v2)",
"def kn_2(YKHO):\n return _VfD.Layout_cre... | [
"0.74140483",
"0.5702164",
"0.56694275",
"0.53484464",
"0.53150856",
"0.5271623",
"0.52245706",
"0.5218816",
"0.5151952",
"0.51183033",
"0.51086444",
"0.51078814",
"0.50992495",
"0.5070932",
"0.50345296",
"0.5027067",
"0.49325493",
"0.49306303",
"0.49025193",
"0.48668978",
"0... | 0.79620373 | 0 |
SpectrumImage.show(), draws the SpectrumImage to a set of axes. Uses matplotlib's imshow() function to draw the image. This method defaults to a heat map for grayscale images. | def nUHY(YKHO):
kZ6J = qjJM.imshow(YKHO.image)
return kZ6J | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r2sP(YKHO):\n MPlV([0, 0, 1, 1], xticks=[], yticks=[])\n r2sP(YKHO.rgb_image())",
"def VAvy(YKHO, jzdc):\n LZpg = QrM1.figure()\n LZpg.set_size_inches((2, 2))\n aNZO = QrM1.Axes(LZpg, [0.0, 0.0, 1.0, 1.0])\n aNZO.set_axis_off()\n LZpg.add_axes(aNZO)\n QrM1.set_cmap('hot')\n aNZO.im... | [
"0.7563181",
"0.72288454",
"0.71170986",
"0.70459247",
"0.7008158",
"0.7008158",
"0.7008158",
"0.69246095",
"0.6854514",
"0.6788598",
"0.67316",
"0.6719349",
"0.6704346",
"0.667625",
"0.6640072",
"0.663902",
"0.6621921",
"0.6602371",
"0.6539053",
"0.652988",
"0.651597",
"0.... | 0.6878489 | 8 |
Take an optimizer step with zerovalued gradients to allocate internal optimizer state. This helps prevent memory fragmentation by allocating optimizer state at the beginning of training instead of after activations have been allocated. | def DPR2(YKHO):
for sEBk, p_ia in zip(YKHO.fp32_groups_flat_partition, YKHO.fp32_groups_gradient_flat_partition):
sEBk.grad = p_ia
YKHO.optimizer.step()
YKHO.clear_hp_grads() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LqkW(YKHO):\n if YKHO.FLAGS.optimizer == 'Adam':\n YKHO.solver = ZylS.train.AdamOptimizer(learning_rate=YKHO.learning_rate, beta1=YKHO.FLAGS.beta1, beta2=YKHO.FLAGS.beta2)\n else:\n print('ERROR: Cannot handle optimizer type {}!!!'.format(YKHO.FLAGS.optimizer))\n raise RuntimeError\n... | [
"0.6780894",
"0.6529125",
"0.64228046",
"0.63724935",
"0.6355093",
"0.62774485",
"0.62247896",
"0.6205798",
"0.61795783",
"0.6157825",
"0.6145258",
"0.6128487",
"0.6126696",
"0.6121289",
"0.61153555",
"0.6098423",
"0.60723203",
"0.6049853",
"0.60446453",
"0.602578",
"0.601882... | 0.66747546 | 1 |
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. | def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues):
if NkkI:
Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]
print('Normalized confusion matrix')
else:
print('Confusion matrix, without normalization')
print(Bcwd)
QrM1.imshow(Bcwd, interp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"... | [
"0.8193267",
"0.80943453",
"0.80284286",
"0.8018051",
"0.79932356",
"0.79901975",
"0.79797465",
"0.79750663",
"0.795993",
"0.79564947",
"0.79366505",
"0.79336995",
"0.7933488",
"0.79303867",
"0.79252106",
"0.7923493",
"0.7923058",
"0.79224193",
"0.79219115",
"0.79209906",
"0.... | 0.7827875 | 78 |
Test constructor with line value | def QeDK(YKHO):
zFiD = igXH(YKHO.test_line)
YKHO.assertEqual((zFiD.gender, zFiD.event_swimmer_id, zFiD.last_name, zFiD.first_name, zFiD.nick_name, zFiD.middle_initial, zFiD.uss_num, zFiD.team_swimmer_id, zFiD.date_of_birth, zFiD.age), ('F', 14081, 'Reed', 'Laramie', '', 'J', '021100LARJREED', 1019, qcWV.date(20... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QeDK(YKHO):\n zFiD = I19z(YKHO.good_line)\n YKHO.assertEqual((zFiD.addr_name, zFiD.addr, zFiD.addr_city, zFiD.addr_state, zFiD.addr_zip, zFiD.addr_country, zFiD.team_reg), ('Jim Beam', '123 Main Street', 'Lexington', 'KY', '40514', 'USA', 'USS'))",
"def tbEU(YKHO):\n YKHO.assertRaises(lIsj.InputLine... | [
"0.81154877",
"0.77815175",
"0.7699274",
"0.7680709",
"0.7665436",
"0.74811625",
"0.74482614",
"0.6975289",
"0.6960921",
"0.6905078",
"0.6808007",
"0.6713319",
"0.66310644",
"0.65846926",
"0.6577896",
"0.6553447",
"0.65309525",
"0.6527652",
"0.65118575",
"0.6462248",
"0.64315... | 0.78696173 | 1 |
Set event_swimmer_id to none if string is empty | def FegP(YKHO):
YKHO.line._parse_event_swimmer_id(' ')
YKHO.assertEqual(None, YKHO.line.event_swimmer_id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FegP(YKHO):\n YKHO.line._parse_team_swimmer_id(' ')\n YKHO.assertEqual(None, YKHO.line.team_swimmer_id)",
"def KTYK(KCHu):\n if KCHu == 'None':\n return None\n else:\n return KCHu",
"def ZM7E(YKHO) -> h8nf[str]:\n return None",
"def Xowc(YKHO, Bs3P):\n return YKHO.sani... | [
"0.6145716",
"0.53761524",
"0.5199217",
"0.5136455",
"0.50743586",
"0.50332975",
"0.49535152",
"0.48798093",
"0.4853502",
"0.48334295",
"0.48021665",
"0.47409275",
"0.472424",
"0.46838117",
"0.46560875",
"0.46430215",
"0.4641775",
"0.46275774",
"0.46174413",
"0.46020004",
"0.... | 0.7075262 | 0 |
Set uss_num to none if string is empty | def CfIU(YKHO):
YKHO.line._parse_uss_num(' ')
YKHO.assertEqual(None, YKHO.line.uss_num) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OPAL(wEf2, KCHu):\n if isinstance(wEf2, (int, float)) and '!!' not in KCHu and _ofk(KCHu):\n return KCHu\n return wEf2",
"def vJSq(KCHu):\n if KCHu:\n KCHu = u' '.join([WKvO for WKvO in KCHu.split(' ') if not WKvO.isdigit()])\n return KCHu",
"def p_rx(YKHO):\n if YKHO.display_c... | [
"0.56850207",
"0.5638905",
"0.5565212",
"0.5561729",
"0.55028003",
"0.5481016",
"0.53732324",
"0.53609186",
"0.5350003",
"0.53476524",
"0.53476524",
"0.5322047",
"0.53214437",
"0.5289393",
"0.5280121",
"0.52591455",
"0.521904",
"0.5181339",
"0.5144871",
"0.513138",
"0.5098078... | 0.7066071 | 0 |
Pad batch tensors to have equal length. | def QMtY(Wc9F):
nPrm, Crrw, KAfx = zip(*Wc9F)
TDX1 = len(nPrm[0]) if isinstance(nPrm[0], list) else 1
if TDX1 == 1:
nPrm = [[WKvO] for WKvO in nPrm]
oTZk = []
for YRbF in range(TDX1):
fcej = [ht2j.Tensor(WKvO[YRbF]) for WKvO in nPrm]
BMnl = gc7n(fcej, batch_first=True)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VIAZ(Wc9F, J2wu, YUWI, Ep8u):\n BcCR = max(J2wu)\n rOH1 = len(Wc9F)\n zpgf = Ep8u - rOH1\n if zpgf == 0:\n return Wc9F\n tYAF = oyIN.ones(BcCR) * YUWI\n for YRbF in range(zpgf):\n Wc9F.append(tYAF)\n return Wc9F",
"def q1MU(YKHO, Wc9F):\n Fn22 = min(YKHO.MAXLENGTH, max([... | [
"0.7379123",
"0.737874",
"0.7376869",
"0.7280103",
"0.7222672",
"0.7210235",
"0.7153487",
"0.7137171",
"0.7054642",
"0.70357466",
"0.69880444",
"0.69281274",
"0.6841656",
"0.68321514",
"0.68230134",
"0.68148243",
"0.6792553",
"0.6786156",
"0.67223996",
"0.66813684",
"0.665356... | 0.66983366 | 19 |
Gets the DataLoader object for each type in split_dirs keys. | def KgqZ(NArs, T37t='hdf5', **B2fa):
uBwj = oloV(T37t)(NArs.modality)
return pVAc(uBwj(NArs.dataset_path, seq_length=NArs.seq_length), batch_size=NArs.batch_size, shuffle=NArs.is_training, num_workers=NArs.num_workers, pin_memory=NArs.cuda, collate_fn=QMtY) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BHQB(SnBA, tETI, NArs):\n hxDW = {}\n J0EE = {}\n for lpha in ['train', 'val', 'test']:\n if lpha in SnBA:\n pmON = Hy7s.path.join(tETI, '{}'.format(lpha))\n if lpha == 'train':\n XxFT = x_b5(pmON, UmpV)\n RFg8 = None\n if NArs.... | [
"0.6940876",
"0.67731863",
"0.67378455",
"0.66778123",
"0.66384655",
"0.6556835",
"0.64750385",
"0.63908243",
"0.63763463",
"0.6375941",
"0.636364",
"0.63344115",
"0.6333017",
"0.6306812",
"0.6293099",
"0.6292053",
"0.6282487",
"0.6255613",
"0.6255093",
"0.6230152",
"0.623015... | 0.0 | -1 |
Removes this sheet from the book. | def kSdD(YKHO):
YKHO.parent.thing.remove_sheet(YKHO.thing)
del YKHO.parent[YKHO.label] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lB7B(YKHO):\n YKHO.output_file.remove_sheet(YKHO.output_file.get_sheet_by_name('Sheet'))\n YKHO.output_sheets = YKHO.output_file.get_sheet_names()",
"def iily(YKHO, uAFz):\n assert isinstance(uAFz, hIr7)\n YKHO.beta_sheet_list.remove(uAFz)\n uAFz.model = None",
"def AIAp(ZNwF: str, S6Dp: Uni... | [
"0.71527797",
"0.67841434",
"0.67090696",
"0.66575694",
"0.62736917",
"0.6030811",
"0.6030307",
"0.6030307",
"0.6030307",
"0.6030307",
"0.6030307",
"0.6030307",
"0.6030307",
"0.6030307",
"0.6030307",
"0.6030307",
"0.6030307",
"0.6030307",
"0.6030307",
"0.6030307",
"0.5930881"... | 0.7477164 | 0 |
Returns a specific cell object. The topleft corner is row (1, 1) not (0, 0). row (int) The index of the row column (int) The index of the column. Can be a char | def i3sq(YKHO, rdlD, iVRZ):
if rdlD is None or iVRZ is None:
raise NotImplementedError()
return YKHO.thing[YKHO.convertColumn(row=rdlD, column=iVRZ)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kEFM(YKHO, WKvO, LVAh):\n return YKHO.cell_array.item((WKvO, LVAh))",
"def bwbz(YKHO, *, Csk6, rdlD: int, Qg73: str):\n return Csk6[rdlD, Qg73]",
"def bwbz(YKHO, rdlD, iVRZ):\n return YKHO.sudoku_matrix[rdlD][iVRZ]",
"def eMoW(rdlD: int, iVRZ: int) -> TW_f:\n return X38n[9 * rdlD + iVRZ]",
... | [
"0.7218831",
"0.71244186",
"0.71222556",
"0.7072182",
"0.70138144",
"0.70037436",
"0.69145685",
"0.687889",
"0.68511534",
"0.681005",
"0.67808145",
"0.67616075",
"0.6688464",
"0.66400236",
"0.6603714",
"0.6602046",
"0.6597519",
"0.65643483",
"0.6563141",
"0.6562666",
"0.65540... | 0.74050295 | 0 |
Returns a list of all openpyxl cell objects within the column Any blank cell has a value of None. All columns are the length of the longest column. To get just the desired column, make sure that trailingNone is True. column (int) Which column to retrieve (The first column is '1') | def CUXk(YKHO, iVRZ, *, Sg7o=True, E2qK=False, PUOY=''):
if E2qK:
Ikci = YKHO.thing[YKHO.convertColumn(iVRZ)]
else:
Ikci = YKHO._filter_trailingNone(YKHO.thing[YKHO.convertColumn(iVRZ)])
if Sg7o:
return tuple(YKHO._yieldContents(Ikci, useForNone=PUOY))
return Ikci | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MVZV():\n for WKvO in range(1, 38):\n if zxr_.cell((WKvO, 1)).value == '':\n cLXP = zxr_.cell((WKvO, 1))\n LCuh = zxr_.cell((WKvO, 2))\n hz5Y = zxr_.cell((WKvO, 3))\n emj2 = zxr_.cell((WKvO, 4))\n return (cLXP, LCuh, hz5Y, emj2)\n else:\n ... | [
"0.64906555",
"0.6487999",
"0.6385009",
"0.62517726",
"0.61906064",
"0.5916992",
"0.59124744",
"0.5904393",
"0.58739495",
"0.58632445",
"0.57990235",
"0.5783211",
"0.57712686",
"0.572281",
"0.5660084",
"0.5594781",
"0.5567345",
"0.55158186",
"0.54996055",
"0.5492681",
"0.5468... | 0.5340103 | 30 |
Adds the comment to the Redmine issue with ID issueID. | def xPc9(YKHO, eD4w, aM_I):
import httplib2
Xqgu = httplib2.Http()
geh0, hGN5 = Xqgu.request(uri=YKHO.__issue_url % int(eD4w), method='PUT', body=aM_I, headers={'X-Redmine-API-Key': YKHO.__api_key, 'Content-type': 'application/json'})
print(geh0)
print(hGN5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PU3S(YKHO, rfQU, aM_I):\n return YKHO.get_jira().add_comment(rfQU, aM_I)",
"def cvCC(YKHO, rfQU, aM_I, mQS7=None):\n YKHO.jira.add_comment(issue=rfQU, body=aM_I)",
"def _5gq(YKHO, tO9_, eD4w, aM_I):\n YKHO._asset_bind(tO9_)\n x0hE = YKHO._github_operator(tO9_)\n V8Z6 = x0hE.issue_comment(hHK... | [
"0.73257",
"0.70137954",
"0.68585825",
"0.6716296",
"0.6716296",
"0.6631547",
"0.6377175",
"0.63602537",
"0.61842364",
"0.61399496",
"0.61260426",
"0.61260426",
"0.60978734",
"0.6041797",
"0.60292053",
"0.5981387",
"0.5958068",
"0.5817729",
"0.5814619",
"0.57856834",
"0.57638... | 0.73244345 | 1 |
Taxon at each taxonomic rank. | def vxOo(YKHO, qeAY):
z0uu = YKHO.taxa(qeAY)
Csk6 = {}
for fdMZ, haex in enumerate(z0uu):
Csk6[HW0l.rank_labels[fdMZ]] = haex | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q7kk(YKHO):\n for zFiD in YKHO:\n zFiD.tax = zFiD.amount_untaxed * 14 / 100",
"def XSJs(YKHO, Z8dB):\n XSJs = {}\n for rZxm in HW0l.rank_labels:\n XSJs.update(YKHO.extant_taxa_for_rank(rZxm, Z8dB))\n return XSJs",
"def BOZQ(YKHO, haex):\n haex = int(haex)\n iYfI = YKHO._gen_... | [
"0.6591745",
"0.65722185",
"0.6152759",
"0.61059827",
"0.60846484",
"0.6023468",
"0.59772396",
"0.58534706",
"0.58037764",
"0.56452084",
"0.5639969",
"0.5593994",
"0.55709773",
"0.5552401",
"0.55074006",
"0.54873586",
"0.54849005",
"0.5460439",
"0.54373974",
"0.5403163",
"0.5... | 0.6676119 | 0 |
Fill in missing trailing ranks in a taxonomy string. | def zyHe(YKHO, z0uu):
if not z0uu:
return ';'.join(HW0l.rank_prefixes)
try:
V9iB = HW0l.rank_prefixes.index(z0uu[-1][0:3])
except:
YKHO.logger.error('Taxon is missing rank prefix: %s' % ';'.join(z0uu))
HwRy.exit()
for YRbF in range(V9iB + 1, len(HW0l.rank_prefixes)):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XQjy(YKHO, z0uu, pEH_=True):\n BnL7 = []\n HCwE = -1\n for a1PO in z0uu:\n I7pb = HW0l.rank_index[a1PO[0:3]]\n if I7pb == HCwE + 1:\n BnL7.append(a1PO)\n elif I7pb == HCwE:\n BnL7.append(a1PO)\n elif I7pb - HCwE > 1:\n for Mkmy in range(HCwE... | [
"0.6180073",
"0.5024686",
"0.4894613",
"0.48909852",
"0.4820285",
"0.47480357",
"0.46978533",
"0.46890405",
"0.46789554",
"0.4649765",
"0.46148986",
"0.4600366",
"0.4577446",
"0.45434892",
"0.45286644",
"0.45266804",
"0.4519264",
"0.45044106",
"0.44859084",
"0.44755876",
"0.4... | 0.75670624 | 0 |
Loads a json file so we know the level representation | def suMr(YKHO, pmON):
with open(pmON, 'r') as NqAa:
SxY3 = NqAa.readlines()
y67b = ''.join(SxY3)
YGFP = qQXR.loads(y67b)
YKHO.tile_reprs = list(YGFP['tiles']['structural-tiles'].keys())
YKHO.tile_reprs.remove('-') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ul_A(YKHO, pmON):\n print(\"loading '{}',\".format(pmON.split('/')[-1]), end=' ')\n with open(pmON, 'r') as NqAa:\n rhss = NqAa.readlines()\n for YRbF in range(len(rhss)):\n if rhss[YRbF][-1] == '\\n':\n rhss[YRbF] = rhss[YRbF][:-1]\n TVTK = len(rhss[0])\n ... | [
"0.71594334",
"0.7046752",
"0.70141727",
"0.6997049",
"0.6942976",
"0.6935981",
"0.6928907",
"0.68924755",
"0.6887098",
"0.68759567",
"0.6863365",
"0.6858164",
"0.68485135",
"0.6844715",
"0.68417263",
"0.6835398",
"0.6826523",
"0.68254626",
"0.68251437",
"0.6824099",
"0.68055... | 0.7284341 | 0 |
Helper method to generate splits of the dataset. Use this for testing, because it will condition on everything. | def fvMJ(Emd4, **B2fa):
for ugZ3 in ['mode', 'split', 'conditioned_answer_choice']:
if ugZ3 in B2fa:
raise ValueError(f"don't supply {ugZ3} to eval_splits()")
CnwS = [Emd4(split='test', mode='answer', **B2fa)] + [Emd4(split='test', mode='rationale', conditioned_answer_choice=YRbF, **B2fa) fo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jgLX(YKHO):\n return [{'split': X3eO.DatasetSplit.TRAIN, 'shards': 80}, {'split': X3eO.DatasetSplit.EVAL, 'shards': 2}]",
"def jgLX(YKHO):\n return [{'split': X3eO.DatasetSplit.TRAIN, 'shards': 799}, {'split': X3eO.DatasetSplit.EVAL, 'shards': 1}]",
"def F_Ph(YKHO):\n YKHO.train, YKHO.valid, bGrB,... | [
"0.7578655",
"0.7469417",
"0.72909063",
"0.7217832",
"0.7111279",
"0.70836115",
"0.7071776",
"0.7061775",
"0.696951",
"0.69623065",
"0.6913932",
"0.6898058",
"0.6895078",
"0.6887773",
"0.68566227",
"0.6852289",
"0.6787522",
"0.6767026",
"0.67625654",
"0.6758735",
"0.67313075"... | 0.0 | -1 |
Gets the message of this MeshNgdResponse. | def Ol8d(YKHO):
return YKHO._message | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Eair(YKHO, _hkX):\n return _hkX['message']",
"def Eair(YKHO):\n return YKHO._message",
"def dL4c(YKHO):\n return YKHO.message",
"def dL4c(YKHO):\n return YKHO.message",
"def Eair(YKHO):\n return YKHO.message",
"def Eair(YKHO):\n return YKHO.message",
"def Eair(YKHO):\n return Y... | [
"0.69570065",
"0.6864988",
"0.6730127",
"0.6730127",
"0.6695086",
"0.6695086",
"0.6692338",
"0.66370714",
"0.659771",
"0.6595932",
"0.65323853",
"0.65323853",
"0.65323853",
"0.6484927",
"0.64783746",
"0.6460742",
"0.64598835",
"0.64598835",
"0.64598835",
"0.64598835",
"0.6459... | 0.6552757 | 14 |
Gets the value of this MeshNgdResponse. | def BWXx(YKHO):
return YKHO._value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gwhq(YKHO):\n return YKHO.mesh",
"def rR8k(YKHO):\n return YKHO._mesh",
"def rR8k(YKHO):\n return YKHO._mesh",
"def rR8k(YKHO):\n return YKHO._mesh",
"def rR8k(YKHO):\n return YKHO._mesh",
"def fMTm(YKHO):\n return YKHO.mesh",
"def NMoC(YKHO):\n return go_r",
"def ompl(YKHO) ... | [
"0.60204846",
"0.59951663",
"0.59951663",
"0.59951663",
"0.59951663",
"0.59662104",
"0.58172965",
"0.55633706",
"0.5547011",
"0.5547011",
"0.5547011",
"0.5547011",
"0.5547011",
"0.5547011",
"0.5547011",
"0.5547011",
"0.5547011",
"0.5547011",
"0.5547011",
"0.5547011",
"0.54655... | 0.0 | -1 |
Combine two dictionaries. Return new dictionary with the combined keys and values. For any key found in both dictionaries, return the sum of the values for that key. | def b2go(jzdc: dict, Fg_i: dict) -> dict:
if not jzdc:
return Fg_i
if not Fg_i:
return jzdc
bCtM = [H5ew for H5ew in jzdc if H5ew in Fg_i]
TTm1 = jzdc | Fg_i
for H5ew in bCtM:
TTm1[H5ew] += jzdc[H5ew]
return TTm1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jFje(WbPA, S69B):\n Aofo = WbPA\n for G1Hx, Ty9i in S69B.items():\n Aofo[G1Hx] = (Aofo.get(G1Hx) or 0) + Ty9i\n return Aofo",
"def Ysto(YKHO, WbPA, S69B):\n XgFU = {**WbPA, **S69B}\n for H5ew, BWXx in XgFU.items():\n if H5ew in WbPA and H5ew in S69B:\n try:\n ... | [
"0.8141248",
"0.8140903",
"0.8029919",
"0.79810923",
"0.781744",
"0.781744",
"0.75366545",
"0.74844635",
"0.74613774",
"0.74381983",
"0.73597294",
"0.72979605",
"0.72559404",
"0.7244606",
"0.7216469",
"0.7216469",
"0.7216469",
"0.7216469",
"0.7216469",
"0.7216469",
"0.7216469... | 0.7950228 | 4 |
Return entity instance initialized from yaml. | def OXMy(Emd4, GPtr: ConfigType) -> uJDI:
DQUN = Emd4(GPtr)
DQUN.entity_id = f'{Sugg}.{GPtr[vLVn]}'
DQUN.editable = False
return DQUN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OXMy(Emd4, LVAh):\n return Emd4(eJb6.load(LVAh, sGP3))",
"def OXMy(Emd4, KQJl: str):\n return Emd4.from_dict(SfPr.yaml_loader(KQJl, load_single=True))",
"def Ysnk(Emd4, DWkG: yaml.Loader, Q6kx: yaml.Node) -> 'BotoError':\n BWXx = DWkG.construct_mapping(Q6kx, deep=True)\n return Emd4(BWXx)",
"... | [
"0.7188681",
"0.71468115",
"0.6927489",
"0.6893341",
"0.6806494",
"0.66631764",
"0.6661101",
"0.65775186",
"0.65219146",
"0.65043527",
"0.6500774",
"0.64835626",
"0.6451249",
"0.64110464",
"0.6308947",
"0.6302471",
"0.6284188",
"0.6245343",
"0.6188916",
"0.6188916",
"0.618891... | 0.65121233 | 9 |
Return minimum allowed value. | def _iNt(YKHO) -> float:
return YKHO._config[qkZB] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VmUT(YKHO):\n return YKHO._minimum",
"def PgG6(YKHO):\n if hasattr(YKHO, '_minimum_value'):\n return YKHO._minimum_value\n return None",
"def XaWZ(YKHO):\n return YKHO.MIN_VALUE",
"def D7BJ(YKHO):\n return YKHO._get_value(YKHO.accepted_minimum_provider)",
"def min(YKHO) -> qe4Y.In... | [
"0.8182495",
"0.80751383",
"0.8072081",
"0.80290246",
"0.7966599",
"0.7966599",
"0.7907296",
"0.7907296",
"0.7781278",
"0.77261823",
"0.76087666",
"0.76087666",
"0.76087666",
"0.76087666",
"0.76087666",
"0.76087666",
"0.76087666",
"0.76087666",
"0.76087666",
"0.75357765",
"0.... | 0.77675605 | 9 |
Return maximum allowed value. | def TO88(YKHO) -> float:
return YKHO._config[e5bI] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZWqN(YKHO):\n return YKHO._maximum",
"def bQ6z(YKHO) -> int:\n return YKHO.__max_value",
"def max(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'max')",
"def max(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'max')",
"def aohu(YKHO):\n return YKHO.MAX_VALUE",
"def bQ6z(YKHO) ->... | [
"0.82243764",
"0.82004327",
"0.8078211",
"0.8078211",
"0.8073907",
"0.80346316",
"0.80126345",
"0.79777914",
"0.7976083",
"0.7976083",
"0.79580486",
"0.78501225",
"0.7802104",
"0.7777796",
"0.769983",
"0.769983",
"0.76717114",
"0.76373667",
"0.76007354",
"0.75813156",
"0.7581... | 0.75727344 | 21 |
Return the name of the input slider. | def mWFP(YKHO):
return YKHO._config.get(BiEj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'name')",
"def mWFP(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'name')",
"def mWFP(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'name')",
"def mWFP(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'name')",
"def mWFP(YKHO) ... | [
"0.7134759",
"0.7134759",
"0.7134759",
"0.7134759",
"0.7134759",
"0.7134759",
"0.7134759",
"0.7134759",
"0.7134759",
"0.7134759",
"0.7134759",
"0.7134759",
"0.7134759",
"0.7134759",
"0.7134759",
"0.7134759",
"0.7134759",
"0.7134759",
"0.7134759",
"0.7134759",
"0.7134759",
"... | 0.0 | -1 |
Return the state of the component. | def QTBn(YKHO):
return YKHO._current_value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OEQv(YKHO):\n return YKHO.state",
"def QTBn(YKHO):\n return YKHO.get_state()",
"def ja6o(YKHO):\n return YKHO.state",
"def ja6o(YKHO):\n return YKHO.state",
"def ja6o(YKHO):\n raise NotImplementedError",
"def ja6o(YKHO):\n raise NotImplementedError",
"def ja6o(YKHO):\n pass",
... | [
"0.8166709",
"0.8162559",
"0.8053908",
"0.8053908",
"0.80378",
"0.80378",
"0.7999457",
"0.7965796",
"0.7932596",
"0.7932596",
"0.7910408",
"0.7904956",
"0.7904956",
"0.7904956",
"0.7904956",
"0.7904956",
"0.7901738",
"0.7901738",
"0.7901738",
"0.7838164",
"0.7838164",
"0.78... | 0.0 | -1 |
Return unique id of the entity. | def ShR8(YKHO) -> str | None:
return YKHO._config[vLVn] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g2g3(YKHO) -> str:\n return YKHO._entity_id",
"def g2g3(YKHO):\n return YKHO._entity_id",
"def g2g3(YKHO):\n return YKHO._entity_id",
"def g2g3(YKHO):\n return YKHO._entity_id",
"def g2g3(YKHO):\n return YKHO._entity_id",
"def g2g3(YKHO):\n return YKHO._entity_id",
"def ShR8(YKHO)... | [
"0.80686957",
"0.7955592",
"0.7955592",
"0.7955592",
"0.7955592",
"0.7955592",
"0.7753428",
"0.7753428",
"0.7524334",
"0.7523365",
"0.75129",
"0.7507436",
"0.7507436",
"0.7506655",
"0.74909294",
"0.74909294",
"0.74909294",
"0.74909294",
"0.74909294",
"0.74909294",
"0.74909294... | 0.0 | -1 |
Return the state attributes. | def TzCU(YKHO):
return {JHRc: YKHO._config.get(wo5C), LqM5: YKHO.editable, W5Z1: YKHO._minimum, hbaX: YKHO._maximum, lVK1: YKHO._step, bnZ8: YKHO._config[hv76]} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upgy(YKHO):\n return YKHO._attributes",
"def upgy(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO):\n return YKHO.attributes",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._attributes",
"def upgy(YKHO)... | [
"0.8953404",
"0.8953404",
"0.85239846",
"0.8366765",
"0.8366765",
"0.8363429",
"0.83362615",
"0.8334551",
"0.8310377",
"0.8292682",
"0.8289349",
"0.8289349",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.828... | 0.7552181 | 68 |
Run when entity about to be added to hass. | async def async_added_to_hass(YKHO):
await super().async_added_to_hass()
if YKHO._current_value is not None:
return
BWXx: float | None = None
if (QTBn := (await YKHO.async_get_last_state())):
with htTT(ValueError):
BWXx = float(QTBn.state)
if BWXx is not None and YKHO._mi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def async_added_to_hass(YKHO):\n YKHO.hass.data[Sugg].add_entity_id(YKHO.entity_id)\n YKHO.hass.data[Sugg].add_sensor(YKHO)",
"async def async_added_to_hass(YKHO):\n await super().async_added_to_hass()\n YKHO.coordinator.entities.append(YKHO)",
"async def async_added_to_hass(YKHO):\n\n def... | [
"0.76451904",
"0.7508712",
"0.7296557",
"0.720137",
"0.71257126",
"0.6639102",
"0.6639102",
"0.6610183",
"0.6588459",
"0.656976",
"0.6559875",
"0.65443677",
"0.654332",
"0.6525137",
"0.6481619",
"0.6472993",
"0.6435322",
"0.6425115",
"0.64211273",
"0.63922447",
"0.6390141",
... | 0.0 | -1 |
convert a bitcoin address to binary data capable of being put in a CScript | def CHqK(BdLO):
return HjM0(BdLO)[1:-4] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p1Mj(BdLO):\n nPrm = b''\n for bGrB in range(q5iv):\n nPrm += ARay\n U5bT = NX4C([nPrm, jviv, Zzz6, wce6, CHqK(BdLO), EYRR, lqqL])\n return U5bT",
"def WVhW(UTX6: str) -> SnBA.UInt160:\n tHSi.validate_address(UTX6)\n nPrm = peKS.b58decode_check(UTX6)\n return SnBA.UInt160(nPrm[1:]... | [
"0.705168",
"0.7035165",
"0.6876201",
"0.67644745",
"0.650063",
"0.6383578",
"0.60168505",
"0.60127896",
"0.5991026",
"0.5972889",
"0.59019476",
"0.58699095",
"0.5808511",
"0.57781106",
"0.5714882",
"0.5711409",
"0.5695423",
"0.5649162",
"0.5603935",
"0.56028223",
"0.56025434... | 0.6760302 | 4 |
Return the hex string serialization of this object | def KSx7(YKHO):
return jry1(YKHO.serialize()).decode('utf-8') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return YKHO._hex",
"def zAg0(YKHO: Hash) -> str:\n return YKHO.to_hex()",
"def b9mO(YKHO):\n return '#%02X%02X%02X' % (YKHO._intern[0], YKHO._intern[1], YKHO._intern[2])",
"def Napc(YKHO):\n return str(YKHO)",
"def hex(YKHO) -> str:\n return YKHO.__hash.hexdigest()",
"def... | [
"0.79997766",
"0.76923263",
"0.75566727",
"0.75442374",
"0.75429237",
"0.7529396",
"0.74605525",
"0.7437757",
"0.74297273",
"0.7416284",
"0.7366895",
"0.7337443",
"0.7335674",
"0.7297899",
"0.7291",
"0.7287193",
"0.726211",
"0.7259314",
"0.7259314",
"0.72569907",
"0.72569907"... | 0.7878244 | 1 |
Return UTCDateTime given as seconds relative to reftime | def rhu3(YKHO, C6wh, vxC9=None):
from collections import Iterable
from obspy import UTCDateTime as wyKz
if isinstance(C6wh, Iterable):
return [rhu3(YKHO, KCHu, reftime=vxC9) for KCHu in C6wh]
if isinstance(C6wh, wyKz) or vxC9 is None or C6wh is None:
return C6wh
if not isinstance(vxC... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zVfW(h5YN):\n return (h5YN - qcWV(1970, 1, 1)).total_seconds()",
"def nJdo() -> float:\n import time\n import datetime\n OeQj = time.time()\n UJxm = (datetime.datetime.fromtimestamp(OeQj) - datetime.datetime.utcfromtimestamp(OeQj)).total_seconds()\n return UJxm",
"def C6wh(YKHO):\n Os4... | [
"0.6401193",
"0.6284235",
"0.6199749",
"0.6148142",
"0.6058102",
"0.6003543",
"0.59928787",
"0.5974048",
"0.5940748",
"0.59233904",
"0.59233904",
"0.5902974",
"0.588965",
"0.58830327",
"0.5865948",
"0.58645135",
"0.5862348",
"0.58574665",
"0.5856924",
"0.5819511",
"0.57949924... | 0.6984531 | 0 |
Create a Mesh. By default, the mesh is empty, see the `cmesh` argument. | def FIMM(YKHO, mWFP='mesh', o5cb=None):
lndC.__init__(YKHO, name=mWFP, nodal_bcs={}, io=None)
if o5cb is not None:
YKHO.cmesh_tdim = [None] * 4
YKHO.cmesh = YKHO.cmesh_tdim[o5cb.tdim] = o5cb
YKHO._collect_descs()
YKHO._coors = YKHO.cmesh.coors
YKHO._set_shape_info() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EJ06(mWFP):\n return kZw_.data.meshes.new(mWFP)",
"def cUug(YKHO, Nv1V, FMbV, KkZg):\n ss4d = 0.0\n YKHO.compParDiff(Nv1V)\n yCnv.Comp.createMeshHomo(YKHO, 'SC', Nv1V, ss4d, FMbV, KkZg)",
"def EJ06(_19w, y_PJ, mWFP):\n ag5x = owIV + '->create_mesh()'\n _19w = oyIN.array(_19w)\n RAud = ... | [
"0.72003335",
"0.70130545",
"0.6565203",
"0.64967424",
"0.63513917",
"0.6299633",
"0.62533796",
"0.6171555",
"0.6022827",
"0.60142815",
"0.5993021",
"0.5985593",
"0.5959611",
"0.5903642",
"0.58940774",
"0.588155",
"0.58555686",
"0.58410794",
"0.58090335",
"0.579138",
"0.57811... | 0.66059244 | 2 |
Transform coordinates of the mesh by the given transformation matrix. | def iPRl(YKHO, TdGp, r_SI=None):
if r_SI is None:
r_SI = YKHO.coors
if TdGp.shape[1] > YKHO.coors.shape[1]:
YKHO.coors[:] = hPll.dot(r_SI, TdGp[:, :-1].T) + TdGp[:, -1]
else:
YKHO.coors[:] = hPll.dot(r_SI, TdGp.T) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SZFh(YKHO, SppC: 'Matrix44'):\n YKHO.vertices = list(SppC.transform_vertices(YKHO.vertices))\n return YKHO",
"def SZFh(YKHO, SppC: Matrix3D):\n SZFh = YKHO._local_transform\n SZFh.transformBy(SppC)\n YKHO._reset_cache()\n return YKHO",
"def lMlH(rR8k: InputTensor, SppC: InputTensor, ifFP=... | [
"0.7083763",
"0.6745415",
"0.6670615",
"0.65311086",
"0.6515282",
"0.6461262",
"0.64102614",
"0.6302781",
"0.6293058",
"0.6231284",
"0.6206419",
"0.6180809",
"0.61514276",
"0.6148591",
"0.6124466",
"0.61238027",
"0.60469335",
"0.60373807",
"0.6034086",
"0.60185313",
"0.597401... | 0.0 | -1 |
Calculate the mass of a molecule. | def qw1O(rmc3):
bMbF = 0
for WhQ6 in rmc3:
bMbF += VG7W[WhQ6]
return bMbF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MLew(YKHO):\n N8fB = YKHO.__dict__\n I1iR = {}\n for ZLSD in YKHO.chemAtoms:\n if isinstance(ZLSD, pE7s):\n KG9w = ZLSD.elementSymbol\n P2GO = I1iR.get(KG9w)\n if P2GO is None:\n I1iR[KG9w] = 1\n else:\n I1iR[KG9w] = P2GO... | [
"0.8235745",
"0.76464695",
"0.7485287",
"0.743854",
"0.73887897",
"0.73480976",
"0.72905153",
"0.71409684",
"0.71409684",
"0.71218795",
"0.7104337",
"0.7082179",
"0.7052722",
"0.70399374",
"0.70076245",
"0.6995759",
"0.69288754",
"0.69266146",
"0.6919295",
"0.6851342",
"0.684... | 0.7220322 | 7 |
Handle the 'about' page. | def vsuQ(YKHO):
return dict(page='about') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cD8n(QePW):\n return _1tc(QePW, 'ez_main/about_page.html')",
"def wZMb(YKHO):\n LgJI()",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def cD8n(QePW):\n return _1tc(QePW, 'about_page/about_page.html')",
"def wZMb(YKHO, tvqc):\n pass",
"def vsuQ():\n return TvZl('pa... | [
"0.79461765",
"0.7800511",
"0.77702314",
"0.77334857",
"0.77287537",
"0.76092935",
"0.7579408",
"0.7578433",
"0.75713116",
"0.75560117",
"0.7547602",
"0.75273275",
"0.7512634",
"0.75118285",
"0.75118285",
"0.7430375",
"0.7427759",
"0.7426273",
"0.7422473",
"0.7420879",
"0.739... | 0.0 | -1 |
_tearDown_ Cleanup the databases. | def tBIc(YKHO):
YKHO.testInit.clearDatabase()
YKHO.testInit.tearDownCouch()
YKHO.specGen.removeSpecs()
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tBIc(YKHO):\n kO5c.tearDown()\n GwjS()",
"def tBIc(YKHO):\n kO5c.tearDown()\n GwjS()",
"def tBIc(YKHO):\n kO5c.tearDown()\n GwjS()",
"def tBIc(YKHO):\n kO5c.tearDown()\n GwjS()",
"def tBIc(YKHO):\n kO5c.tearDown()\n GwjS()",
"def tBIc(YKHO):\n kO5c.tearDown()\n Gwj... | [
"0.8765929",
"0.8765929",
"0.8765929",
"0.8765929",
"0.8765929",
"0.8765929",
"0.8765929",
"0.8765929",
"0.8765929",
"0.8719981",
"0.8690666",
"0.8611389",
"0.8611389",
"0.85164624",
"0.85114336",
"0.8506662",
"0.8447596",
"0.84388125",
"0.84388125",
"0.84388125",
"0.84388125... | 0.81512535 | 73 |
_testUpdateFailedDoc_ Verify that the update function will work correctly and not throw a 500 error if the doc didn't make it into the database for some reason. | def pZCk(YKHO):
nZuS = POzE(YKHO.config, 'changestate_t')
dpaB = YKHO.daoFactory(classname='Locations.New')
dpaB.execute('site1', pnn='T2_CH_CERN')
ijvB = ngMB(spec=YKHO.specUrl, owner='Steve', name='wf001', task=YKHO.taskName)
ijvB.create()
eqhd = fBkO(name='TestFileset')
eqhd.create()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ouwm(YKHO):\n pass",
"def hVEs(YKHO):\n pass",
"def IsIF(YKHO):\n G6QD = SZ_z.DocumentFields({'foo@': 'bar'})\n YKHO.assertEquals('bar', G6QD['foo'])\n G6QD.update({'foo@': 'bbq'})\n YKHO.assertEquals('bbq', G6QD['foo'])",
"def IsIF(YKHO):\n P6bq = mvm0.UpdateCommand(exRa, commit_wit... | [
"0.78253835",
"0.72858334",
"0.7190362",
"0.70023966",
"0.69982487",
"0.68725485",
"0.6833063",
"0.6833063",
"0.6833063",
"0.6778672",
"0.6679405",
"0.66168725",
"0.6578169",
"0.65603155",
"0.6530336",
"0.65064883",
"0.6481177",
"0.64690524",
"0.644808",
"0.6393169",
"0.63695... | 0.65149593 | 15 |
Determines whether a sequence is in increasing order | def cyVS(Q6uT):
for YRbF, r845 in enumerate(Q6uT[:-1]):
if r845 >= Q6uT[YRbF + 1]:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hfzg(Q6uT):\n for YRbF in range(1, len(Q6uT)):\n if not Q6uT[YRbF - 1] <= Q6uT[YRbF]:\n return False\n return True",
"def f3N3(aWuw, U3Fm=False):\n ZbOB = aWuw[0]\n for YRbF in range(1, len(aWuw)):\n if U3Fm and ZbOB == aWuw[YRbF] or ZbOB > aWuw[YRbF]:\n return... | [
"0.8427037",
"0.8166343",
"0.76927984",
"0.734868",
"0.71327513",
"0.6900214",
"0.68963605",
"0.6861688",
"0.6835388",
"0.68322504",
"0.67820394",
"0.67689544",
"0.6765438",
"0.67531645",
"0.6734673",
"0.6660989",
"0.66602814",
"0.6657604",
"0.66474295",
"0.6609146",
"0.66084... | 0.8208438 | 1 |
Example view demonstrating rendering a simple HTML page. | def d6pt():
QpfX = ACzc()
QpfX['nav'] = []
kGys = list(QpfX['COPY']['content'])
DZsU = []
for or8S, rdlD in enumerate(kGys):
rdlD = dict(zip(rdlD.__dict__['_columns'], rdlD.__dict__['_row']))
uxrW = rdlD.get('data_panel', None)
if uxrW:
if uxrW not in ['_', 'intro... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zrgm():\n return TvZl('moby.html')",
"def NMoC(YKHO):\n YKHO.render('view.html')",
"def Wzeq():\n return TvZl('index.html')",
"def Wzeq():\n return TvZl('hello.html')",
"def l3JJ(QePW):\n return _1tc(QePW, 'home_demo.html')",
"def NMoC(YKHO, QePW):\n return igJ6('This is a demo page... | [
"0.82181305",
"0.7517457",
"0.7275192",
"0.7262132",
"0.719313",
"0.7124594",
"0.7073872",
"0.70624375",
"0.7048777",
"0.70286745",
"0.7027904",
"0.70059437",
"0.70059437",
"0.70059437",
"0.70059437",
"0.70059437",
"0.7004205",
"0.6983125",
"0.69557106",
"0.69523466",
"0.6946... | 0.0 | -1 |
VGG 19layer model (configuration "E") | def AndN(mL4f=False, hqJl=0, qOtc=0, **B2fa):
if mL4f:
B2fa['init_weights'] = False
C3ST = tS6H(AaDq(_Fei['E'], SEED=hqJl, Ratio=qOtc), **B2fa)
if mL4f:
C3ST.load_state_dict(rA0C.load_url(mDCG['vgg19']))
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pFT6():\n GhuM = (256, 256, 3)\n MYHg = bdPE.applications.VGG19(include_top=False, input_shape=GhuM, weights='imagenet')\n bySB = MYHg.get_layer(index=9).output\n C3ST = bdPE.Model(inputs=[MYHg.inputs], outputs=[bySB])\n return C3ST",
"def AndN(mL4f=False, **B2fa):\n if mL4f:\n B2fa[... | [
"0.7938028",
"0.7352684",
"0.7322909",
"0.731347",
"0.72912514",
"0.72898996",
"0.7235066",
"0.7197585",
"0.71894604",
"0.7084843",
"0.707336",
"0.7058049",
"0.7026087",
"0.7002693",
"0.69967985",
"0.69944525",
"0.69195586",
"0.6903537",
"0.68565315",
"0.6850008",
"0.68098766... | 0.72287446 | 7 |
loads the environment variables as unicode if ascii | def E6J6(YKHO):
sEAN = {}
for G1Hx, Ty9i in Hy7s.environ.items():
G1Hx = G1Hx.decode() if isinstance(G1Hx, bytes) else G1Hx
Ty9i = Ty9i.decode() if isinstance(Ty9i, bytes) else Ty9i
sEAN[G1Hx] = Ty9i
return list(sEAN.items()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KU03():\n global _CACHED_ENV\n if not LiGB:\n acLO = ZbWC.compile('\\\\.([^@]*)')\n sEAN = Hy7s.environ.copy()\n DuqQ = sEAN.get('LANG', oTfi)\n if acLO.search(DuqQ):\n DuqQ = acLO.sub('.UTF-8', DuqQ)\n else:\n DuqQ = oTfi\n sEAN['LANG'] = D... | [
"0.68174326",
"0.607537",
"0.5995",
"0.592735",
"0.5890481",
"0.57966375",
"0.576268",
"0.57365036",
"0.5677684",
"0.5675128",
"0.5674164",
"0.5665332",
"0.5610122",
"0.55769527",
"0.5551566",
"0.5508509",
"0.5487707",
"0.5482668",
"0.5482668",
"0.5482668",
"0.5482668",
"0.... | 0.5602237 | 13 |
Return true or false if the text_alike_filename has the following format plain name or name.extension [azAZ09]+\.[azAZ09] | def AGHo(Iw7q):
mXDZ = ZbWC.compile('^[a-zA-Z0-9_]+(\\.[a-zA-Z0-9]+)?$')
Ylbp = mXDZ.match(Iw7q)
return Ylbp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pyO0(mWFP):\n QOe9 = ZbWC.search('[A-Za-z0-9_-]+\\\\.xml$', mWFP)\n if QOe9:\n return True\n else:\n return False",
"def ET8B(nUeQ: Union[str, FileStorage]) -> bool:\n Ux0P = xbwC(nUeQ)\n OZRe = '|'.join(Rulv)\n njyT = f'[a-zA-Z0-9][a-zA-Z0-9_()-\\\\.]*\\\\.({OZRe})$'\n ret... | [
"0.6753845",
"0.6702968",
"0.66970766",
"0.66360146",
"0.6589351",
"0.6587701",
"0.6572279",
"0.65142137",
"0.65036196",
"0.6497598",
"0.6492529",
"0.648888",
"0.648888",
"0.64584535",
"0.6456749",
"0.6456749",
"0.6456749",
"0.6456749",
"0.6456749",
"0.6456749",
"0.6456749",
... | 0.8141375 | 0 |
Initializes a kalman filter for our door task. | def FIMM(YKHO):
super().__init__(filter_models=[hV6G(dynamics_model=TFrK(), virtual_sensor_model=c2Mt(modalities={'image'})), hV6G(dynamics_model=TFrK(), virtual_sensor_model=c2Mt(modalities={'pos', 'sensors'}))], state_dim=3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Dgo4, sDQ6):\n YKHO.kf = NxAF(dim_x=4, dim_z=2)\n YKHO.kf.F = oyIN.array([[1, 0, 1, 0], [0, 1, 0, 1], [0, 0, 1, 0], [0, 0, 0, 1]])\n YKHO.kf.H = oyIN.array([[1, 0, 0, 0], [0, 1, 0, 0]])\n YKHO.kf.R *= 1.0\n YKHO.kf.P[2:, 2:] *= 1000.0\n YKHO.kf.Q = tmmE(dim=4, dt=1.0, var=0.01)\n ... | [
"0.6675223",
"0.64001346",
"0.63836414",
"0.6342795",
"0.6260933",
"0.6234054",
"0.6141222",
"0.6104336",
"0.60554534",
"0.6015546",
"0.59760755",
"0.5962371",
"0.59365946",
"0.59274995",
"0.59175",
"0.5891721",
"0.58340675",
"0.5830164",
"0.5735935",
"0.5686226",
"0.56768394... | 0.7161613 | 0 |
Initializes a kalman filter for our door task. | def FIMM(YKHO):
super().__init__(dynamics_model=TFrK(), virtual_sensor_model=XaRt(virtual_sensor_model=[c2Mt(modalities={'image'}), c2Mt(modalities={'pos', 'sensors'})], state_dim=3)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n super().__init__(filter_models=[hV6G(dynamics_model=TFrK(), virtual_sensor_model=c2Mt(modalities={'image'})), hV6G(dynamics_model=TFrK(), virtual_sensor_model=c2Mt(modalities={'pos', 'sensors'}))], state_dim=3)",
"def FIMM(YKHO, Dgo4, sDQ6):\n YKHO.kf = NxAF(dim_x=4, dim_z=2)\n YKHO.kf... | [
"0.7161613",
"0.6675223",
"0.64001346",
"0.63836414",
"0.6342795",
"0.6260933",
"0.6234054",
"0.6141222",
"0.6104336",
"0.60554534",
"0.6015546",
"0.59760755",
"0.5962371",
"0.59365946",
"0.59274995",
"0.59175",
"0.5891721",
"0.58340675",
"0.5830164",
"0.5735935",
"0.5686226"... | 0.0 | -1 |
Computes the precision for the specified values of k | def vjyh(hlel, pan_, hz5a=(1,)):
Gq8e = max(hz5a)
Ep8u = pan_.size(0)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))
Ylbp = []
for G1Hx in hz5a:
R2Dg = gXXc[:G1Hx].contiguous().view(-1).float().sum(0)
Ylbp.append(R... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(_ger, nvEb, G1Hx):\n G1Hx = min(len(nvEb), G1Hx)\n OCOs = min(len(_ger), G1Hx)\n return sum([int(nvEb[YRbF] in _ger) for YRbF in range(G1Hx)]) / OCOs",
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx] != 0\n if Mkmy.size != G1Hx:\n raise ValueError('R... | [
"0.7642171",
"0.7419321",
"0.74184227",
"0.72697616",
"0.7244972",
"0.7244229",
"0.7236948",
"0.7220481",
"0.72104603",
"0.7058168",
"0.68511814",
"0.6786012",
"0.67824614",
"0.67672175",
"0.6726138",
"0.6716942",
"0.6716942",
"0.6716942",
"0.6716942",
"0.6716942",
"0.6716942... | 0.0 | -1 |
Add PATCH functionality to this view. This is used for stopping runs. | def l_lP(YKHO, QePW, _sei=None):
VZ6T = QePW.data.get('is_stop_requested', False)
if VZ6T:
iXC1 = YKHO.get_object()
if QePW.user != iXC1.user and (not WtkF(QePW.user)):
raise wPvU
iXC1.request_stop(QePW.user)
return YKHO.patch_object(QePW, _sei) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Po4F(YKHO, *qIxc, **B2fa):\n YKHO.request('patch', *qIxc, **B2fa)",
"def Po4F(YKHO, QePW, _sei=None):\n return oGir({'method': 'patch'})",
"def Po4F(YKHO, QePW, _sei=None):\n return oGir({'message': 'patch'})",
"def Po4F(YKHO, QePW, _sei=None):\n return oGir({'method': 'PATCH'})",
"def Po4F... | [
"0.7517506",
"0.70199686",
"0.69271934",
"0.68737185",
"0.68737185",
"0.68737185",
"0.68408567",
"0.6828234",
"0.68018633",
"0.6797646",
"0.6791992",
"0.67674315",
"0.67398554",
"0.66893077",
"0.66383755",
"0.6631079",
"0.6630312",
"0.6628961",
"0.6605391",
"0.658333",
"0.655... | 0.6890169 | 3 |
Create an empty card of a particular card model. | def LAb5(YKHO, C3ST: str) -> ImMB:
return YKHO.anki.notes.Note(YKHO.collection, YKHO._get_card_model(C3ST)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dxhl(YKHO, S5Ok):\n return F1Hz(YKHO, S5Ok)",
"def N6co(YKHO, id, mWFP):\n dxhl = F1Hz(id, mWFP)\n YKHO.cards[id] = dxhl\n print('Created Card:' + id)",
"def dxhl(YKHO):\n return F1Hz(YKHO)",
"def dxhl(YKHO):\n return F1Hz(YKHO)",
"def Yeq8(dxhl):\n try:\n BWXx = TuHC(dxhl[0... | [
"0.63758403",
"0.6333159",
"0.6278323",
"0.6278323",
"0.6023709",
"0.60157084",
"0.600055",
"0.5968151",
"0.5930574",
"0.59105617",
"0.5858807",
"0.58322024",
"0.5814797",
"0.58024824",
"0.5769492",
"0.5767015",
"0.5759708",
"0.57563055",
"0.5754465",
"0.5737209",
"0.5696707"... | 0.68346184 | 0 |
Encoder This encoder is suposed to be used for the GAN, but is trained with an AE (in the future) Important, image is in the range 1>1 so tanh is better. | def gl6n(yOrK):
YpkZ = X6a0(shape=yOrK)
WKvO = yHwh(16, (3, 3), activation='tanh', padding='same')(YpkZ)
WKvO = WN4z((2, 2), padding='same')(WKvO)
WKvO = yHwh(8, (3, 3), padding='same')(WKvO)
WKvO = ybb1()(WKvO)
WKvO = WN4z((2, 2), padding='same')(WKvO)
WKvO = yHwh(8, (3, 3), padding='same')... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GMlY(YKHO):\n YKHO.encoder = U78l.Sequential(Rv6M((-1, 64 * 64 * 3)), U78l.Linear(64 * 64 * 3, 5120, bias=False), U78l.SELU(), U78l.BatchNorm1d(5120), U78l.Linear(5120, 2560, bias=False), U78l.SELU(), U78l.BatchNorm1d(2560), U78l.Linear(2560, 512, bias=False), U78l.SELU(), U78l.BatchNorm1d(512), U78l.Linear... | [
"0.70092016",
"0.68606234",
"0.6664062",
"0.65556484",
"0.64206916",
"0.6338161",
"0.6299144",
"0.62907165",
"0.6276112",
"0.6257006",
"0.6232343",
"0.62044555",
"0.6142367",
"0.6121027",
"0.6120764",
"0.6096476",
"0.6094113",
"0.6091391",
"0.60878855",
"0.60513806",
"0.60485... | 0.68002105 | 2 |
Consumes a provided lines iterable and generates two dictionaries; the | def hfK9(Nqlg):
XKcV = oRi_(list, {})
YRbF = None
for YRbF, zFiD in enumerate(Nqlg):
O_Up = zFiD.split('%')
pex6 = O_Up[0].split()
XKcV['frame'].append(int(pex6[0]))
XKcV['time'].append(float(pex6[1]))
XKcV['centroid'].append((float(pex6[2]), float(pex6[3])))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yxyc(Nqlg):\n Nqlg = iter(Nqlg)\n for zFiD in Nqlg:\n zFiD = zFiD.strip()\n if not zFiD:\n continue\n try:\n nPrm = _1kr(zFiD)\n if isinstance(nPrm, list):\n yield from nPrm\n else:\n yield nPrm\n except... | [
"0.6847552",
"0.6587984",
"0.6279775",
"0.62760764",
"0.6211252",
"0.60864145",
"0.6083683",
"0.60629565",
"0.6060881",
"0.60061836",
"0.5922",
"0.5893264",
"0.58711493",
"0.5846545",
"0.5833173",
"0.5787795",
"0.5767019",
"0.56974125",
"0.56803966",
"0.566032",
"0.5641493",
... | 0.0 | -1 |
Convert pydantic object to pandas dataframe with 1 row. | def xpSY(YKHO):
return rLdf.DataFrame([dict(YKHO)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xpSY(YKHO):\n return rLdf.DataFrame([dict(YKHO)])",
"def xpSY(YKHO):\n from ..df import DataFrame\n return DataFrame(YKHO)",
"def zqFD(YKHO):\n nPrm = {}\n for ZWCE in YKHO.data[0]:\n arKL = []\n if ZWCE in ei4T:\n for DumB in YKHO.data[0][ZWCE]:\n arK... | [
"0.75817996",
"0.7210344",
"0.7195528",
"0.7187567",
"0.71487796",
"0.7104129",
"0.71013093",
"0.7047505",
"0.69818395",
"0.6981776",
"0.6981776",
"0.69500226",
"0.6906501",
"0.68661636",
"0.68262136",
"0.681778",
"0.67798555",
"0.67733806",
"0.6754019",
"0.673979",
"0.672651... | 0.75378114 | 4 |
Compare bet_color to color rolled. Compares bet_number to number_rolled. | def psF3(mWId, EKZK):
Jw9H = ['red', 'green', 'black']
if Jw9H.count(mWId[1]) > 0:
if mWId[1] == EKZK[1]:
print("You've guessed the right color!\n")
return 1
else:
print("Sorry, but you didn't win this round.\n")
return -1
elif mWId[1]:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ANww():\n ALuG = tuKI.randint(0, 37)\n if jlxe.count(ALuG) > 0:\n cpqv = 'green'\n elif Z5Q9.count(ALuG) > 0:\n cpqv = 'red'\n elif z13o.count(ALuG) > 0:\n cpqv = 'black'\n print('\\nNumber: %i - Color: %s' % (ALuG, cpqv))\n return (ALuG, cpqv)",
"def sumx(YKHO, PXOy):\... | [
"0.6314155",
"0.5852918",
"0.56200504",
"0.55386335",
"0.55365914",
"0.5506635",
"0.54299164",
"0.5399716",
"0.5368567",
"0.5350033",
"0.5339468",
"0.5275112",
"0.5271157",
"0.5267614",
"0.52111787",
"0.521065",
"0.5208023",
"0.5197349",
"0.5192846",
"0.51685864",
"0.51602167... | 0.54501295 | 6 |
Returns distance between two nodes and first step to go from source to destination | def Rvt9(YKHO, KoHv, JNtd):
i4Va = YKHO.__graph[KoHv]
return i4Va.distance_vectors[JNtd] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Al2M(YKHO, i4Va, rUTj):\n if i4Va == rUTj:\n return 0.0\n for YRbF, (MxXY, cWFu) in enumerate(zip(YKHO.paths[i4Va], YKHO.paths[rUTj])):\n if MxXY != cWFu:\n break\n else:\n YRbF = min(len(YKHO.paths[i4Va]), len(YKHO.paths[rUTj]))\n return sum(YKHO.path_dists[i4Va][YR... | [
"0.7749197",
"0.7547646",
"0.75096387",
"0.73309463",
"0.729498",
"0.72741884",
"0.71237767",
"0.7031545",
"0.6993948",
"0.698453",
"0.69457555",
"0.6933379",
"0.69315684",
"0.68566525",
"0.6842347",
"0.6838722",
"0.68144524",
"0.67809415",
"0.6770598",
"0.67567325",
"0.67119... | 0.67382646 | 20 |
Encode the variances from the priorbox layers into the ground truth boxes we have matched (based on jaccard overlap) with the prior boxes. | def Nusl(Dn78, f0BO, ieZh):
SyTj = (Dn78[:, :2] + Dn78[:, 2:]) / 2 - f0BO[:, :2]
SyTj /= ieZh[0] * f0BO[:, 2:]
fmMW = (Dn78[:, 2:] - Dn78[:, :2]) / f0BO[:, 2:]
fmMW = ht2j.log(fmMW) / ieZh[1]
return ht2j.cat([SyTj, fmMW], 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x8I_(N6Z1, f0BO, ieZh):\n oUSw = oyIN.concatenate((f0BO[:, :2] + N6Z1[:, :2] * ieZh[0] * f0BO[:, 2:4], f0BO[:, 2:4] * oyIN.exp(N6Z1[:, 2:4] * ieZh[1])), 1)\n oUSw[:, :2] = oUSw[:, :2] - oUSw[:, 2:4] / 2\n oUSw[:, 2:4] = oUSw[:, 2:4] + oUSw[:, :2]\n return oyIN.concatenate([oUSw, N6Z1[:, 4:]], 1)\n ... | [
"0.62356186",
"0.56595784",
"0.5566457",
"0.5536374",
"0.5532042",
"0.54951286",
"0.5469494",
"0.54234946",
"0.5395803",
"0.53630805",
"0.5340503",
"0.5330754",
"0.52742666",
"0.5259185",
"0.5257322",
"0.5251552",
"0.5229743",
"0.5211053",
"0.5198361",
"0.51439697",
"0.513725... | 0.0 | -1 |
Returns the path where the tranquility data resides | def W_CJ():
return Hy7s.path.join(WBVs(), 'CCP\\EVE\\d_eve_sharedcache_tq_tranquility') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i0XC(YKHO):\n raise NotImplementedError",
"def _eRz():\n oDqC = Hy7s.path.dirname(xAKo)\n return Hy7s.path.join(oDqC, 'data', 'Sacramentorealestatetransactions.csv')",
"def s8df():\n return Hy7s.getcwd() + '/data/'",
"def TNBq():\n return '..' + Hy7s.sep + 'data' + Hy7s.sep",
"def pmON(Y... | [
"0.68108493",
"0.6776257",
"0.6717757",
"0.66783464",
"0.6615651",
"0.65978396",
"0.6532679",
"0.6512564",
"0.650768",
"0.64584935",
"0.6388672",
"0.63867676",
"0.6355863",
"0.63534456",
"0.63334453",
"0.6314213",
"0.6304332",
"0.6293955",
"0.62707067",
"0.6265282",
"0.624098... | 0.86091894 | 0 |
Returns the path where the singularity (test servers) data resides | def Ckvu():
return Hy7s.path.join(WBVs(), 'CCP\\EVE\\d_eve_sharedcache_sisi_singularity') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WLhE(YKHO):\n return Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.abspath(xAKo)), 'data')",
"def Eitm():\n return Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(xAKo), 'data') + Hy7s.path.sep)",
"def s8df():\n import rospkg\n CMTZ = rospkg.RosPack()\n return Hy7s.path.join(CMTZ.get_path('t... | [
"0.689176",
"0.68752277",
"0.6826224",
"0.6808145",
"0.67875546",
"0.67234045",
"0.6666171",
"0.66503364",
"0.6642868",
"0.661631",
"0.6607416",
"0.65869087",
"0.6577042",
"0.65536505",
"0.64990926",
"0.64725065",
"0.64258796",
"0.64037913",
"0.6391898",
"0.6390964",
"0.63881... | 0.68830234 | 1 |
Cleans the name so that Windows style paths work | def U_IC(YKHO, mWFP):
return Hy7s.path.normpath(mWFP).replace('\\', '/') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b7bT(mWFP):\n return ZbWC.sub('[^\\\\w .]', '', mWFP)",
"def KMk9(mWFP):\n if mWFP[-1] == '/':\n return mWFP[:-1]\n return mWFP",
"def HySU(mWFP):\n pp30 = mWFP.rstrip('.')\n return pp30",
"def DhAv(mWFP):\n return mWFP.replace('-', '_')",
"def aSeI(mWFP):\n PFCi = '\\\\/:<>... | [
"0.7700949",
"0.7493401",
"0.7414225",
"0.74007595",
"0.7356507",
"0.72371477",
"0.71944344",
"0.71189123",
"0.71096957",
"0.6981848",
"0.6970165",
"0.6962509",
"0.69461536",
"0.6934848",
"0.69067216",
"0.69067216",
"0.69067216",
"0.6898055",
"0.68861467",
"0.6871665",
"0.685... | 0.88445467 | 0 |
Function to create dataset | def oUGu():
c55i = '{}.airflow'.format(x0hE.project)
__n6 = slhS.Dataset(c55i)
__n6.location = 'US'
__n6 = x0hE.create_dataset(__n6, exists_ok=True)
print('Created dataset {}.{}'.format(x0hE.project, __n6.dataset_id))
return __n6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cNYr(K2u2):\n __n6 = x3i3()\n __n6._addData(K2u2[0])\n __n6._addData(K2u2[1])\n __n6._addData(K2u2[3])\n __n6._addData(K2u2[5])\n __n6._addData(K2u2[6])\n __n6._addData(K2u2[9])\n __n6._addData(K2u2[8])\n __n6._addData(K2u2[4])\n return __n6",
"def oUGu(y7GR):\n zQKy = rYeY(y... | [
"0.80316406",
"0.76356494",
"0.758953",
"0.75594234",
"0.7472125",
"0.7440938",
"0.73792076",
"0.7338542",
"0.7336027",
"0.7326048",
"0.7315646",
"0.7253376",
"0.72182333",
"0.7169486",
"0.7137896",
"0.71180344",
"0.71141946",
"0.7082076",
"0.7058421",
"0.7031606",
"0.7030648... | 0.6831411 | 37 |
Returns first element in the queue | def cntZ(YKHO):
if YKHO.head is None:
raise Exception('nothing in queue')
return YKHO.head.value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cntZ(YKHO):\n if YKHO.is_empty():\n raise rWmY('Queue is empty')\n return YKHO._head._element",
"def cntZ(YKHO):\n if YKHO.is_empty():\n raise rWmY('Queue is empty')\n return YKHO._head._element",
"def cntZ(YKHO):\n if YKHO.is_empty():\n raise rWmY('Queue undeflow.')\n ... | [
"0.8792036",
"0.8708514",
"0.8556915",
"0.84382343",
"0.8417255",
"0.8403848",
"0.8394608",
"0.8207264",
"0.80663913",
"0.8039438",
"0.8039438",
"0.7944739",
"0.79284596",
"0.791463",
"0.7896296",
"0.78960013",
"0.7872681",
"0.78687465",
"0.7844356",
"0.7829399",
"0.7818829",... | 0.8595159 | 2 |
Take 1D float of array of rewards and compute discounted reward | def AC1_(Mkmy):
g2lU = oyIN.zeros_like(Mkmy)
S8qo = 0
for a1PO in reversed(Ni9Y(0, Mkmy.size)):
if Mkmy[a1PO] != 0:
S8qo = 0
S8qo = S8qo * KMvS + Mkmy[a1PO]
g2lU[a1PO] = S8qo
return g2lU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AC1_(vwlo):\n g2lU = oyIN.zeros_like(vwlo)\n S8qo = 0\n for a1PO in reversed(range(0, len(vwlo))):\n S8qo = S8qo * lA6Z + vwlo[a1PO]\n g2lU[a1PO] = S8qo\n return g2lU",
"def AC1_(vwlo, KMvS):\n AFmI = vwlo.shape\n if len(AFmI) == 1:\n g2lU = oyIN.zeros(shape=(*AFmI, 1),... | [
"0.8068518",
"0.7798866",
"0.7758832",
"0.7717114",
"0.75833684",
"0.7575054",
"0.7568929",
"0.75573033",
"0.7524417",
"0.74810696",
"0.746744",
"0.74551773",
"0.74216056",
"0.7415085",
"0.7400264",
"0.73900735",
"0.7348287",
"0.73278886",
"0.73054653",
"0.72650945",
"0.72628... | 0.7226867 | 21 |
Update weights and biases according to AdaGrad | def PfXp(YKHO, eVVj):
_hZ2 = 1e-07
KMvS = YKHO.gamma
i5Qm = 1.0 - KMvS
if YKHO.ms_b is None or YKHO.ms_q is None:
YKHO.ms_b = []
YKHO.ms_q = []
YKHO.ms_rx_inp = []
YKHO.ms_ry_inp = []
YKHO.ms_rx_pos_out = []
YKHO.ms_ry_pos_out = []
YKHO.ms_rx_neg_o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MyUA(iJKf, cVX4, axeJ, r8hN, Ty9i, a1PO, tspZ, K0do='adam'):\n for gEmA in range(len(iJKf)):\n if not cVX4['layer{}'.format(gEmA + 1)] is None and axeJ['layer{}'.format(gEmA + 1)] is not None:\n EJFc = cVX4['layer{}'.format(gEmA + 1)]\n EJFc /= lHmx\n cukr = axeJ['lay... | [
"0.74755186",
"0.7223262",
"0.69291246",
"0.68865",
"0.68412465",
"0.6830536",
"0.68074393",
"0.6750053",
"0.6721393",
"0.6695431",
"0.66789967",
"0.66256344",
"0.6591257",
"0.65555865",
"0.6548036",
"0.65374243",
"0.6513318",
"0.650187",
"0.6492452",
"0.64878166",
"0.6473543... | 0.0 | -1 |
Update weights and biases according to rmsprop with momentum | def iTo5(YKHO, eVVj):
_hZ2 = YKHO.epsilon
KMvS = YKHO.gamma
i5Qm = 1.0 - KMvS
UqYS = YKHO.beta
if YKHO.ms_b is None or YKHO.ms_q is None:
YKHO.ms_b = []
YKHO.ms_q = []
YKHO.ms_rx_inp = []
YKHO.ms_ry_inp = []
YKHO.ms_rx_pos_out = []
YKHO.ms_ry_pos_out =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PfXp(YKHO, eVVj):\n _hZ2 = 1e-07\n KMvS = YKHO.gamma\n i5Qm = 1.0 - KMvS\n if YKHO.ms_b is None or YKHO.ms_q is None:\n YKHO.ms_b = []\n YKHO.ms_q = []\n YKHO.ms_rx_inp = []\n YKHO.ms_ry_inp = []\n YKHO.ms_rx_pos_out = []\n YKHO.ms_ry_pos_out = []\n ... | [
"0.7340508",
"0.690206",
"0.6863346",
"0.6495758",
"0.647224",
"0.6402086",
"0.63942695",
"0.6316046",
"0.631317",
"0.6280217",
"0.62417406",
"0.62158674",
"0.61977464",
"0.619257",
"0.61747086",
"0.61640763",
"0.61144495",
"0.61099356",
"0.61084396",
"0.60995615",
"0.6084168... | 0.7471555 | 0 |
Update weights and biases according to rmsprop with momentum | def W0pl(YKHO, eVVj):
KMvS = YKHO.gamma
i5Qm = 1.0 - KMvS
wuLw = 0.001
if YKHO.ms_b is None or YKHO.ms_q is None:
YKHO.ms_b = []
YKHO.ms_q = []
YKHO.ms_rx_inp = []
YKHO.ms_ry_inp = []
YKHO.ms_rx_pos_out = []
YKHO.ms_ry_pos_out = []
YKHO.ms_rx_neg_o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iTo5(YKHO, eVVj):\n _hZ2 = YKHO.epsilon\n KMvS = YKHO.gamma\n i5Qm = 1.0 - KMvS\n UqYS = YKHO.beta\n if YKHO.ms_b is None or YKHO.ms_q is None:\n YKHO.ms_b = []\n YKHO.ms_q = []\n YKHO.ms_rx_inp = []\n YKHO.ms_ry_inp = []\n YKHO.ms_rx_pos_out = []\n YKHO... | [
"0.7471555",
"0.7340508",
"0.690206",
"0.6863346",
"0.6495758",
"0.647224",
"0.6402086",
"0.63942695",
"0.6316046",
"0.631317",
"0.6280217",
"0.62417406",
"0.62158674",
"0.61977464",
"0.619257",
"0.61747086",
"0.61640763",
"0.61144495",
"0.61099356",
"0.61084396",
"0.60841686... | 0.60995615 | 20 |
Returns indices of image and augmentation given index of generation. | def XNay(YKHO, or8S: int):
_xGc = or8S * YKHO.batch_size
return divmod(_xGc, YKHO.gen_count) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eM4e():\n if nMvt.image_dim_ordering() == 'th':\n return (0, 1, 2, 3)\n else:\n return (0, 3, 1, 2)",
"def kNRX(YKHO):\n with g5R2.File(YKHO.image_features_path, 'r') as _0K_:\n s48b = _0K_['ids'][()]\n gPul = {id: YRbF for YRbF, id in enumerate(s48b)}\n return gPul",
"d... | [
"0.6926184",
"0.64022267",
"0.6388406",
"0.6386086",
"0.6359846",
"0.62075347",
"0.6106384",
"0.6085727",
"0.608424",
"0.60077935",
"0.5993575",
"0.5974468",
"0.5966956",
"0.5932461",
"0.591079",
"0.591079",
"0.591079",
"0.59102404",
"0.5909854",
"0.5895196",
"0.58738106",
... | 0.6450925 | 1 |
Hash a password for storing. | def qzFd(jTXt):
NTfD = HBct.md5(jTXt.encode())
return NTfD.hexdigest() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qzFd(YKHO):\n YKHO.__password = YKHO.str_to_hash(YKHO.__password)",
"def qzFd(YKHO, jTXt):\n YKHO.password = jf1V.encrypt(jTXt)",
"def qzFd(YKHO, jTXt):\n YKHO.password_hash = vT87(jTXt)",
"def wnut(jTXt, NTzC='sha256'):\n return vT87(jTXt, NTzC)",
"def GPjS(YKHO, jTXt):\n hmgX = B8ni.ha... | [
"0.847967",
"0.8346137",
"0.82644516",
"0.80417943",
"0.7999399",
"0.7979167",
"0.7947968",
"0.7919728",
"0.78821445",
"0.78162515",
"0.77545875",
"0.77411246",
"0.766462",
"0.76507545",
"0.76267356",
"0.75862885",
"0.75638247",
"0.755944",
"0.7549114",
"0.75445807",
"0.75196... | 0.7971465 | 6 |
Get the name of the waveform file as a string | def OA7Y(YKHO):
return YKHO.waveform_info.split(':')[1][:20] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dudi(nw4y):\n HHcq = nw4y.SourceFilename()\n KnD3 = HHcq.replace(' ', '_')\n YBcr = orq5.DEFAULT_HDF5_EXTENSION\n return 'X{:s}_{:d}_{:s}{:s}'.format(KnD3, int(nw4y.TimeCreated()), nw4y.name, YBcr)",
"def g_2H(YKHO):\n return str(YKHO.get_file())",
"def MgDA():\n Csk6 = I3g9()\n return... | [
"0.7547779",
"0.75173306",
"0.7205143",
"0.7138938",
"0.7066071",
"0.6992246",
"0.6991281",
"0.6990922",
"0.69805264",
"0.6967774",
"0.6921745",
"0.69200885",
"0.68759245",
"0.6873407",
"0.6849128",
"0.6849128",
"0.6833352",
"0.6810818",
"0.68074435",
"0.6801086",
"0.6797121"... | 0.8456967 | 0 |