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 |
|---|---|---|---|---|---|---|
Creates a list with students | def b9dB():
CGJY = []
CGJY = Jprm()
return CGJY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Uq_T(YKHO, EQLe):\n return [YKHO.create_student('robot%d' % YRbF) for YRbF in Ni9Y(EQLe)]",
"def fyjp():\n Hubz = yiLn('students.txt')\n bVII = ObUI(Hubz)\n return bVII",
"def sN9F(YKHO):\n return YKHO._students",
"def jTeo() -> None:\n TykW = ['Computer Science', 'Performing Arts', 'En... | [
"0.7745152",
"0.7651385",
"0.7401376",
"0.71513355",
"0.70380795",
"0.70029294",
"0.6829479",
"0.67328805",
"0.67180187",
"0.6694999",
"0.6692375",
"0.66772085",
"0.666242",
"0.66623324",
"0.66604805",
"0.66128814",
"0.64615536",
"0.6453344",
"0.6451012",
"0.6374588",
"0.6329... | 0.8256589 | 0 |
Prepare dictionary that represents schedule | def ukxA():
qcRa = list(range(0, 140))
b6Gq = dict.fromkeys(qcRa)
return b6Gq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v5oZ(riiE):\n WXkz = oyIN.array(list(zip(riiE['tstart'], riiE['tstop']))).reshape((-1,))\n H2HG = oyIN.array(list(zip(riiE['pitch'], riiE['pitch']))).reshape((-1,))\n rKSe = oyIN.array(list(zip(riiE['off_nom_roll'], riiE['off_nom_roll']))).reshape((-1,))\n seMg = oyIN.array(list(zip(riiE['clocking'... | [
"0.7184708",
"0.71270216",
"0.6862534",
"0.6845834",
"0.6493",
"0.6412015",
"0.6295843",
"0.6152573",
"0.6042599",
"0.6027099",
"0.5902042",
"0.5900816",
"0.5900633",
"0.589502",
"0.5893605",
"0.5878575",
"0.5878575",
"0.586897",
"0.584919",
"0.58455867",
"0.5827547",
"0.58... | 0.64518183 | 5 |
Swaps roomlocks of 2 (random) courses | def aahF(aRAh, Uu_H, CGJY, b6Gq, jwfv=None, Y4eG=None, bcKS=None, U9Vc=None):
if jwfv == None:
jwfv = tuKI.randint(0, len(Uu_H) - 1)
if bcKS == None:
bcKS = tuKI.randint(0, len(Uu_H) - 1)
if Y4eG == None:
if len(Uu_H[jwfv].activities) == 0:
Y4eG = 0
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u9xv(aRAh, Uu_H, CGJY, b6Gq, FcF2=None, Kt7g=None):\n if FcF2 == None:\n FcF2 = tuKI.randint(0, len(b6Gq) - 1)\n if Kt7g == None:\n Kt7g = tuKI.randint(0, len(b6Gq) - 1)\n Y4eG = b6Gq[FcF2]\n U9Vc = b6Gq[Kt7g]\n b6Gq[FcF2] = U9Vc\n b6Gq[Kt7g] = Y4eG\n UrM8, CGJY, aRAh = aSql(... | [
"0.7765962",
"0.72392523",
"0.6555751",
"0.6316322",
"0.62035066",
"0.597391",
"0.5684663",
"0.5618999",
"0.5602784",
"0.55934566",
"0.55453897",
"0.55311406",
"0.5462399",
"0.5456227",
"0.5454935",
"0.53875643",
"0.5385624",
"0.52876556",
"0.5249359",
"0.5243026",
"0.5181878... | 0.77095574 | 1 |
Creates an intial population and returns the parents | def E90A(Z5kt):
CHNM = []
cCrA = []
for YRbF in range(Z5kt):
OYcD = []
yzos = []
aRAh, Uu_H, CGJY, b6Gq = kYwf()
yzos.append(Uu_H)
yzos.append(CGJY)
yzos.append(aRAh)
OYcD.append(yzos)
OYcD.append(b6Gq)
CHNM.append(OYcD)
return CHNM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b7fK(YKHO, CHNM):\n tuKI.shuffle(CHNM)\n return CHNM",
"def Qiny(YKHO):\n YKHO.parents = []\n for aOck in range(0, int(YKHO.population_size * 0.6)):\n while True:\n if aOck < int(YKHO.population_size * 6 / 15):\n _AKB = tuKI.choice(YKHO.best_districts)\n ... | [
"0.77673835",
"0.75192976",
"0.69933486",
"0.6961012",
"0.69397545",
"0.6842586",
"0.6719524",
"0.66722953",
"0.66668206",
"0.6638701",
"0.6605075",
"0.6519307",
"0.6501638",
"0.64927197",
"0.64678603",
"0.6441624",
"0.6361077",
"0.6356534",
"0.6340087",
"0.6322848",
"0.63011... | 0.5600679 | 94 |
Swaps roomlocks of 2 (random) courses | def u9xv(aRAh, Uu_H, CGJY, b6Gq, FcF2=None, Kt7g=None):
if FcF2 == None:
FcF2 = tuKI.randint(0, len(b6Gq) - 1)
if Kt7g == None:
Kt7g = tuKI.randint(0, len(b6Gq) - 1)
Y4eG = b6Gq[FcF2]
U9Vc = b6Gq[Kt7g]
b6Gq[FcF2] = U9Vc
b6Gq[Kt7g] = Y4eG
UrM8, CGJY, aRAh = aSql(b6Gq)
retu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aahF(aRAh, Uu_H, CGJY, b6Gq, jwfv=None, Y4eG=None, bcKS=None, U9Vc=None):\n if jwfv == None:\n jwfv = tuKI.randint(0, len(Uu_H) - 1)\n if bcKS == None:\n bcKS = tuKI.randint(0, len(Uu_H) - 1)\n if Y4eG == None:\n if len(Uu_H[jwfv].activities) == 0:\n Y4eG = 0\n e... | [
"0.7708698",
"0.7239419",
"0.65556955",
"0.63164467",
"0.6203988",
"0.5975702",
"0.5683306",
"0.56191695",
"0.5601216",
"0.5595645",
"0.55455333",
"0.55321777",
"0.5463059",
"0.5457011",
"0.5455547",
"0.5386996",
"0.53857696",
"0.5288003",
"0.5248843",
"0.524417",
"0.51821",
... | 0.77652556 | 0 |
Convert MAC address as text to binary | def G1rI(KCHu):
return MRxC.unhexlify(KCHu.replace(':', '')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AWcS(str):\n bqf2 = [int(YRbF, 16) for YRbF in str.split(':')]\n return BlNT.pack('6B', *bqf2)",
"def b78J(Pp4r):\n return '%.2x:%.2x:%.2x:%.2x:%.2x:%.2x' % tuple(map(ord, list(Pp4r)))",
"def AmDT(yxzR):\n if len(yxzR) != tLj9.B_SEQ_MAC_LEN:\n raise TypeError('Invalid input')\n return... | [
"0.755393",
"0.737579",
"0.7051263",
"0.6880074",
"0.6865667",
"0.6838513",
"0.6820341",
"0.67308336",
"0.6585798",
"0.6578865",
"0.6569511",
"0.6569511",
"0.6569511",
"0.6569511",
"0.6490012",
"0.64107645",
"0.6352259",
"0.6314068",
"0.6274746",
"0.61971205",
"0.6173257",
... | 0.71789646 | 2 |
Convert MAC address as binary to text | def M9Ru(neaT):
WKvO = b':'.join((MRxC.hexlify(neaT)[YRbF:YRbF + 2] for YRbF in range(0, 12, 2)))
return str(WKvO.decode('ascii')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b78J(Pp4r):\n return '%.2x:%.2x:%.2x:%.2x:%.2x:%.2x' % tuple(map(ord, list(Pp4r)))",
"def QeBN():\n hww6 = zhLG()\n DLdL = ':'.join((('%012x' % hww6)[YRbF:YRbF + 2] for YRbF in range(0, 12, 2)))\n return DLdL",
"def AmDT(yxzR):\n if len(yxzR) != tLj9.B_SEQ_MAC_LEN:\n raise TypeError('... | [
"0.7694354",
"0.734345",
"0.7315028",
"0.7247421",
"0.7226495",
"0.7147634",
"0.70992243",
"0.6946505",
"0.69215995",
"0.68953925",
"0.68953925",
"0.68953925",
"0.68953925",
"0.6813606",
"0.6689902",
"0.66344076",
"0.6630556",
"0.65933263",
"0.6514876",
"0.6511732",
"0.646405... | 0.7156266 | 5 |
Calculate the square's area | def f0tD(YKHO):
return YKHO.__size ** 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FmDM(HEZd):\n return HEZd ** 2",
"def NSXO(YKHO):\n return YKHO.width * YKHO.height",
"def f0tD(WKvO, LVAh):\n return WKvO * LVAh / 2",
"def BHTL(YKHO):\n jzdc, Fg_i = YKHO.sides\n f0tD = jzdc * Fg_i\n print(f'Are of rectangle is: {f0tD}')",
"def f0tD(YKHO):\n f0tD = 0\n XVAW = ... | [
"0.8180065",
"0.7854952",
"0.78490144",
"0.7791911",
"0.7776777",
"0.7746308",
"0.77008075",
"0.7654788",
"0.76177776",
"0.7609416",
"0.75847775",
"0.75611585",
"0.7530824",
"0.753009",
"0.75173247",
"0.751225",
"0.7501089",
"0.7495724",
"0.7487936",
"0.7475768",
"0.74709356"... | 0.7316392 | 71 |
Returns a mapping from node tag name to node for each child node of the parameter. Note that if there are multiple children with the same tag, the last one will overwrite previous ones in the returned map. | def Q7Qt(Q6kx: etree.Element) -> a1PO.Mapping[str, QGpr.Element]:
return {aUGN.tag: aUGN for aUGN in Q6kx} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GTPV(Q6kx):\n return dict(((tTpl.tag, tTpl.text) for tTpl in Q6kx))",
"def hY8I(YKHO):\n return YKHO.childrenMap",
"def PiWs(YKHO):\n return {fHgE.name: fHgE for fHgE in YKHO.nodes}",
"def GXTm(YKHO):\n YKHO.ParentMap = dict(((Z9rn, XP5J) for XP5J in YKHO.tree.iter() for Z9rn in XP5J))\n Y... | [
"0.6460066",
"0.61043286",
"0.6043569",
"0.6034069",
"0.60262054",
"0.6023899",
"0.5942375",
"0.59339494",
"0.5930342",
"0.5904966",
"0.5840489",
"0.58310926",
"0.576763",
"0.5763387",
"0.5736841",
"0.5714391",
"0.5709196",
"0.5707675",
"0.5707272",
"0.56825244",
"0.5676164",... | 0.7628022 | 0 |
Applies a maxpool of input features. This ensures a more dense representation of features, which can be computationally efficient because of lower dimensionality. It also helps in capturing more important features. | def ZIVn(EcVT, RndV, _0fC, *qIxc, Wskj=False):
if len(RndV) == 2:
RndV = ht2j.reshape(RndV, (1, RndV[0], RndV[1]))
kP9r = epAf.floor((EcVT.shape[1] - RndV[1]) / _0fC) + 1
spti = epAf.floor((EcVT.shape[2] - RndV[2]) / _0fC) + 1
if Wskj:
Xn71 = {}
HXXq = {}
for YRbF in range(Ec... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bnd8(g4y1):\n return ZylS.layers.max_pooling2d(g4y1, pool_size=[2, 2], strides=[2, 2], padding='same')",
"def Bnd8(Yw_3, Od0u, Wgq3):\n ywwl = XTiz\n K1Pu = ywwl.int64(ywwl.prod(Wgq3))\n if ywwl.size(Od0u) == 2:\n Od0u = (1,) + Od0u\n _0VL, U4J6, ZaQa, zkLu, qAfv = zqT_.conv_eval(Od0u, ... | [
"0.7255755",
"0.7038157",
"0.7037154",
"0.6909142",
"0.68308043",
"0.68176293",
"0.67974436",
"0.67644066",
"0.6739941",
"0.6704689",
"0.6672234",
"0.65636295",
"0.65562516",
"0.6546335",
"0.6528822",
"0.64766204",
"0.64616317",
"0.64616317",
"0.6444639",
"0.6430642",
"0.6381... | 0.589747 | 57 |
Simple softmax activation with enhanced stability | def N93T(LVAh):
_hZ2 = 0.001
LVAh = LVAh.detach().numpy()
LVAh[LVAh > 400] = 400
UUZ1 = _hZ2 + sum(oyIN.exp(LVAh))
M6pt = oyIN.exp(LVAh)
N93T = M6pt / UUZ1
return ht2j.Tensor(N93T) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=1, keepdims=True)",
"def N93T(WKvO):\n \"\"\"\"\"\"\n return kLQb(WKvO) / sum(kLQb(WKvO), axis=0)",
"def N93T(WKvO):\n hlel = oyIN.exp(WKvO)\n return hlel / oyIN.sum(hlel, axis=1, keepdims=True)",
"def N93T(WKvO):\n ret... | [
"0.7496774",
"0.7491808",
"0.7477932",
"0.745179",
"0.74494547",
"0.7381552",
"0.7378061",
"0.7378061",
"0.7378061",
"0.7378061",
"0.7378061",
"0.7378061",
"0.7378061",
"0.7378061",
"0.7342358",
"0.73372644",
"0.73372644",
"0.7319728",
"0.73162705",
"0.73162705",
"0.729192",
... | 0.0 | -1 |
Applies a conv_batchnorm_relu layer on the input. The input is expected to be of shape (channels,width,height) | def gNon(EcVT, xMux, _0fC, RndV, dvgN, YDYE='sigmoid', sTi3=True, oBmh=True, *qIxc):
if sTi3:
_SmF, _mSQ, ceje, Xn71, oLRV, oug5 = wL3W(0, xMux, EcVT, _0fC, RndV, dvgN, *qIxc, initialize_weights=True)
else:
rPrw, ceje = wL3W(0, xMux, EcVT, _0fC, RndV, dvgN, *qIxc, initialize_weights=False)
i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zMt_(input):\n CkYf = GVKG(axis=BRSN)(input)\n return MroH('relu')(CkYf)",
"def zMt_(input):\n CkYf = GVKG(axis=BRSN)(input)\n return MroH('relu')(CkYf)",
"def zMt_(input):\n CkYf = GVKG(axis=3)(input)\n return MroH('relu')(CkYf)",
"def e32L(g4y1, LT6S, wH3T):\n g4y1 = ZylS.layers.ba... | [
"0.7544851",
"0.7544851",
"0.7431144",
"0.72901523",
"0.7254086",
"0.717242",
"0.717242",
"0.7122106",
"0.7037521",
"0.6998685",
"0.69885784",
"0.69531804",
"0.69166845",
"0.6793073",
"0.6756596",
"0.671605",
"0.6691599",
"0.66906065",
"0.66906065",
"0.6684915",
"0.66385937",... | 0.7359023 | 3 |
Implementation of the Adam optimizer. This will return the running average of the mean and variance as well as the weight delta for updating parameters | def sEDD(Oa1e, rBO0, FdQY, r8hN, Ty9i, a1PO, tspZ):
if not isinstance(Oa1e, oyIN.ndarray):
Oa1e = Oa1e.detach().numpy()
if not isinstance(r8hN, oyIN.ndarray):
r8hN = r8hN.detach().numpy()
if not isinstance(Ty9i, oyIN.ndarray):
Ty9i = Ty9i.detach().numpy()
r8hN = rBO0 * r8hN + (1 ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YPaw(YKHO, DMIq=None):\n N77f = None\n if DMIq is not None:\n N77f = DMIq()\n for uOe2 in YKHO.param_groups:\n for XP5J in uOe2['params']:\n if XP5J.grad is None:\n continue\n Ro40 = XP5J.grad.data\n if Ro40.is_sparse:\n rais... | [
"0.7055364",
"0.7048658",
"0.6961846",
"0.6636437",
"0.6618789",
"0.6601562",
"0.65832293",
"0.654588",
"0.65404624",
"0.6513651",
"0.6475529",
"0.64639866",
"0.6430684",
"0.63923466",
"0.6379025",
"0.6375366",
"0.6335626",
"0.632555",
"0.6275789",
"0.6254198",
"0.61983746",
... | 0.0 | -1 |
Initialising grad weights dictionary for each layer for the purpose of minibatch gradient descent | def qw6L(iJKf):
cVX4 = {}
axeJ = {}
r8hN = {}
Ty9i = {}
for gEmA in range(len(iJKf)):
FWzb = iJKf['layer{}'.format(gEmA + 1)][2]
FJif = iJKf['layer{}'.format(gEmA + 1)][3]
if FWzb is not None and FJif is not None:
cVX4['layer{}'.format(gEmA + 1)] = ht2j.zeros(FWzb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sTi3(YKHO):\n YKHO.lmda = float(YKHO.c) / float(YKHO.N)\n YKHO.bias = {}\n YKHO.w = {}\n YKHO.lastW = {}\n for nuuJ in YKHO.labels:\n YKHO.bias[nuuJ] = 0\n YKHO.w[nuuJ] = {}\n YKHO.lastW[nuuJ] = {}\n pass",
"def R45z(YKHO):\n exwG = YKHO.weights_shape[0]\n k0lF = ... | [
"0.69300973",
"0.6742267",
"0.66169405",
"0.659284",
"0.65581596",
"0.6541057",
"0.65214163",
"0.65181965",
"0.65103287",
"0.64910835",
"0.64890605",
"0.6479744",
"0.6462262",
"0.645236",
"0.6443289",
"0.6424518",
"0.6416552",
"0.64034224",
"0.6395258",
"0.6388599",
"0.636855... | 0.0 | -1 |
Given the gradients, this function updates weights using the chosen optimizer (Adam or SGD) | def MyUA(iJKf, cVX4, axeJ, r8hN, Ty9i, a1PO, tspZ, K0do='adam'):
for gEmA in range(len(iJKf)):
if not cVX4['layer{}'.format(gEmA + 1)] is None and axeJ['layer{}'.format(gEmA + 1)] is not None:
EJFc = cVX4['layer{}'.format(gEmA + 1)]
EJFc /= lHmx
cukr = axeJ['layer{}'.form... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WIl5(YKHO, NfqM):\n for G1Hx in range(YKHO.size):\n VCGX = YKHO.learningRate * NfqM[G1Hx]\n cPfq = VCGX + YKHO.momentum * YKHO.last_change[G1Hx]\n YKHO.weights[G1Hx] -= cPfq\n YKHO.last_change[G1Hx] = 1 * NfqM[G1Hx]",
"def MyUA(YKHO, EcVT, fuBA, b0Ix):\n vtNT = YKHO.calculat... | [
"0.7615294",
"0.74489164",
"0.74227506",
"0.73617655",
"0.733145",
"0.7311669",
"0.7239274",
"0.722948",
"0.7211416",
"0.7201807",
"0.71323997",
"0.7118863",
"0.7102021",
"0.7076012",
"0.70577985",
"0.7050655",
"0.70322204",
"0.70137715",
"0.7010193",
"0.6981598",
"0.69721115... | 0.76219994 | 0 |
Return the email address to satisfy FlaskLogin's requirements. | def unpH(YKHO):
return YKHO.id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D3lj(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'email')",
"def D3lj(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'email')",
"def D3lj(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'email')",
"def D3lj(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'email')",
"def D3lj(YKHO) -> str:\n return ... | [
"0.74636996",
"0.74636996",
"0.74636996",
"0.74636996",
"0.744493",
"0.744493",
"0.744493",
"0.7439936",
"0.7439936",
"0.7439936",
"0.7439936",
"0.7439936",
"0.7439936",
"0.7439936",
"0.7421634",
"0.72910833",
"0.7233626",
"0.7228416",
"0.72064245",
"0.7176058",
"0.71472573",... | 0.0 | -1 |
Initialize the ship and set its starting position. | def FIMM(YKHO, Vjhr, OAAG):
YKHO.ship_speed_factor = OAAG
YKHO.screen = Vjhr
YKHO.image = a9eO.image.load('./images/ship.bmp')
YKHO.image = YKHO.image.convert()
YKHO.rect = YKHO.image.get_rect()
YKHO.screen_rect = YKHO.screen.get_rect()
YKHO.rect.centerx = YKHO.screen_rect.centerx
YKHO.r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n global ship_image\n YKHO.spaceshipgame = NauM()\n YKHO.spaceshipgame.init()\n oeNL = [1, 1]\n y917 = [1, 1]\n YylR = 0\n LNo8 = ejEv\n hgjH = [1, 1]\n zNig = 1\n U34r = mYeQ(hgjH, zNig)\n YKHO.ship = riCe(oeNL, y917, YylR, LNo8, U34r)",
"def FCbF(YKHO):\n glo... | [
"0.7156775",
"0.7156775",
"0.71117884",
"0.7104403",
"0.70625305",
"0.6991875",
"0.69255584",
"0.68944544",
"0.688422",
"0.6880826",
"0.68696547",
"0.6849714",
"0.68470556",
"0.68340504",
"0.6809345",
"0.6806218",
"0.67833537",
"0.6759838",
"0.6680851",
"0.66361636",
"0.66155... | 0.6683925 | 18 |
Compute softmax values for each sets of scores in x. | def N93T(WKvO):
return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(YKHO, cCrA):\n MvhI = oyIN.sum(oyIN.exp(cCrA), axis=1, keepdims=True)\n N93T = oyIN.exp(cCrA) / MvhI\n return N93T",
"def N93T(WKvO):\n j1LR = oyIN.exp(oyIN.asarray(WKvO))\n return j1LR / j1LR.sum(0)",
"def N93T(cCrA):\n XeFQ = oyIN.exp(cCrA)\n return XeFQ / oyIN.sum(XeFQ)",
"de... | [
"0.7796294",
"0.7760558",
"0.7759004",
"0.77567077",
"0.76577055",
"0.76577055",
"0.76577055",
"0.76577055",
"0.7585655",
"0.743143",
"0.7407772",
"0.73941606",
"0.7358175",
"0.73174125",
"0.72689486",
"0.72623265",
"0.72614294",
"0.7256868",
"0.723019",
"0.7214918",
"0.72017... | 0.6985568 | 86 |
Builds the model with given scaling factors, sets up optimizer and learning rate schedulers plus executes training and evaluation of the model. A checkpoint is created each epoch. Also the best model will be saved. | def nGJo(Pa1c, o7Up, OPAs, Cwt5, UqYS):
t3Mz = 0
s_xK = []
ojRq = open('./model_compound_scaling/logfiles/logfile.txt', 'a+')
ojRq.write('depth multiplier: {}, width multiplier: {}\n'.format(Cwt5, UqYS))
if qIxc.dataset == 'CIFAR100' or qIxc.dataset == 'CIFAR10':
C3ST = fGaB(d_multiplier=Cwt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WgYu(YKHO, HasU, tspZ, ULK9, QCuz, ZGE9, EpYW=1, fHUa=1, pUJB=False, PJWX=2, _S6Y=10, mIkJ=0, OSuM=5, bPTx='/', Qh2O=False, MeWX=500, DJ4d=999, G0EB=0.001, azdU=1e-06):\n YKHO.__epochs = HasU\n YKHO.__lr = tspZ\n YKHO.__clipvalue = mIkJ\n if mIkJ > 0:\n print('Using gradient clipping %.2f.' ... | [
"0.70966077",
"0.6923572",
"0.68657726",
"0.68205684",
"0.6819302",
"0.6797251",
"0.67803794",
"0.6769261",
"0.6740324",
"0.6717742",
"0.67093253",
"0.6640144",
"0.65960515",
"0.6544053",
"0.65388143",
"0.65348136",
"0.6480014",
"0.64793617",
"0.64499766",
"0.64464337",
"0.64... | 0.0 | -1 |
Return polygon coordinates from area source element. | def cCFW(U6D_):
j5tF = U6D_.find('%s/%s/%s/%s/%s' % (ekg0, DWFX.GML_POLYGON, DWFX.GML_EXTERIOR, DWFX.GML_LINEAR_RING, DWFX.GML_POS_LIST)).text
j5tF = DWFX._get_polygon_from_2DLinestring(j5tF)
return j5tF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cCFW(ViiG):\n str = ViiG.geometry.wkt\n str = ZbWC.sub('POLYGON\\\\(\\\\(', '', str)\n str = ZbWC.sub('\\\\)\\\\)', '', str)\n D9cM = ZbWC.split('\\\\,', str)\n k_Cy = []\n LD1b = []\n for str in D9cM:\n edvT = ZbWC.split('\\\\s+', ZbWC.sub('^\\\\s+', '', str))\n k_Cy.append(... | [
"0.6878503",
"0.6720386",
"0.6508824",
"0.6448162",
"0.64302117",
"0.63747144",
"0.6359347",
"0.63009137",
"0.62981766",
"0.6252196",
"0.6229776",
"0.61082804",
"0.608465",
"0.6054674",
"0.59956473",
"0.597074",
"0.593738",
"0.59253395",
"0.5905957",
"0.5867216",
"0.58459276"... | 0.6497018 | 3 |
Append NRML 0.4 rupture aspect ratio. | def eTl9(U6D_, rDUi):
lJSy = QGpr.Element(OgmI)
lJSy.text = str(rDUi)
U6D_.append(lJSy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pAIe(YKHO):\n wc14 = YKHO._block[1] >> 2 & 3\n jUbm = ''\n if wc14 == 0:\n jUbm = '4:3 AR'\n elif wc14 == 1:\n jUbm = '16:9 AR'\n elif wc14 == 2:\n jUbm = '16:10 AR'\n elif wc14 == 3:\n jUbm = '15:9 AR'\n return jUbm",
"def pAIe(VXjJ):\n r8hN, exwG = VXjJ.s... | [
"0.72204494",
"0.6930829",
"0.6145553",
"0.61392057",
"0.61110014",
"0.60201645",
"0.59601164",
"0.5947477",
"0.5947477",
"0.5905705",
"0.58838624",
"0.5812048",
"0.5752944",
"0.57470596",
"0.5681481",
"0.5657247",
"0.5653122",
"0.56221634",
"0.55957",
"0.5583546",
"0.5571397... | 0.7270869 | 0 |
Returns a dict representation of the Task, only includes a few attributes | def MNRr(YKHO):
return dict(name=YKHO.name, product=str(YKHO.product), source_code=YKHO.source_code) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aKGC(YKHO):\n print()\n b4PG = YKHO.task.get_employee_name()\n VsgD = YKHO.task.get_task_name()\n eRPr = YKHO.task.get_time_spent()\n rpno = YKHO.task.get_notes()\n _c1T = YKHO.task.get_date()\n D5gV = {'employee_name': b4PG, 'task_name': VsgD, 'mins': eRPr, 'notes': rpno, 'date': _c1T}\n ... | [
"0.7886997",
"0.7776561",
"0.76235783",
"0.75243306",
"0.72605354",
"0.68832064",
"0.68387127",
"0.669032",
"0.66797143",
"0.6642683",
"0.66357154",
"0.6624956",
"0.65192956",
"0.6500157",
"0.64861345",
"0.6427225",
"0.64229995",
"0.6420753",
"0.641781",
"0.63771826",
"0.6376... | 0.0 | -1 |
Test that the derivative is constant for linear values | def zeBO(mWFP, xSL2):
bGrB, u7KJ = GoGv.interpolate_with_derivative(*xSL2, kind=mWFP, **EfCq.get(mWFP, {}))
assert oyIN.allclose(u7KJ, u7KJ.mean()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QF31():\n jzdc = rGNu.Variable()\n assert aPi6((jzdc + 1).derivative_at(jzdc, {jzdc: 0.0}), 1.0)\n assert aPi6((1 + jzdc).derivative_at(jzdc, {jzdc: 0.0}), 1.0)",
"def sTMu():\n jzdc = rGNu.Variable()\n assert aPi6((jzdc - 1).derivative_at(jzdc, {jzdc: 0.0}), 1.0)\n assert aPi6((1 - jzdc).d... | [
"0.6898832",
"0.685875",
"0.67385304",
"0.6627886",
"0.659027",
"0.64766955",
"0.63666826",
"0.61839104",
"0.6155851",
"0.6111213",
"0.605531",
"0.6039669",
"0.60019153",
"0.5988068",
"0.5977119",
"0.594931",
"0.5942649",
"0.59101087",
"0.5908608",
"0.5904329",
"0.5849621",
... | 0.6581577 | 5 |
Do not return anything, modify head inplace instead. | def YCEJ(YKHO, sdCG: ListNode) -> None:
if not sdCG:
return
len = 1
jbXL = sdCG
while jbXL.next:
jbXL = jbXL.next
len += 1
if len <= 2:
return
jbXL = sdCG
for bGrB in range(len // 2):
jbXL = jbXL.next
NlZ_ = jbXL.next
jbXL.next = None
while... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sdCG(YKHO, sdCG):\n YKHO._head = sdCG",
"def Tmr3(YKHO, Q6kx):\n if Q6kx is YKHO.head:\n return\n BWXx = Q6kx.value\n YKHO.delete(Q6kx)\n YKHO.add_to_head(BWXx)",
"def RHuc(YKHO, Q6kx):\n YKHO._remove_node(Q6kx)\n YKHO._add_node(Q6kx)",
"def NWbf(YKHO, ac0X: Node):\n lHJN =... | [
"0.7218526",
"0.6802109",
"0.6732775",
"0.6622557",
"0.65217346",
"0.6466963",
"0.64551795",
"0.63585746",
"0.63523316",
"0.63093",
"0.62923217",
"0.6231313",
"0.622523",
"0.62005043",
"0.62005043",
"0.62005043",
"0.62005043",
"0.6198878",
"0.6193791",
"0.61740905",
"0.614918... | 0.5739143 | 86 |
One forward pass, returns all necessary outputs to getting the losses or evaluation | def KVH6(YKHO, *qIxc, Tuqy='train', **B2fa):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, WKvO):\n rPrw, yRej = YKHO.model(WKvO)\n return (rPrw, yRej)",
"def KVH6(YKHO, g4y1):\n yvT9 = YKHO.fc1(g4y1)\n yvT9 = YKHO.fc2(yvT9)\n YKHO.out = yvT9\n return yvT9",
"def KVH6(YKHO, WKvO):\n\n def FLM7(WKvO, Vo9x):\n SoaB = YKHO.lconv1(WKvO)\n pfRd = YKHO.con... | [
"0.7562277",
"0.741715",
"0.7181422",
"0.7123376",
"0.70972884",
"0.7086092",
"0.7073132",
"0.7041763",
"0.7037029",
"0.702812",
"0.7025107",
"0.7023581",
"0.7015795",
"0.69769984",
"0.69751114",
"0.69698113",
"0.69687414",
"0.696796",
"0.6955912",
"0.6952524",
"0.6948189",
... | 0.0 | -1 |
Update learning rates for all modifiers | def fggk(YKHO, WhY1):
YKHO.scheduler.step()
for Lwm5 in YKHO.optimizer.param_groups:
Ty9i = Lwm5['lr']
YKHO.tb_logger.add_scalar('train/lr', Ty9i, WhY1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IDad(YKHO, b0Ix):\n for gEmA in YKHO.layers:\n gEmA.weights.set_value((gEmA.weights - b0Ix * gEmA.dW).eval())\n gEmA.biases.set_value((gEmA.biases - b0Ix * gEmA.db).eval())",
"def WVy8(YKHO):\n YKHO.n_steps += 1\n tspZ = YKHO.factor * YKHO._get_lr_scale()\n for Lwm5 in YKHO._optimiz... | [
"0.76727396",
"0.7208993",
"0.7205981",
"0.7189951",
"0.7177713",
"0.7177713",
"0.71575546",
"0.7132899",
"0.7087447",
"0.70507866",
"0.7005369",
"0.6815615",
"0.67162895",
"0.67096025",
"0.6709071",
"0.6709071",
"0.66752166",
"0.665268",
"0.6629523",
"0.6628419",
"0.66214806... | 0.62804294 | 37 |
basic test of making a Reference object and writing it | def baIW(ZqHk):
Zu6c = Qwe0()
Zu6c.start_activity('test')
Zu6c.finish_activity()
m6Y4 = Zu6c.finished_activities[0]
aC0l = e5kH.Reference(contact=e5kH.Contact(name='Somebody', email='a@b.com', organization='CTA Consortium'), product=e5kH.Product(description='An Amazing Product', creation_time='2020-... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dGFk(YKHO):\n ybN4 = [1]\n BwgX = ybN4\n ybN4.append('stasi')\n YKHO.assertEqual([1, 'stasi'], BwgX)\n YKHO.assertIs(BwgX, ybN4)",
"def WxCh(YKHO):\n YKHO.make_reference2()",
"def Z0Xn(YKHO):\n JRYC = Kln9.special_dtype(ref=ngNZ.Reference)\n BapD = Kln9.py_create(JRYC, logical=True)... | [
"0.7002616",
"0.699844",
"0.6835863",
"0.6805242",
"0.677898",
"0.67260915",
"0.6622117",
"0.6544108",
"0.63401926",
"0.63239473",
"0.6297716",
"0.62402374",
"0.615337",
"0.60901904",
"0.6059733",
"0.5989274",
"0.5989274",
"0.59616166",
"0.59488213",
"0.58804727",
"0.58664656... | 0.0 | -1 |
Calculate closest distance between text locatios. | def EAct(n0tA, THyE):
Tm2h = 999999
for c1pd in n0tA.locations:
for FGvw in THyE.locations:
Ayfi = abs(c1pd - FGvw)
if Ayfi < Tm2h:
Tm2h = Ayfi
return Tm2h | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KLpe(qbSC, PRNC, RCe8):\n n2Q1 = ccBJ(qbSC, RCe8)\n SpII = ccBJ(PRNC, RCe8)\n pImw = rONK(n2Q1, SpII)\n return pImw",
"def A8hk(jzdc, Fg_i):\n return oyIN.sqrt(oyIN.sum((jzdc - Fg_i) ** 2))",
"def D0Sn(gwqK, yCTS):\n return ((gwqK[0] - yCTS[0]) ** 2 + (gwqK[1] - yCTS[1]) ** 2) ** 0.5",
... | [
"0.6502031",
"0.64668155",
"0.63840044",
"0.6381534",
"0.6293578",
"0.62862223",
"0.62667376",
"0.62639034",
"0.6245803",
"0.62424576",
"0.6186929",
"0.613746",
"0.6123262",
"0.61144817",
"0.61048514",
"0.6088064",
"0.6063522",
"0.60569715",
"0.6030201",
"0.60145307",
"0.6013... | 0.5781976 | 72 |
Initialize edges based on weight function(s). | def ZD6k(pNZh, i27s, LugE, KTQ3):
for TO8V in pNZh.nodes.keys():
for VDpM in pNZh.nodes.keys():
upAO = 0.0
n0tA = pNZh.nodes[TO8V]
THyE = pNZh.nodes[VDpM]
if TO8V == VDpM:
continue
if i27s > 0:
Ayfi = EAct(n0tA, THyE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, mC4V, _mSQ=None):\n YKHO._edges = g760.defaultdict(set)\n YKHO._weights = g760.defaultdict(lambda: None)\n if _mSQ:\n if not len(mC4V) == len(_mSQ):\n YXxD = 'Number of edges must equal number of weights.'\n raise ValueError(YXxD)\n _ycE = zip(mC4V, _mSQ)... | [
"0.7240901",
"0.7228488",
"0.71456856",
"0.71456856",
"0.7130452",
"0.7130452",
"0.7130452",
"0.709268",
"0.6997311",
"0.69763535",
"0.69003636",
"0.6875869",
"0.68441224",
"0.6796794",
"0.6779174",
"0.67563796",
"0.67430854",
"0.6738829",
"0.6701468",
"0.66936976",
"0.668707... | 0.6552248 | 33 |
return number of seconds necessary to advance UTC to TT. we aren't presently supporting dates prior to 1972 because fractional leap second handling is another thing. | def fxw3(ITS7: dt.datetime) -> float:
if ITS7.year < 1972:
raise ValueError('dates prior to 1972 are not currently supported')
vgXP = 42.184
for gwAu in m3jV:
if ITS7 > gwAu:
vgXP += 1
return vgXP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z0YJ(g75m):\n return (g75m.microseconds + (g75m.seconds + g75m.days * 24 * 3600) * 10 ** 6) / 10 ** 6",
"def PdVD(dOII):\n zwCF = None\n for yKcO, vgXP in Dpcf:\n if dOII < yKcO:\n if zwCF is None:\n a1PO = dOII - yjOU / oAdb\n return 64.184 + 59 * a1P... | [
"0.6930482",
"0.6922026",
"0.68787366",
"0.68285644",
"0.6744406",
"0.6735209",
"0.66996384",
"0.66784525",
"0.65576565",
"0.6504402",
"0.645737",
"0.6443351",
"0.6411192",
"0.6389988",
"0.63863105",
"0.6361231",
"0.63160324",
"0.628228",
"0.6277072",
"0.6235955",
"0.6235721"... | 0.6366384 | 15 |
returns top of queue | def oltd(YKHO):
Nqcn = iHv3.connect('app_process::memory:', check_same_thread=False)
QZbM = Nqcn.cursor()
QZbM.execute('SELECT * FROM message_queue WHERE tstamp==(:first)', {'first': YKHO.mq_first})
ZfUD = QZbM.fetchone()
if ZfUD == None:
return
QZbM.execute('DELETE FROM message_queue WH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tlxW(YKHO):\n return YKHO.queue[0]",
"def tlxW(YKHO):\n with YKHO.mutating:\n tlxW = YKHO.queue[0]\n return tlxW",
"def tlxW(YKHO):\n YKHO.move()\n return YKHO.queue2[-1]",
"def tlxW(YKHO):\n try:\n return YKHO._queue[0]\n except IndexError:\n return 0",
"def t... | [
"0.8723121",
"0.86396456",
"0.85779846",
"0.85765296",
"0.8512995",
"0.8489804",
"0.8471067",
"0.84307843",
"0.8293698",
"0.80193186",
"0.794998",
"0.7819543",
"0.7819543",
"0.77343005",
"0.76884115",
"0.7673914",
"0.76736563",
"0.7670727",
"0.76616704",
"0.76474243",
"0.7647... | 0.0 | -1 |
recursively delete keys which are not in whitelist from dict | def cUaN(YKHO, _U3a, KAM8):
for G1Hx in list(_U3a.keys()):
if G1Hx not in KAM8:
del _U3a[G1Hx]
for Ty9i in _U3a.values():
if isinstance(Ty9i, dict):
YKHO.delete_keys_from_dict(Ty9i, KAM8)
return _U3a | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HwUi(weiJ, YWxY):\n for G1Hx in set(weiJ.keys()) - YWxY:\n weiJ.pop(G1Hx)",
"def Yeym(Csk6):\n if isinstance(Csk6, dict):\n return {G1Hx: Yeym(Ty9i) for G1Hx, Ty9i in Csk6.items() if G1Hx not in ['propNames', 'package'] and Ty9i is not None and (not (G1Hx == 'children' and Ty9i == ''))}\n... | [
"0.6856295",
"0.68377435",
"0.6778026",
"0.66896665",
"0.66479087",
"0.65067303",
"0.6412215",
"0.64060175",
"0.6379368",
"0.6377117",
"0.637668",
"0.63585854",
"0.6313904",
"0.62321764",
"0.6227118",
"0.6196082",
"0.6195551",
"0.61785346",
"0.61675006",
"0.6138815",
"0.61277... | 0.7573473 | 0 |
Test that is_url_for declarations on one class are distinct from those on another class. | def o3sE(YKHO):
YKHO.assertNotEqual(wMsq.url_for_endpoints, wgIo.url_for_endpoints) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rsNH(YKHO):\n bD7m = 'https://shadowrun.needs.management'\n YKHO.assertTrue(iXC1(hiMA.is_url(bD7m)))\n bD7m = 'https:// www.google.com'\n YKHO.assertFalse(iXC1(hiMA.is_url(bD7m)))",
"def yto3(YEnM):\n try:\n Aofo = KVWQ(YEnM)\n return all([Aofo.scheme, Aofo.netloc, Aofo.path])\n ... | [
"0.59825796",
"0.5940046",
"0.5919606",
"0.5890274",
"0.5873385",
"0.58620006",
"0.57634276",
"0.5741979",
"0.5730055",
"0.5716562",
"0.57139075",
"0.57051075",
"0.5698682",
"0.5665582",
"0.5641317",
"0.5610529",
"0.5575139",
"0.5564298",
"0.5554621",
"0.5537491",
"0.55332077... | 0.73218 | 0 |
Return the latest value in this series. | def fsbt(YKHO):
return YKHO.series.tail(1)[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LptK(YKHO):\n if len(YKHO.values) > 0:\n return YKHO.values[-1]\n else:\n return 0",
"def Zmkp(YKHO):\n return YKHO.last_value",
"def CUs1(YKHO):\n return YKHO._last_value",
"def CUs1(YKHO):\n return YKHO._value",
"def CUs1(YKHO):\n return YKHO.samples[-1]",
"def pGiD(... | [
"0.8410519",
"0.79116005",
"0.7865828",
"0.7830085",
"0.7564972",
"0.745795",
"0.7434323",
"0.7434323",
"0.7386836",
"0.7305879",
"0.72503465",
"0.7221665",
"0.72150016",
"0.7208824",
"0.71890277",
"0.703852",
"0.702002",
"0.69903666",
"0.69722044",
"0.6950126",
"0.69447047",... | 0.8702844 | 0 |
Convert an angle in radians into a quaternion _message_. | def c0Qx(YylR):
return R5H8(*ZylS.transformations.quaternion_from_euler(0, 0, YylR)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c0Qx(YylR):\n return R5H8(*ZylS.transformations.quaternion_from_euler(0, 0, YylR))",
"def tguD(YylR, jDK_):\n vexM = XTiz.array([0.0, jDK_[0], jDK_[1], jDK_[2]])\n t2JV = u5Ow(vexM)\n if t2JV > BuE3:\n vexM *= epAf.sin(YylR / 2.0) / t2JV\n vexM[0] = epAf.cos(YylR / 2.0)\n return vexM... | [
"0.7184424",
"0.6586116",
"0.65782166",
"0.6502942",
"0.64593834",
"0.63969165",
"0.63833195",
"0.6304824",
"0.62954307",
"0.62519157",
"0.62373656",
"0.6236086",
"0.609381",
"0.6089491",
"0.6088315",
"0.6080563",
"0.60768217",
"0.6070013",
"0.6065713",
"0.6061386",
"0.605858... | 0.70761853 | 1 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, zrwX):
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.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
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.8457179",
"0.8393067",
"0.81457263",
"0.8140635",
"0.8133462",
"0.8094992",
"0.8093376",
"0.8093376",
"0.8093376",
"0.80863357",
"0.80863357",
"0.8077303",
"0.8077303",
"0.8066831"
] | 0.0 | -1 |
Returns True if linkedlist is cyclic | def OgLE(mcM9):
if not mcM9.head or not mcM9.head.next:
return False
azXi = set()
jvSB = mcM9.head
while jvSB:
if jvSB.data in azXi:
return True
else:
azXi.add(jvSB.data)
jvSB = jvSB.next
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OgLE(mcM9):\n if not mcM9.head or not mcM9.head.next:\n return False\n id7O = DkUh = mcM9.head\n while DkUh and DkUh.next:\n id7O = id7O.next\n DkUh = DkUh.next.next\n if DkUh == id7O:\n return True\n return False",
"def mLRq(YKHO):\n azXi = [False for YR... | [
"0.82857597",
"0.79582113",
"0.7786479",
"0.76969624",
"0.76272607",
"0.7581619",
"0.75750923",
"0.75621927",
"0.7509321",
"0.7492304",
"0.7411968",
"0.73725957",
"0.7304321",
"0.7271526",
"0.72672004",
"0.71242845",
"0.7100384",
"0.70694846",
"0.706597",
"0.6935207",
"0.6840... | 0.8114524 | 1 |
Returns True if linkedlist is cyclic | def OgLE(mcM9):
if not mcM9.head or not mcM9.head.next:
return False
id7O = DkUh = mcM9.head
while DkUh and DkUh.next:
id7O = id7O.next
DkUh = DkUh.next.next
if DkUh == id7O:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OgLE(mcM9):\n if not mcM9.head or not mcM9.head.next:\n return False\n azXi = set()\n jvSB = mcM9.head\n while jvSB:\n if jvSB.data in azXi:\n return True\n else:\n azXi.add(jvSB.data)\n jvSB = jvSB.next\n return False",
"def mLRq(YKHO):\n a... | [
"0.8114524",
"0.79582113",
"0.7786479",
"0.76969624",
"0.76272607",
"0.7581619",
"0.75750923",
"0.75621927",
"0.7509321",
"0.7492304",
"0.7411968",
"0.73725957",
"0.7304321",
"0.7271526",
"0.72672004",
"0.71242845",
"0.7100384",
"0.70694846",
"0.706597",
"0.6935207",
"0.68403... | 0.82857597 | 0 |
Test the radix_sort function. | def UGrn(YKHO):
LOJD = Fba_(YKHO.actual)
YKHO.assertEqual(YKHO.expected, LOJD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pweN():\n from radixsort import radixsort\n xYvp = [5, 3, 2, 7, 9, 4, 0, 1]\n assert radixsort(xYvp) == [0, 1, 2, 3, 4, 5, 7, 9]",
"def drVc():\n from radixsort import radixsort\n for YRbF in range(100):\n OeLM = tuKI.randint(0, 100)\n PULD = []\n for WKvO in range(OeLM):\... | [
"0.8753928",
"0.80272275",
"0.7015981",
"0.6981579",
"0.67306805",
"0.67251253",
"0.6708736",
"0.6635044",
"0.66296977",
"0.66228664",
"0.6511154",
"0.6511154",
"0.6467761",
"0.6462981",
"0.6446105",
"0.64339566",
"0.63228947",
"0.627015",
"0.6259791",
"0.62233526",
"0.618855... | 0.84617704 | 1 |
Converts a string to a list of ints. | def dS1f(vIwR):
gXtX = []
for hcXw in vIwR:
gXtX.append(kShN(hcXw))
return gXtX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tDrF(n_L_):\n return [int(Q7me) for Q7me in n_L_.split(',')]",
"def i5mX(vIwR):\n vIwR = vIwR.split()\n u54L = len(vIwR)\n cB3J = []\n cntZ = int(vIwR[0])\n CsFy = int(vIwR[1])\n pGCm = int(vIwR[2])\n rBqo = int(vIwR[3])\n MB4C = int(vIwR[4])\n cB3J.append(cntZ)\n cB3J.append... | [
"0.81432605",
"0.8093059",
"0.7867134",
"0.78074944",
"0.7754062",
"0.77155924",
"0.7646192",
"0.76061463",
"0.75288945",
"0.7364147",
"0.73415273",
"0.7335448",
"0.73277694",
"0.73225194",
"0.7290918",
"0.72004265",
"0.7199279",
"0.7170711",
"0.71434283",
"0.71203357",
"0.70... | 0.76136655 | 7 |
Create a new column called `Split`, split the data into trainvaltest split and save them to `output_directory`. | def D9e4(gMbG, kmfe, HI29=0.1, NI2E=0.1):
print('Splitting datasets...')
KvQR(kmfe)
for __n6 in gMbG:
mWFP = __n6.name()
if __n6.dataset_exists():
print(f'Dataset {mWFP} is already split. Skipping...')
continue
print(f'Splitting dataset {mWFP}...')
jQ3... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xfh7(jQ3Z, lpha):\n EvQg = jQ3Z.iloc[:int(len(jQ3Z) * lpha)]\n QOe9 = jQ3Z.iloc[int(len(jQ3Z) * lpha):]\n return (EvQg, QOe9)",
"def Qb89(QBPu, Ikji):\n return bHtP(QBPu, Ikji, test_size=0.2, random_state=42, stratify=Ikji)",
"def bHtP(jQ3Z, NI2E=0.3):\n zBu_ = int(jQ3Z.shape[0] * (1 - NI2E)... | [
"0.6906549",
"0.6901513",
"0.6835606",
"0.6821647",
"0.6801417",
"0.6726146",
"0.6640298",
"0.66372555",
"0.66048867",
"0.65740645",
"0.6567868",
"0.6552622",
"0.6544721",
"0.65262765",
"0.6512012",
"0.6507401",
"0.6460772",
"0.64161533",
"0.6399278",
"0.6371944",
"0.631241",... | 0.60643977 | 52 |
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(cRuj, YKHO).__init__(*qIxc, **c_sp)
if YKHO.header is None:
YKHO.header = kKAJ.msg.Header()
if YKHO.x is None:
YKHO.x = u3d1.msg.PoseStamped()
if YKHO.x_desi is None:
YKHO.x_desi = u3d1.msg.Pose... | {
"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.77950794",
"0.7720336",
"0.7720336",
"0.7686725",
"0.7626082",
"0.75635314",
"0.7439626",
"0.74171734",
"0.73522437",
"0.7308215",
"0.72808266",
"0.7238561",
"0.7227589",
"0.7224258",
"0.7224258",
"0.7219543",
"0.7211657",
"0.7211657",
"0.7211657",
"0.7211657",
"0.7211657"... | 0.0 | -1 |
Returns a formatted string containing the start date of the event with respect to the current locale and to the ``show_times`` setting. | def wLK2(YKHO) -> str:
return dcJF(YKHO.date_from, 'DATETIME_FORMAT' if YKHO.settings.show_times else 'DATE_FORMAT') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sJft(YKHO):\n StE7 = YKHO.runtime.service(YKHO, 'i18n')\n bGrB = StE7.ugettext\n F803 = StE7.strftime\n\n def Kkpg(l5Ny):\n try:\n Aofo = Qrp8().from_json(l5Ny)\n if Aofo is None:\n Aofo = l5Ny.title()\n else:\n Aofo = F803(Aofo,... | [
"0.7131341",
"0.69635767",
"0.6604521",
"0.6604521",
"0.66030943",
"0.6584703",
"0.6512063",
"0.6344532",
"0.6337087",
"0.63150364",
"0.63097066",
"0.6249729",
"0.6200742",
"0.6146806",
"0.6134303",
"0.60933673",
"0.6075157",
"0.6045663",
"0.6045663",
"0.60321003",
"0.6025002... | 0.73349273 | 0 |
Returns a formatted string containing the start date of the event with respect to the current locale and to the ``show_times`` setting. Returns an empty string if ``show_date_to`` is ``False``. | def leql(YKHO) -> str:
if not YKHO.settings.show_date_to:
return ''
return dcJF(YKHO.date_to, 'DATETIME_FORMAT' if YKHO.settings.show_times else 'DATE_FORMAT') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wLK2(YKHO) -> str:\n return dcJF(YKHO.date_from, 'DATETIME_FORMAT' if YKHO.settings.show_times else 'DATE_FORMAT')",
"def sJft(YKHO):\n StE7 = YKHO.runtime.service(YKHO, 'i18n')\n bGrB = StE7.ugettext\n F803 = StE7.strftime\n\n def Kkpg(l5Ny):\n try:\n Aofo = Qrp8().from_json... | [
"0.75314003",
"0.61698425",
"0.6168201",
"0.61607456",
"0.6011269",
"0.5935802",
"0.57879746",
"0.57879746",
"0.5777352",
"0.56856716",
"0.5599108",
"0.5578707",
"0.55216694",
"0.55216694",
"0.5449624",
"0.54163945",
"0.54107505",
"0.52958435",
"0.5276258",
"0.5257653",
"0.52... | 0.75081867 | 1 |
This method is used to determine whether this Item is currently available for sale. | def taXf(YKHO):
if YKHO.properties.count() > 0:
raise ValueError('Do not call this directly on items which have properties but call this on their ItemVariation objects')
return min([vexM.availability() for vexM in YKHO.quotas.all()]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yWbd(YKHO) -> bool:\n return YKHO._product and YKHO._product.online",
"def yWbd(YKHO) -> bool:\n return YKHO._product.online",
"def yWbd(YKHO) -> bool:\n return YKHO._product.online",
"def yWbd(YKHO) -> bool:\n return qe4Y.get(YKHO, 'available')",
"def yWbd(YKHO) -> bool:\n return YKHO._... | [
"0.72324836",
"0.7027602",
"0.7027602",
"0.70158225",
"0.6879664",
"0.6842883",
"0.67713404",
"0.6720407",
"0.67135215",
"0.67135215",
"0.6683946",
"0.6683946",
"0.6683946",
"0.6683946",
"0.6683946",
"0.6664476",
"0.6649109",
"0.66463643",
"0.66380775",
"0.6608348",
"0.659744... | 0.0 | -1 |
Get the local task queues. | def YbhR():
return rMu8.__dict__.setdefault('task_queues', oRi_(list)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def If3l(YKHO):\n return YKHO.manager.get_queue_list()",
"def o_ta(YKHO):\n return YKHO.__queues",
"def o_ta(YKHO):\n return YKHO.__queues",
"def o_ta(YKHO):\n return YKHO.__queues",
"def o_ta(YKHO):\n return YKHO.__queues",
"def o_ta(YKHO):\n return YKHO.__queues",
"def o_ta(YKHO):\n... | [
"0.7504683",
"0.7367488",
"0.7367488",
"0.7367488",
"0.7367488",
"0.7367488",
"0.7367488",
"0.7367488",
"0.7367488",
"0.7367488",
"0.73668957",
"0.7037355",
"0.6979956",
"0.6931894",
"0.6794612",
"0.66510695",
"0.64876384",
"0.6455231",
"0.63946617",
"0.6363944",
"0.62890834"... | 0.723063 | 11 |
Retrieves products which are in the product table. | def C76W(id):
NCls = GGod()
C76W = NCls.execute('SELECT product_id, product_name, quantity FROM product WHERE for_business = ? AND quantity > 0', (id,)).fetchall()
return C76W | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CnKV():\n Ldyl = P4t4.session.query(FYrf.Product).all()\n return Ldyl",
"def Ldyl(YKHO):\n return list(msfn.select())",
"def uQsB(YKHO):\n return YKHO._make_get_request(YKHO._urls['products'])",
"def CnKV(YKHO):\n pass",
"def CxaC(YKHO):\n hAVj = tqlg()\n DpUl = hAVj.cursor()\n ... | [
"0.71760863",
"0.7162592",
"0.7137824",
"0.7046695",
"0.6927646",
"0.684623",
"0.68116623",
"0.6808153",
"0.67466056",
"0.6745379",
"0.6716586",
"0.66852856",
"0.66484797",
"0.66199297",
"0.6615095",
"0.6604761",
"0.658257",
"0.658238",
"0.6526238",
"0.6517985",
"0.6448445",
... | 0.6420188 | 22 |
Used by the movement page to get the quantity of a product. | def tXqr(cd__, hksT):
NCls = GGod()
fIcA = cuiw.get('user_id')
Sgcx = {}
if hksT == 'Products':
if cd__ != 'None':
vexM = NCls.execute('SELECT quantity FROM product WHERE product_id = ? AND for_business = ?', (cd__, fIcA)).fetchone()
Sgcx['qty'] = str(vexM['quantity'])
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Atmd(YKHO, KBgZ, PObu, QpfX=None):\n if QpfX is None:\n QpfX = {}\n return YKHO.calc_qty(KBgZ, PObu, QpfX['active_id'], context=QpfX)",
"def cTRz(YKHO):\n return YKHO._quantity",
"def Sgcx(YKHO):\n return YKHO._qty",
"def Sgcx(YKHO):\n return YKHO._qty",
"def Sgcx(YKHO):\n retu... | [
"0.76257485",
"0.76112825",
"0.73950773",
"0.73950773",
"0.73950773",
"0.739446",
"0.736247",
"0.7319676",
"0.72150004",
"0.70647335",
"0.70375305",
"0.69283897",
"0.6592257",
"0.6553313",
"0.64841473",
"0.6482976",
"0.64609164",
"0.6435165",
"0.6407856",
"0.6403097",
"0.6400... | 0.71329355 | 9 |
Return a friendly HTTP greeting. | def LRuN(o61b):
aevO = okPj(o61b)
return aevO.get_quote() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tz38(mWFP):\n BYLU = f\"Hello, {mWFP.title()}. It's nice to meet you!\"\n return BYLU",
"def uthR():\n return 'Welcome to Flask!'",
"def Y7u5(mWFP):\n print('My name is ' + mWFP)",
"def qjYe():\n return f\"Welcome to the Surf's Up API!Available Routes:<br/>/api/v1.0/surfs-up\"",
"def Wze... | [
"0.67861116",
"0.671909",
"0.67098147",
"0.6681713",
"0.6663591",
"0.663865",
"0.66334784",
"0.66282094",
"0.65564704",
"0.6537159",
"0.6478153",
"0.64774853",
"0.64703834",
"0.6464776",
"0.64439946",
"0.6435135",
"0.6401036",
"0.6400535",
"0.6375895",
"0.6375895",
"0.6367971... | 0.0 | -1 |
Creates a node that represents np.broadcast_to(node_A, node_B.shape). | def CnRm(HEP1, KIkt):
return Mbm5()(HEP1, KIkt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nrOS(YKHO, HEP1):\n Esd_ = dz6B.__call__(YKHO)\n Esd_.inputs = [HEP1]\n Esd_.name = 'Oneslike[%s]' % HEP1.name\n return Esd_",
"def kIOb(Q6kx, **B2fa):\n mWFP, uvt8, o8Kj = Zo7w(Q6kx, B2fa)\n ihqc = Mlpe(o8Kj['shape'])\n MuED = B2fa['initializer']\n fbC0 = oyIN.array(ihqc, dtype='int6... | [
"0.6666761",
"0.6659025",
"0.654645",
"0.63538057",
"0.6327516",
"0.6319324",
"0.62949514",
"0.6266634",
"0.6178212",
"0.61454374",
"0.6051135",
"0.5936199",
"0.59056914",
"0.57944137",
"0.5778465",
"0.57575446",
"0.56963354",
"0.56923544",
"0.565333",
"0.5625701",
"0.5575835... | 0.77207065 | 0 |
Given `payoff_array` with ndim=M, return the payoff array with ndim=M1 fixing the last player's action to be `action`. | def cLTq(yPbo, XeOP):
if isinstance(XeOP, mSrU.Integral):
return yPbo.take(XeOP, axis=-1)
else:
return yPbo.dot(XeOP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i5ur(YKHO, ev5O):\n\n def cLTq(yPbo, XeOP):\n \"\"\"\n Given `payoff_array` with ndim=M, return the payoff array\n with ndim=M-1 fixing the last player's action to be `action`.\n\n \"\"\"\n if isinstance(XeOP, mSrU.Integral):\n return yPbo.take(XeOP,... | [
"0.61896527",
"0.57726955",
"0.5655154",
"0.534237",
"0.5307442",
"0.5270126",
"0.5082962",
"0.50820214",
"0.502772",
"0.4990429",
"0.4967821",
"0.4954014",
"0.49503568",
"0.4917324",
"0.4901366",
"0.48845673",
"0.48834804",
"0.48795328",
"0.4873013",
"0.47989064",
"0.4791833... | 0.802484 | 0 |
Return a list of actions that are strictly dominated by some mixed actions. | def Sz8k(YKHO, yJiH=None, NKcE=None):
yvT9 = []
for XeOP in range(YKHO.num_actions):
if YKHO.is_dominated(XeOP, tol=yJiH, method=NKcE):
yvT9.append(XeOP)
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tvuq(YKHO):\n return set(filter(lambda WKvO: not isinstance(WKvO, uS0y), YKHO.behaviour()))",
"def z8Ay(YKHO, QTBn):\n xASv = [YRbF for YRbF in range(-5, 6)]\n for XeOP in xASv:\n if XeOP > QTBn[0] or XeOP < -QTBn[1]:\n xASv.remove(XeOP)\n return xASv",
"def Zwao(YKHO):\n x... | [
"0.61810017",
"0.61473125",
"0.5949959",
"0.589096",
"0.587577",
"0.5787308",
"0.5774201",
"0.57722336",
"0.57545906",
"0.57241243",
"0.5702353",
"0.56992173",
"0.5688286",
"0.5673033",
"0.56673825",
"0.5666372",
"0.56426305",
"0.56363314",
"0.561346",
"0.5606041",
"0.5593412... | 0.7470228 | 0 |
Return chip time in required format. | def JSsa(yKcO, Os4s):
uPyi, XUOd, D39C = yKcO.split(':')
kCjO, ZWDr, gD0G = Os4s.split(':')
gjX5 = int(kCjO) - int(uPyi)
QxBb = int(ZWDr) - int(XUOd)
lLad = int(gD0G) - int(D39C)
f8xS = gjX5 * 60 * 60 + QxBb * 60 + lLad
GNbQ = f8xS // (60 * 60)
fjLe = (f8xS - GNbQ * 60 * 60) // 60
Cd... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m7L9(YKHO):\n return '%02u:%02u:%02u (%d)' % YKHO.rtc.datetime()[4:8]",
"def m7L9(YKHO):\n WKvO = ITS7.localtime()\n return ''.join([str(WKvO[0]).rjust(4, '0'), '/', str(WKvO[1]).rjust(2, '0'), '/', str(WKvO[2]).rjust(2, '0'), ' ', str(WKvO[3]).rjust(2, '0'), ':', str(WKvO[4]).rjust(2, '0'), ':', st... | [
"0.8068728",
"0.7735697",
"0.7542246",
"0.7542246",
"0.7466049",
"0.7461879",
"0.73698246",
"0.73347324",
"0.72966886",
"0.7271676",
"0.72571206",
"0.7216136",
"0.7210773",
"0.7186142",
"0.7175955",
"0.7165639",
"0.7149126",
"0.70763546",
"0.7057985",
"0.7012951",
"0.6984495"... | 0.7596016 | 2 |
Used to create a dense layer. | def A0RF(WKvO, MxXY, cWFu, mWFP):
with ZylS.variable_scope(mWFP, reuse=None):
_mSQ = ZylS.get_variable('weights', shape=[MxXY, cWFu], initializer=ZylS.random_normal_initializer(mean=0.0, stddev=0.01))
oug5 = ZylS.get_variable('bias', shape=[cWFu], initializer=ZylS.constant_initializer(0.0))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A0RF(PL8k):\n return l6ZH(vNnt, kernel_initializer=MuED())(PL8k)",
"def rFSS(YKHO, gEmA):\n pass",
"def meuU(YKHO, FRUf, a6Jb, _Ycl=None, mWFP=None):\n return ZylS.layers.dense(FRUf, a6Jb, activation=_Ycl, kernel_initializer=ZylS.contrib.layers.variance_scaling_initializer(), kernel_regularizer=Zy... | [
"0.76484036",
"0.76465064",
"0.76412284",
"0.7377716",
"0.73189133",
"0.7122971",
"0.692109",
"0.683266",
"0.67409086",
"0.67067945",
"0.66833633",
"0.65608716",
"0.6544221",
"0.6529006",
"0.6489199",
"0.6448582",
"0.6313288",
"0.6254297",
"0.62455183",
"0.6233911",
"0.621484... | 0.57410717 | 77 |
Return list of indexes with length 'size' in descending order [from best to worst] | def kJPe(wkbQ, zNig):
ZPeR = []
for YRbF, bGrB in enumerate(wkbQ):
ZPeR.append(YRbF)
le2m, Mzur = dDGN.sort_lists(wkbQ, ZPeR, descending=True)
return [Mzur[G1Hx] for G1Hx in range(zNig)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tnud(wkbQ, zNig):\n ZPeR = []\n for YRbF, bGrB in enumerate(wkbQ):\n ZPeR.append(YRbF)\n le2m, Mzur = dDGN.sort_lists(wkbQ, ZPeR, descending=False)\n return [Mzur[G1Hx] for G1Hx in range(zNig)]",
"def wY3X(KeL5, x5Ie):\n WKof = sorted(enumerate(KeL5), key=lambda WKvO: WKvO[1], reverse=T... | [
"0.7540718",
"0.6696156",
"0.6666932",
"0.6666932",
"0.6666932",
"0.6657952",
"0.6655765",
"0.6455048",
"0.6340084",
"0.5878087",
"0.5858202",
"0.57793754",
"0.5776097",
"0.5759967",
"0.567609",
"0.56121266",
"0.5564823",
"0.55271596",
"0.5523938",
"0.5498709",
"0.5490048",
... | 0.68256915 | 1 |
Return list of indexes with length 'size' in ascending order [from worst to best] | def tnud(wkbQ, zNig):
ZPeR = []
for YRbF, bGrB in enumerate(wkbQ):
ZPeR.append(YRbF)
le2m, Mzur = dDGN.sort_lists(wkbQ, ZPeR, descending=False)
return [Mzur[G1Hx] for G1Hx in range(zNig)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kJPe(wkbQ, zNig):\n ZPeR = []\n for YRbF, bGrB in enumerate(wkbQ):\n ZPeR.append(YRbF)\n le2m, Mzur = dDGN.sort_lists(wkbQ, ZPeR, descending=True)\n return [Mzur[G1Hx] for G1Hx in range(zNig)]",
"def wY3X(KeL5, x5Ie):\n WKof = sorted(enumerate(KeL5), key=lambda WKvO: WKvO[1], reverse=Tr... | [
"0.7027825",
"0.6992243",
"0.6959604",
"0.6959604",
"0.6959604",
"0.6956015",
"0.6947875",
"0.67696637",
"0.6314496",
"0.6136038",
"0.6011622",
"0.5962963",
"0.59599835",
"0.5919544",
"0.5881155",
"0.5841831",
"0.5697509",
"0.56903493",
"0.56503266",
"0.5638059",
"0.561843",
... | 0.73476 | 0 |
Create a mock Frontier Silicon config entry. | def PhL6() -> Jaru:
return Jaru(domain=Sugg, unique_id='mock_radio_id', data={xQ5c: 'http://1.1.1.1:80/webfsapi', OK13: '1234'}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XRWJ() -> Jaru:\n return Jaru(title='homeassistant.github', domain=Sugg, data={ScHc: 'homeassistant.github', fFds: 'tskey-MOCK'}, unique_id='homeassistant.github')",
"def XRWJ() -> Jaru:\n return Jaru(title='Home', domain=Sugg, data={giSx: 'zone.home'}, unique_id='zone.home')",
"def XRWJ() -> Jaru:\n... | [
"0.7108559",
"0.7077577",
"0.68844694",
"0.67758596",
"0.6705947",
"0.65298116",
"0.64179355",
"0.6396702",
"0.61700094",
"0.6151815",
"0.6086461",
"0.60416204",
"0.60312986",
"0.6007247",
"0.5999427",
"0.5983245",
"0.5959966",
"0.5959883",
"0.59578097",
"0.59496754",
"0.5924... | 0.72320616 | 0 |
Tests if each value in df1 is less than or equal the corresponding value in df2. | def aPrO(_lYe, qaAi):
_0VL = list(set(_lYe.index).intersection(qaAi.index))
gLXy = _lYe.loc[_0VL, :]
_p1M = qaAi.loc[_0VL, :]
jQ3Z = gLXy - _p1M
U0W_ = jQ3Z.applymap(lambda Ty9i: Ty9i <= 0)
Aofo = U0W_.sum().sum() == jQ3Z.size
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cIT_(_lYe, qaAi, rhd_=0.5) -> bool:\n return ((_lYe - qaAi).abs() < rhd_).all()",
"def Gcbo(_lYe: pd.DataFrame, KL0Q: str, C6it: str, qaAi: pd.DataFrame, Wbo0: str, irw9: str) -> tuple:\n UAju = ''\n qmLP = ''\n _lYe.columns = [fvDH.upper() for fvDH in _lYe.columns]\n qaAi.columns = [fvDH.uppe... | [
"0.69443727",
"0.6741195",
"0.65760213",
"0.6500689",
"0.64823395",
"0.6424357",
"0.631269",
"0.626798",
"0.6211651",
"0.6206919",
"0.61776984",
"0.6177458",
"0.615301",
"0.6136578",
"0.6131348",
"0.6125575",
"0.6027715",
"0.6015171",
"0.6009877",
"0.5995311",
"0.5970432",
... | 0.76282096 | 0 |
Parse the activation function | def YB0c(ER7H):
n7eK = dict(relu=ZylS.nn.relu, leaky_relu=KkY2.leaky_relu, prelu=KkY2.prelu, elu=ZylS.nn.elu, selu=KkY2.selu, tanh=ZylS.nn.tanh, identity=ZylS.identity)
if ER7H in n7eK.keys():
return n7eK[ER7H]
else:
raise RuntimeError("unknown nonlinearity: '{}'".format(ER7H)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o390(YKHO, AdfU, YDYE):\n if YDYE == 'ReLU':\n AdfU.append(U78l.ReLU())\n elif YDYE == 'Sigmoid':\n AdfU.append(U78l.Sigmoid())\n else:\n raise Exception('Invalid activation fn: ' + YDYE)",
"def sYYm(YDYE: str) -> U78l.Module:\n if YDYE == 'ReLU':\n return U78l.ReLU()\... | [
"0.6743499",
"0.66882205",
"0.6623978",
"0.6606778",
"0.65548074",
"0.65427893",
"0.65065235",
"0.6484246",
"0.645754",
"0.64434254",
"0.63390094",
"0.6314726",
"0.62277126",
"0.61801785",
"0.615945",
"0.61255455",
"0.6078174",
"0.6069059",
"0.6058174",
"0.6057722",
"0.604052... | 0.0 | -1 |
Stack the fullyconnected layers Note that according to the paper 'Parameter Space Noise for Exploration', layer normalization should only be used for the fullyconnected part of the network. | def qqe1(YKHO, wjQX):
for ramr, XIKn in enumerate(YKHO.hps.hid_widths, start=1):
xgC2 = 'fc{}'.format(ramr)
wjQX = NXYx.Linear(output_size=XIKn, name=xgC2, initializers=YKHO.hid_initializers, regularizers=YKHO.hid_regularizers)(wjQX)
wjQX = YB0c(YKHO.hps.hid_nonlin)(wjQX)
return wjQX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E5BI(YKHO):\n nPrm = YKHO.data_container[0]\n YKHO.init_stacked_net(nPrm)\n YKHO.stacked_net.weights = [jzdc[0] for jzdc in YKHO.weights_container] + [jzdc[1] for jzdc in YKHO.weights_container][::-1]\n YKHO.stacked_net.biases = [jzdc[0] for jzdc in YKHO.bias_container] + [jzdc[1] for jzdc in YKHO.... | [
"0.69056445",
"0.6279499",
"0.6076502",
"0.5987528",
"0.5942274",
"0.59197885",
"0.5919048",
"0.59139645",
"0.5906133",
"0.5894325",
"0.5890189",
"0.5882989",
"0.5821994",
"0.58091915",
"0.578582",
"0.5778693",
"0.576663",
"0.5766626",
"0.5763617",
"0.5753908",
"0.5743952",
... | 0.5398385 | 84 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, gO7U):
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.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
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 |
Reads and returns content from a file. Read file line by line and concatenate them | def bNFC(Ux0P):
with open(Ux0P, 'r') as eHNT:
Nqlg = [zFiD for zFiD in eHNT]
return ''.join(Nqlg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nwr9(qaEx):\n l5Ny = ''\n with open(qaEx, 'r') as nUeQ:\n for zFiD in nUeQ.readlines():\n l5Ny += zFiD\n return l5Ny",
"def Nwr9(qaEx):\n GZKc = ''\n with open(qaEx, 'r', newline='') as nUeQ:\n for zFiD in nUeQ:\n GZKc = GZKc + zFiD.rstrip('\\n')\n return... | [
"0.70576936",
"0.70480853",
"0.69094455",
"0.68835706",
"0.6851682",
"0.6814471",
"0.675316",
"0.67309034",
"0.6658743",
"0.6614293",
"0.6605905",
"0.65617156",
"0.6528099",
"0.6523903",
"0.6517595",
"0.6508807",
"0.6494855",
"0.6461153",
"0.64544773",
"0.6446512",
"0.6443949... | 0.6378177 | 28 |
This method checks to see if the incoming C{SOM} object and the current one are equal. | def xa14(YKHO, Elif):
try:
if YKHO.__title__ != Elif.getTitle():
return False
if YKHO.__y_units__ != Elif.getYUnits():
return False
if YKHO.__y_label__ != Elif.getYLabel():
return False
if YKHO.__data_set_type__ != Elif.getDataSetType():
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n if not isinstance(Elif, C0la):\n return False\n return YKHO.to_dict() == Elif.to_dict()",
"def xa14(YKHO, Elif):\n if not isinstance(Elif, T5Ke):\n return False\n return YKHO.__dict__ == Elif.__dict__",
"def xa14(YKHO, Elif):\n if not isinstance(Elif, gPCZ):... | [
"0.6799237",
"0.6766977",
"0.65409577",
"0.6529021",
"0.6481254",
"0.6464786",
"0.6446741",
"0.63772464",
"0.63771963",
"0.6357874",
"0.6314697",
"0.62996596",
"0.629853",
"0.6283853",
"0.62426305",
"0.6231216",
"0.6222776",
"0.62164736",
"0.62100697",
"0.6208551",
"0.6205604... | 0.0 | -1 |
This method checks to see if the incoming C{SOM} object and the current one are not equal. | def Vdqg(YKHO, Elif):
return not YKHO.__eq__(Elif) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif):\n if not isinstance(Elif, C0la):\n return True\n return YKHO.to_dict() != Elif.to_dict()",
"def Vdqg(YKHO, Elif):\n if not isinstance(Elif, v3qw):\n return True\n return YKHO.to_dict() != Elif.to_dict()",
"def Vdqg(YKHO, Elif):\n if not isinstance(Elif, EBka):... | [
"0.72073424",
"0.6760201",
"0.67230237",
"0.66548544",
"0.6651343",
"0.6631241",
"0.653959",
"0.6532832",
"0.65041995",
"0.650279",
"0.65019786",
"0.6485212",
"0.648408",
"0.64627445",
"0.6444931",
"0.6439849",
"0.643268",
"0.63708925",
"0.6343264",
"0.63253146",
"0.6320866",... | 0.0 | -1 |
This method returns the axis index (starting from zero) according to the units requested. | def qPZw(YKHO, rYO3):
return YKHO.__axis_units__.index(rYO3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nW8f(YKHO, H5ew):\n for YRbF, mWFP in enumerate(YKHO.axis_labels):\n if mWFP == H5ew:\n return YRbF\n raise ValueError(f'Axis not found: {H5ew}')",
"def XPFD(YKHO, BHsk):\n return BHsk + 1 if BHsk + 1 > YKHO.dimensions - 1 else 0",
"def QIui(YKHO, jDK_):\n return YKHO.index if... | [
"0.7077374",
"0.6839654",
"0.6826188",
"0.6659438",
"0.658922",
"0.65456146",
"0.6489325",
"0.6420881",
"0.6358632",
"0.63059896",
"0.6296557",
"0.6280481",
"0.6249501",
"0.6176344",
"0.61601216",
"0.61466664",
"0.6131482",
"0.6107644",
"0.6103854",
"0.6101671",
"0.6060056",
... | 0.7851199 | 0 |
This method returns the independent axis units at the requested index. | def E5s5(YKHO, tpio=0):
return YKHO.__axis_units__[tpio] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qPZw(YKHO, rYO3):\n return YKHO.__axis_units__.index(rYO3)",
"def IGUV(YKHO):\n return YKHO._axis_units",
"def h9pB(WKvO, jDK_):\n return getattr(WKvO, 'units', None)",
"def jDK_(QyVM):\n return (QyVM % 15, QyVM // 15)",
"def BMd1(YKHO):\n import copy\n return copy.copy(YKHO.__axis_un... | [
"0.7280665",
"0.67814726",
"0.6281341",
"0.60555446",
"0.60019284",
"0.5998678",
"0.5973304",
"0.5960795",
"0.59310365",
"0.5914087",
"0.58959544",
"0.58672315",
"0.58649457",
"0.5862845",
"0.5853847",
"0.5801113",
"0.57252026",
"0.5703387",
"0.5679284",
"0.5678495",
"0.56655... | 0.72826463 | 0 |
This method returns the dependent axis units. | def jEL4(YKHO):
return YKHO.__y_units__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IGUV(YKHO):\n return YKHO._axis_units",
"def E5s5(YKHO, tpio=0):\n return YKHO.__axis_units__[tpio]",
"def b82i(YKHO):\n return YKHO.var_units",
"def b82i(YKHO):\n return YKHO._var_unit",
"def b82i(YKHO):\n return YKHO._var_unit",
"def _nDu(YKHO):\n return str(YKHO._modeler.GetModel... | [
"0.8158286",
"0.80748844",
"0.7308062",
"0.69652015",
"0.69652015",
"0.68754274",
"0.68653375",
"0.6760091",
"0.6737389",
"0.6737389",
"0.66689086",
"0.66575116",
"0.6615102",
"0.65640587",
"0.65431285",
"0.65415883",
"0.65258855",
"0.6524156",
"0.65214235",
"0.6492006",
"0.6... | 0.68908787 | 5 |
Evaluates the Recall considering only the positions up to k | def Scpn(YKHO, FBNX, G1Hx, eAYh):
return 1.0 * sum((YRbF <= G1Hx for YRbF in FBNX)) / eAYh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AOzf(_ger, nvEb, G1Hx):\n G1Hx = min(len(nvEb), G1Hx)\n return sum([int(nvEb[YRbF] in _ger) for YRbF in range(G1Hx)]) / len(_ger)",
"def aijD(YKHO, G1Hx=None):\n G1Hx = 1 if G1Hx is None else G1Hx\n dYrk = []\n for xDcj, ANfV in PRqg(zip(YKHO.test_queries, YKHO.results)):\n UTXY = YKHO.... | [
"0.77255607",
"0.73972607",
"0.72423667",
"0.71741813",
"0.712174",
"0.7052004",
"0.7042011",
"0.70346326",
"0.6906476",
"0.68408525",
"0.68034136",
"0.67937416",
"0.6774128",
"0.6773185",
"0.66638553",
"0.66242826",
"0.66134137",
"0.6470345",
"0.6446569",
"0.63866365",
"0.63... | 0.8341324 | 0 |
Add a department to the database | def EmAB():
l4un()
EmAB = True
L03z = vYPW()
if L03z.validate_on_submit():
X5CZ = Mjcm(name=L03z.name.data, description=L03z.description.data)
try:
NCls.session.add(X5CZ)
NCls.session.commit()
Dwep('You have successfully added a new department.')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pzgw(YKHO):\n if CNr5.idx_department_exists(1) is False:\n AIu6 = Mjcm(code=XHYP.encode(YKHO.reserved), name=XHYP.encode(YKHO.reserved))\n p9bx = NCls.Database()\n p9bx.add(AIu6, 1102)",
"def EmAB():\n l4un()\n EmAB = True\n L03z = vYPW()\n if L03z.validate_on_submit():\n ... | [
"0.83917457",
"0.8117929",
"0.8051524",
"0.793637",
"0.78954226",
"0.73722005",
"0.67043567",
"0.65912306",
"0.65847",
"0.6556103",
"0.652952",
"0.6419693",
"0.6419693",
"0.6350818",
"0.629756",
"0.62789965",
"0.62106425",
"0.6005441",
"0.5967767",
"0.5939432",
"0.5909814",
... | 0.80200076 | 3 |
Returns whether this Task is cached or not. | def KwDD(YKHO, qIxc) -> bool:
return all([l34Y.built for l34Y in YKHO.artifacts]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ImCi(YKHO):\n return False",
"def VfG7(YKHO):\n try:\n wyyA = YKHO.get_cache()\n return True\n except (KeyError, AttributeError):\n return False",
"def ImCi(YKHO):\n if YKHO.should_persist:\n return YKHO._result_value_hash is not None\n else:\n return YKHO.... | [
"0.80735415",
"0.77579343",
"0.7723036",
"0.74244744",
"0.7222952",
"0.70983016",
"0.70923585",
"0.7008339",
"0.69545656",
"0.6893437",
"0.6879189",
"0.6814287",
"0.68024516",
"0.6711287",
"0.66985023",
"0.65845",
"0.65685356",
"0.65315366",
"0.65106106",
"0.6505485",
"0.6411... | 0.6252107 | 26 |
Constructor method. Takes in the API_KEY and checks for pagination | def FIMM(YKHO, rJDA, xDcj, gFp2, DpZH=None):
if not DpZH:
DpZH = 1
YKHO.api_key = rJDA
YKHO.offset = uwaB.OFFSET
YKHO.query = xDcj
YKHO.QUERY_URL = gFp2
YKHO.version = DpZH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, rJDA=None):\n YKHO.api_key = rJDA",
"def FIMM(YKHO, rJDA: str):\n YKHO.api_key = rJDA",
"def FIMM(YKHO, rJDA):\n YKHO.api_key = rJDA",
"def FIMM(YKHO, rJDA):\n YKHO._api_key = rJDA\n YKHO._get_params = uRlK.urlencode({'subscription-key': rJDA})\n YKHO._headers = {}",
"def F... | [
"0.7344335",
"0.72938865",
"0.7255271",
"0.70139146",
"0.6993064",
"0.6897074",
"0.68755317",
"0.68524563",
"0.6839125",
"0.6837949",
"0.67394197",
"0.6738792",
"0.6714845",
"0.66816974",
"0.66709036",
"0.66433716",
"0.66258657",
"0.6594246",
"0.65829545",
"0.6579209",
"0.655... | 0.6929771 | 5 |
Default Constructor for making object for api_key. | def FIMM(YKHO, xDcj, rJDA, DpZH=None):
if not DpZH:
DpZH = 1
yUCR.__init__(YKHO, api_key=rJDA, query=xDcj, query_base=YKHO.WEB_QUERY_BASE, version=DpZH) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, rJDA=None):\n YKHO.api_key = rJDA",
"def FIMM(YKHO, rJDA: str):\n YKHO.api_key = rJDA",
"def FIMM(YKHO, rJDA):\n YKHO.api_key = rJDA",
"def FIMM(YKHO, H5ew=None):\n YKHO._key = H5ew or Hy7s.environ['HERE_API_KEY']",
"def FIMM(YKHO, rJDA='YOUR_API_KEY'):\n YKHO.api_key = rJDA",... | [
"0.8742466",
"0.8703815",
"0.8605051",
"0.83497334",
"0.82548773",
"0.8029223",
"0.7863644",
"0.7863153",
"0.78603566",
"0.7784199",
"0.773615",
"0.7723763",
"0.7700769",
"0.7694201",
"0.7682376",
"0.7660426",
"0.7646975",
"0.7646176",
"0.7551285",
"0.753317",
"0.75245863",
... | 0.0 | -1 |
creates a square board based on the given board size | def efGj(BrEt):
iBIi = []
for YRbF in range(BrEt):
rdlD = []
for r845 in range(BrEt):
rdlD.append('-')
iBIi.append(rdlD)
return iBIi | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dDiH(zNig=8):\n J1b4 = (eJVO + XDQs) * int(zNig / 2) + '\\n'\n CYjz = (XDQs + eJVO) * int(zNig / 2) + '\\n'\n print((J1b4 + CYjz) * int(zNig / 2))",
"def efGj(YKHO, zNig):\n WKvO = oyIN.arange(0, zNig[0])\n LVAh = oyIN.arange(0, zNig[1])\n iBIi = oyIN.meshgrid(WKvO, LVAh)\n return iBIi",... | [
"0.7995761",
"0.790709",
"0.7600666",
"0.7598976",
"0.7494759",
"0.7443021",
"0.73594",
"0.7335968",
"0.7320766",
"0.72792345",
"0.71627986",
"0.71050584",
"0.7075894",
"0.70658535",
"0.69794375",
"0.6965641",
"0.6932644",
"0.6921889",
"0.68566453",
"0.6846962",
"0.6843766",
... | 0.7857048 | 2 |
Convert the serialized representation (a string representation of a list of strings) to a proper list. | def xzCw(Emd4, BWXx):
if isinstance(BWXx, str):
BWXx = qQXR.loads(BWXx)
try:
BWXx = [int(ZfUD) for ZfUD in BWXx]
except ValueError:
pass
BWXx = sorted(BWXx)
return Emd4(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LTTy(YKHO, oAiD):\n return LTTy(oAiD)",
"def CD8v(Emd4, Ty9i: Union[List[str], str]) -> x1iM[str]:\n if isinstance(Ty9i, str):\n return Ty9i.split(',')\n return Ty9i",
"def hpy1(BWXx):\n return [Ty9i.serialize() for Ty9i in BWXx]",
"def mFWN(BWXx):\n if hasattr(BWXx, '__iter__') and... | [
"0.7495068",
"0.726814",
"0.7157261",
"0.6962899",
"0.6950877",
"0.69139576",
"0.6909117",
"0.68924606",
"0.6857784",
"0.68331903",
"0.6693741",
"0.66695076",
"0.6661835",
"0.666121",
"0.66278154",
"0.66080415",
"0.6501439",
"0.6493287",
"0.6490544",
"0.64656717",
"0.6452822"... | 0.0 | -1 |
Convert the JSON dictionary read from the JSON to create a Transect object | def pCXw(YKHO, YGFP):
YKHO.Checked = YGFP['Checked']
YKHO.Files = YGFP['Files']
YKHO.Notes = YGFP['Notes']
YKHO.field_config = YGFP['field_config']
YKHO.active_config = YGFP['active_config']
YKHO.moving_bed_type = YGFP['moving_bed_type'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cc7Y(pu1N, DYeJ, Ydy6):\n Dr1U = [{'language': uLgc['languageName']['simpleText'], 'language_code': uLgc['languageCode']} for uLgc in Ydy6['translationLanguages']]\n qOjA = {}\n pUvN = {}\n for KzVY in Ydy6['captionTracks']:\n if KzVY.get('kind', '') == 'asr':\n jY2V = pUvN\n ... | [
"0.58459765",
"0.56957835",
"0.5579733",
"0.54493576",
"0.5416974",
"0.5406986",
"0.5322988",
"0.53040296",
"0.5289294",
"0.52866656",
"0.52866656",
"0.5273284",
"0.5271602",
"0.52619547",
"0.5252543",
"0.5249552",
"0.5234681",
"0.5232338",
"0.5231818",
"0.5212274",
"0.521224... | 0.0 | -1 |
check if the string is valid url or not. | def P7MD(bD7m: str) -> bool:
import re
njyT = re.compile('^(?:http|ftp)s?://(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\\.)+(?:[A-Z]{2,6}\\.?|[A-Z0-9-]{2,}\\.?)|localhost|\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})(?::\\d+)?(?:/?|[/?]\\S+)$', re.IGNORECASE)
return re.match(njyT, bD7m) is not None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P5bi(KCHu):\n return tbXV.match(KCHu)",
"def XdzF(vIwR):\n return 'http' in vIwR",
"def yto3(vIwR):\n try:\n KVWQ(vIwR)\n return True\n except:\n return False",
"def jr1t(BWXx):\n deVW = _FIc.url(BWXx)\n if deVW != True:\n return False",
"def Vt0R(bD7m):\n ... | [
"0.83493805",
"0.829777",
"0.8290866",
"0.8185718",
"0.8159511",
"0.81511474",
"0.8051757",
"0.80110717",
"0.7957243",
"0.79107875",
"0.79100573",
"0.7890186",
"0.7862742",
"0.78447884",
"0.7835327",
"0.7827582",
"0.7820345",
"0.7815985",
"0.7785493",
"0.77805036",
"0.7776134... | 0.7788281 | 18 |
Sets the learning rate | def e_63(K0do, qtWj, GPtr):
if GPtr.cos:
OtMv = 0
hSVy = GPtr.lr
tspZ = OtMv + 0.5 * (hSVy - OtMv) * (1 + epAf.cos(qtWj / GPtr.num_epochs * 3.1415926535))
else:
qtWj = qtWj + 1
if qtWj <= 5:
tspZ = GPtr.lr * qtWj / 5
elif qtWj > 180:
tspZ =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kVtO(YKHO, mVUw):\n YKHO.SGD.set_learning_rate(mVUw)",
"def NcuP(YKHO):\n b0Ix = YKHO.params.base_lr * (1 - float(YKHO.epoch) / YKHO.params.num_epoch) ** YKHO.params.power\n for Lwm5 in YKHO.opt.param_groups:\n Lwm5['lr'] = b0Ix\n print('Change learning rate into %f' % b0Ix)\n YKHO.summ... | [
"0.8623272",
"0.76981455",
"0.7697208",
"0.7697208",
"0.7636927",
"0.758479",
"0.7572249",
"0.7514606",
"0.7490861",
"0.74744666",
"0.74288964",
"0.7413075",
"0.739503",
"0.73916996",
"0.73894364",
"0.73817927",
"0.73783433",
"0.7377333",
"0.7363047",
"0.7362884",
"0.7362884"... | 0.0 | -1 |
Creates the message attribute based on the response. | def W5j6(YKHO, geh0):
Ol8d = str()
try:
Ol8d = geh0.json()
except (HjBM.JSONDecodeError, ValueError) as e:
Ol8d = geh0.text
return Ol8d | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OeRI(oUZx, yIVm=None):\n _hkX = LuKW()\n _hkX.set_field(fErI.response_key, oUZx)\n if yIVm is not None:\n for H5ew, BWXx in yIVm.items():\n _hkX.set_field(H5ew, BWXx)\n return _hkX",
"def P7_J(YKHO, Ylbp):\n if type(Ylbp) is dict and Ylbp.get('data') is not None:\n YKH... | [
"0.60377336",
"0.5895502",
"0.58826375",
"0.58530945",
"0.5830267",
"0.57759804",
"0.57572377",
"0.57217735",
"0.5692963",
"0.55894756",
"0.55728406",
"0.5554598",
"0.5532163",
"0.5499344",
"0.54886436",
"0.5465413",
"0.54603493",
"0.54582524",
"0.54222715",
"0.54056126",
"0.... | 0.5953219 | 1 |
Sets the symbol_code of this SymbolCandidate. | def Oiwm(YKHO, Oiwm):
if YKHO.local_vars_configuration.client_side_validation and Oiwm is None:
raise ValueError('Invalid value for `symbol_code`, must not be `None`')
YKHO._symbol_code = Oiwm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WArC(YKHO, o61b):\n YKHO.symbol = o61b",
"def Wxnj(YKHO, Wxnj):\n YKHO._code = Wxnj",
"def o61b(YKHO, o61b):\n YKHO._symbol = o61b",
"def o61b(YKHO, o61b):\n YKHO._symbol = o61b",
"def Wxnj(YKHO, Wxnj: str):\n YKHO._code = Wxnj",
"def Wxnj(YKHO, Wxnj: int):\n YKHO._code = Wxnj",
"... | [
"0.6762248",
"0.6558887",
"0.65057904",
"0.647104",
"0.6409073",
"0.6310283",
"0.6188744",
"0.60864574",
"0.6011036",
"0.6011036",
"0.59343654",
"0.5933789",
"0.59135896",
"0.58941424",
"0.5889174",
"0.5845236",
"0.5841956",
"0.5815513",
"0.5815513",
"0.5781468",
"0.5768931",... | 0.7600774 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, IQkd):
return False
return YKHO.to_dict() == Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.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):
if not isinstance(Elif, IQkd):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
... | 0.0 | -1 |
returns datestart_date in days | def YCe2(YKHO, _c1T):
_c1T = HD4I(_c1T)
return (_c1T - YKHO.start_date).days | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def epma(KhBf, kepv):\n return (g6xZ(KhBf) - g6xZ(kepv)).days",
"def epma(KhBf: func_xltypes.XlDateTime, kepv: func_xltypes.XlDateTime) -> TkOC.XlNumber:\n Sm0u = KhBf - kepv\n return Sm0u",
"def Klka(yKcO: date, Os4s: date) -> int:\n RA_F = Os4s - yKcO\n return RA_F.days + 1",
"def zjzr(_c1T)... | [
"0.74452615",
"0.7435405",
"0.7269126",
"0.7129492",
"0.6998247",
"0.6609907",
"0.64696336",
"0.64599645",
"0.64296323",
"0.64186394",
"0.64186394",
"0.63620853",
"0.6269298",
"0.6258548",
"0.6250662",
"0.6224007",
"0.62133455",
"0.61942935",
"0.61296016",
"0.6115954",
"0.609... | 0.70379543 | 4 |
r""" Superclass for vehicle kinematic models | def FIMM(YKHO, jLbF=None, nWCD=oyIN.inf, WN6s=oyIN.inf, nJ9F=[0, 0, 0], JRYC=0.1, z5su=None, yokr=0, senY=None, PJWX=False, kj9G=False, HUs2=None, j5tF=None):
YKHO._V = jLbF
YKHO._dt = JRYC
if nJ9F is None:
nJ9F = oyIN.zeros((3,), dtype=float)
else:
nJ9F = P8oC.getvector(nJ9F)
if... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yuji(YKHO):\n YKHO.kin = JdAk(robot_name=YKHO.robot_name, offset=YKHO.offset, active_joint_names=YKHO.get_actuated_joint_names(), base_name='', eef_name=None, frames=YKHO.root)\n YKHO._init_transform()",
"def FIMM(YKHO, ovGo=298.0 * kYzE.unit.kelvin, Cdbd=91.0 / kYzE.unit.picoseconds, dbXs=1.0 * kYzE.u... | [
"0.6776493",
"0.5989094",
"0.59333044",
"0.59258103",
"0.5912606",
"0.5899394",
"0.5879838",
"0.5810087",
"0.5779373",
"0.57603896",
"0.5753042",
"0.57503027",
"0.57376975",
"0.5718553",
"0.5680851",
"0.56744605",
"0.56604666",
"0.56576127",
"0.56424695",
"0.56381726",
"0.563... | 0.0 | -1 |
Evaluate the acquisition function at point x2. | def eval(YKHO, WKvO, yW6c: bool=False):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b7La(WKvO, jzdc, Fg_i, Z9rn, LEev, Xyq7, Dyub, EmyI):\n return jzdc * oyIN.sin(LEev * WKvO - Dyub) + Fg_i * oyIN.cos(Xyq7 * WKvO - EmyI) + Z9rn",
"def b7La(YKHO, mSn1, IP77):\n raise NotImplementedError()",
"def eval(YKHO, WKvO):\n YKHO.__check_input__(WKvO)\n o4D3 = WKvO[0]\n ajwV = WKvO[1]... | [
"0.66268396",
"0.62594754",
"0.62067944",
"0.6204449",
"0.62010074",
"0.6192244",
"0.6136045",
"0.61352307",
"0.6050135",
"0.6035992",
"0.5984323",
"0.59726536",
"0.5929253",
"0.5875225",
"0.58457315",
"0.58006036",
"0.57449436",
"0.57428414",
"0.57401896",
"0.57138294",
"0.5... | 0.0 | -1 |
Returns the state of the runner. | def ja6o(YKHO):
return {'epoch': YKHO.epoch, 'weights': YKHO.model.get_weights(), 'optimizer_weights': YKHO.model.optimizer.get_weights()} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QTBn(YKHO):\n Aofo = YKHO.getResult()\n return Aofo.state",
"def QTBn(YKHO) -> XLjY:\n return YKHO._async_scheduler.state",
"def cXHm(YKHO):\n return YKHO.state",
"def ja6o(YKHO):\n return YKHO.state",
"def ja6o(YKHO):\n return YKHO.state",
"def ja6o(YKHO):\n pass",
"def ja6o(Y... | [
"0.7453783",
"0.74372184",
"0.73520356",
"0.7281599",
"0.7281599",
"0.7224867",
"0.7222292",
"0.717699",
"0.71600735",
"0.7150481",
"0.71002704",
"0.71002704",
"0.71002704",
"0.71002704",
"0.71002704",
"0.70911217",
"0.7081832",
"0.7081832",
"0.7081832",
"0.7081832",
"0.70818... | 0.0 | -1 |
Adds an edge to the DNA graph, ensuring internal consistency. The parameters are decided by Addedgemutaion in Mutation.py | def rz7z(YKHO, GzA5, BxkM, _nJc, MlZ1):
sGL8 = 0
for auKx in YKHO.vertex[GzA5].edge_out:
if YKHO.edge[auKx].type != 'skip_connection':
sGL8 = auKx
if _nJc == 'conv':
'\n Insert convolution layer in two step:\n 1. Insert a new vertex between from_vertex and t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F1KG(YKHO, tTpl):\n Ty9i = tTpl.either()\n yzQ0 = tTpl.other(Ty9i)\n YKHO._validateVertex(Ty9i)\n YKHO._validateVertex(yzQ0)\n YKHO._adj[Ty9i].add(tTpl)\n YKHO._adj[yzQ0].add(tTpl)\n YKHO._E += 1",
"def rz7z(YKHO, ldJB):\n YKHO.edge.append(ldJB)\n YKHO.update_node2edge()",
"def r... | [
"0.8065523",
"0.78206015",
"0.76603293",
"0.7592885",
"0.75287724",
"0.7509822",
"0.75054026",
"0.7474146",
"0.74489087",
"0.74380153",
"0.7426118",
"0.7359986",
"0.7334075",
"0.73294",
"0.72735745",
"0.7266807",
"0.7212856",
"0.7209414",
"0.7196098",
"0.7187647",
"0.71612203... | 0.66164345 | 56 |
Removes candidate ngrams (w1, w2, ...) where fn(w1, w2, ...) evaluates to True. | def E2ek(YKHO, FYKK):
YKHO._apply_filter(lambda SMR4, eHNT: FYKK(*SMR4)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wo_L(YKHO, FYKK=lambda u8Mh, QTg7: False):\n Ax3r = Rj5r()\n for u8Mh, QTg7 in YKHO.ngram_fd.items():\n if not FYKK(u8Mh, QTg7):\n Ax3r[u8Mh] = QTg7\n YKHO.ngram_fd = Ax3r",
"def kKYI(CG35, Tuqy='any'):\n iku2 = [TSBA(yzQ0) for yzQ0 in CG35]\n if Tuqy == 'any':\n retur... | [
"0.64064026",
"0.6303353",
"0.61998063",
"0.6183854",
"0.6064118",
"0.56299466",
"0.5586825",
"0.55768436",
"0.55135435",
"0.5494307",
"0.5439604",
"0.54166514",
"0.54082793",
"0.5406111",
"0.53745043",
"0.53483343",
"0.53462416",
"0.5325527",
"0.53063947",
"0.527616",
"0.526... | 0.6418857 | 0 |
Removes candidate ngrams (w1, w2, ...) where any of (fn(w1), fn(w2), ...) evaluates to True. | def AKA3(YKHO, FYKK):
YKHO._apply_filter(lambda SMR4, eHNT: any((FYKK(yzQ0) for yzQ0 in SMR4))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wo_L(YKHO, FYKK=lambda u8Mh, QTg7: False):\n Ax3r = Rj5r()\n for u8Mh, QTg7 in YKHO.ngram_fd.items():\n if not FYKK(u8Mh, QTg7):\n Ax3r[u8Mh] = QTg7\n YKHO.ngram_fd = Ax3r",
"def kKYI(CG35, Tuqy='any'):\n iku2 = [TSBA(yzQ0) for yzQ0 in CG35]\n if Tuqy == 'any':\n retur... | [
"0.6539081",
"0.647983",
"0.6367641",
"0.60508466",
"0.5864387",
"0.5747846",
"0.558654",
"0.55380565",
"0.5481948",
"0.53660595",
"0.536599",
"0.53564006",
"0.5345199",
"0.53380173",
"0.5310486",
"0.53046274",
"0.5244571",
"0.5122952",
"0.51200783",
"0.5114794",
"0.51072556"... | 0.61361116 | 3 |
Convert a console style definition in to dictionary >>> style("bold red on yellow") {fg="red", bg="yellow", bold=True} | def _Cnz(zvBd):
if not zvBd:
return {}
if isinstance(zvBd, dict):
return zvBd
Jw9H = {'yellow', 'magenta', 'green', 'cyan', 'blue', 'red', 'black', 'white'}
IZF3 = {'bold', 'underline', 'dim', 'reverse', 'italic'}
_Cnz = {}
ldrb = True
iTW3 = True
for KCHu in zvBd.split('... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cQAW(aPuY):\n return dict((q2Xo.split(':') for q2Xo in faWw.findall(aPuY)))",
"def ndGX(RDhP):\n return {'weight': 3, 'color': 'black'}",
"def OBMV(_Cnz: Style, *, pk_K: Dict[str, str]) -> cuzp[str, str]:\n pmez = _Cnz.background_color\n gRmv = _Cnz.style_for_token(I2jr)\n ldrb = gRmv['color... | [
"0.670434",
"0.6333383",
"0.62597114",
"0.62559277",
"0.6231482",
"0.6217498",
"0.61554664",
"0.6078599",
"0.5907675",
"0.5893134",
"0.58881134",
"0.588212",
"0.5854403",
"0.5825276",
"0.5782361",
"0.5760383",
"0.57275546",
"0.5723121",
"0.5711178",
"0.56827",
"0.5656543",
... | 0.7909697 | 0 |
updates attribute updated_at with current datetime | def xkzz(YKHO):
YKHO.updated_at = qcWV.now()
S8SU.save() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zB0d(YKHO, zB0d: 'datetime'):\n YKHO._attrs['updatedAt'] = zB0d",
"def zB0d(YKHO, zB0d: 'datetime'):\n YKHO._attrs['updatedAt'] = zB0d",
"def zB0d(YKHO, zB0d: 'datetime'):\n YKHO._attrs['updatedAt'] = zB0d",
"def xkzz(YKHO):\n YKHO.updated_at = qcWV.now()",
"def QdZT(YKHO, AIu6):\n AIu6[... | [
"0.79943717",
"0.79943717",
"0.79943717",
"0.7572639",
"0.7375303",
"0.73075455",
"0.73075455",
"0.73075455",
"0.73075455",
"0.73075455",
"0.73075455",
"0.73075455",
"0.73075455",
"0.73075455",
"0.73075455",
"0.71766967",
"0.71766967",
"0.71766967",
"0.70862526",
"0.70429164",
... | 0.0 | -1 |
Overload the == operator | def xa14(YKHO, Elif):
if isinstance(Elif, YKHO.__class__):
return YKHO.index == Elif.index and YKHO.inUse == Elif.inUse and (YKHO.type == Elif.type) and (YKHO.previousBlock == Elif.previousBlock) and (YKHO.amount == Elif.amount) and (YKHO.nextBlock == Elif.nextBlock) and (YKHO.items == Elif.items)
else:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YK... | [
"0.8195402",
"0.8195402",
"0.8195402",
"0.8195402",
"0.8195402",
"0.8195402",
"0.8195402",
"0.8195402",
"0.8195402",
"0.8195402",
"0.8195402",
"0.8195402",
"0.8195402",
"0.8195402",
"0.8195402",
"0.8195402",
"0.8195402",
"0.8195402",
"0.8195402",
"0.8195402",
"0.81455725",
... | 0.0 | -1 |
Overload the != operator | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, RKYb):\n return not YKHO.__eq__(RKYb)",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n ret... | [
"0.8450266",
"0.8434181",
"0.84323186",
"0.83849907",
"0.83651286",
"0.835894",
"0.83410984",
"0.83377224",
"0.8336225",
"0.8335426",
"0.8335426",
"0.83323336",
"0.8332294",
"0.8332294",
"0.8331674",
"0.8331674",
"0.8331674",
"0.8331674",
"0.83269113",
"0.83269113",
"0.832691... | 0.0 | -1 |
Returns whether this is a string array | def IvYK(YKHO):
return YKHO.type == KG2U.PropertyType.stringArray | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sd4x(nPrm):\n return len(nPrm) and isinstance(I4W5(nPrm).flat[0], str)",
"def ow6M(ezWE):\n if isinstance(ezWE, str) or issubclass(XTiz.asarray(ezWE).dtype.type, str):\n return True\n return False",
"def PFXX(YKHO):\n return False",
"def PFXX(YKHO):\n return len(YKHO.descriptor) > 1... | [
"0.7596771",
"0.7394874",
"0.7375554",
"0.7188314",
"0.707607",
"0.70332986",
"0.69955224",
"0.68736714",
"0.68241423",
"0.6799083",
"0.6737211",
"0.66763693",
"0.6629048",
"0.66166043",
"0.66062343",
"0.66022825",
"0.65974313",
"0.6571035",
"0.65567243",
"0.65290815",
"0.644... | 0.8737185 | 0 |
Returns pandas dataframe read from table | def UlWi(NK1P):
eHpk = y2U9('sqlite:///' + NK1P)
jQ3Z = rLdf.read_sql_table('DisasterResponse', eHpk)
EcVT = jQ3Z['message'].astype(str)
fuBA = jQ3Z.drop(['id', 'message', 'original', 'genre'], axis=1)
return (EcVT, fuBA, list(fuBA.columns)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oYdR(YKHO, GTA_):\n iZr3 = 'SELECT * FROM {tb}'.format(tb=GTA_)\n DpUl = YKHO.conn.cursor()\n DpUl.execute(iZr3)\n ZWCE = [JBZA[0] for JBZA in DpUl.description]\n usx6 = DpUl.fetchall()\n jQ3Z = rLdf.DataFrame(usx6, columns=ZWCE)\n return jQ3Z",
"def UpBV(tyNF):\n eHpk = y2U9(GzKZ, en... | [
"0.7713695",
"0.77110654",
"0.75210553",
"0.74618894",
"0.73402584",
"0.7302775",
"0.71951824",
"0.7174342",
"0.7156873",
"0.7082689",
"0.7017794",
"0.7009743",
"0.70080036",
"0.70044076",
"0.6989976",
"0.6979917",
"0.69756496",
"0.6955611",
"0.6948097",
"0.69366634",
"0.6931... | 0.0 | -1 |
Function convert sentences into tokens, normalizes case,, strip trailing and preceding whitespaces and removes puntuations and stop words | def wr3U(l5Ny):
b0j5 = Dhdw.RegexpTokenizer('\\w+')
s2mk = b0j5.tokenize(l5Ny)
LkXt = GFnk()
zKDd = []
for w2fL in s2mk:
if w2fL.lower() not in di0c.words('english'):
NM_J = LkXt.lemmatize(w2fL).lower().strip()
zKDd.append(NM_J)
return zKDd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hXeG(m6Me):\n m6Me = Y4PC.sub(' ', m6Me)\n m6Me = m6Me.strip()\n m6Me = m6Me.lower()\n V22M = Dhdw.word_tokenize(m6Me)\n V22M = [gryw(yzQ0) for yzQ0 in V22M if not yzQ0 in di0c and len(yzQ0) > 1]\n return ' '.join(V22M)",
"def Yvzw(_dZy):\n b0j5 = H6bL()\n jWWN = b0j5.tokenize(_dZy.lo... | [
"0.73390895",
"0.7319071",
"0.7115878",
"0.7039337",
"0.7035414",
"0.7020504",
"0.6999928",
"0.697498",
"0.69727546",
"0.69724846",
"0.6957662",
"0.6939191",
"0.6902195",
"0.68842185",
"0.6861641",
"0.6859027",
"0.68574774",
"0.68458074",
"0.6834428",
"0.6834428",
"0.68319404... | 0.6674278 | 48 |
Get L{Tag} values that match the filtering criteria defined for this collection. | def hkxX(YKHO):
VUF1 = muaC()
ffeq = YKHO._getTagIDs()
qJWj = YKHO._getWhereClause(ffeq)
return VUF1.find((OhYN, jz6P), *qJWj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dmr8(YKHO, hLhr):\n return YKHO._ruleset[hLhr].keys()",
"def Qwli(YKHO) -> fHNa[I2jr]:\n return {TZ9E for TZ9E in YKHO.tags}",
"def E0jP(YKHO) -> laHg.Optional[laHg.Mapping[str, laHg.Any]]:\n return YKHO._values.get('tag_filters')",
"def E0jP(YKHO) -> laHg.Optional[laHg.Mapping[str, laHg.Any]]:\... | [
"0.6696752",
"0.6672744",
"0.66127056",
"0.66127056",
"0.6454556",
"0.63883793",
"0.636721",
"0.6313774",
"0.62909424",
"0.62718517",
"0.6267369",
"0.624273",
"0.6239966",
"0.62250704",
"0.6211067",
"0.6204095",
"0.6204095",
"0.6204095",
"0.6204095",
"0.6204095",
"0.6204095",... | 0.7082022 | 0 |
init the dictionary object | def DbxN(ir9F, HOap):
try:
with open(ir9F) as eHNT:
eUNp = qQXR.load(eHNT)
except:
eUNp = {'descriptor': HOap, 'measurements': []}
with open(ir9F, 'w') as eHNT:
qQXR.dump(eUNp, eHNT)
return eUNp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.dic = {}",
"def FIMM(YKHO):\n YKHO.dic = {}",
"def FIMM(YKHO):\n YKHO.dic = {}",
"def FIMM(YKHO, dict):\n YKHO.dict = dict",
"def FIMM(YKHO, dict):\n YKHO.dict = dict",
"def FIMM(YKHO):\n YKHO.dict = {}",
"def FIMM(YKHO):\n YKHO.dict = {}",
"def FIMM(YKHO):... | [
"0.82029593",
"0.8142897",
"0.8142897",
"0.81194806",
"0.81194806",
"0.808661",
"0.808661",
"0.79071206",
"0.7798403",
"0.77607864",
"0.77403873",
"0.77403873",
"0.77403873",
"0.77403873",
"0.7704517",
"0.7675323",
"0.7603196",
"0.75984395",
"0.756247",
"0.755479",
"0.7547568... | 0.0 | -1 |
Not supported by Cloud Run Adapts a ConfigMap into a volume. The contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. | def FIMM(Ro_8, *, GLUw: Optional[pulumi.Input[int]]=None, DumB: Optional[pulumi.Input[Sequence[pulumi.Input['KeyToPathArgs']]]]=None, mWFP: Optional[pulumi.Input[str]]=None, CYSX: Optional[pulumi.Input[bool]]=None):
if GLUw is not None:
qe4Y.set(Ro_8, 'default_mode', GLUw)
if DumB is not None:
q... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uXof():\n rPXJ = TI0e.dedent('\\n kind: ConfigMap\\n apiVersion: v1\\n metadata:\\n name: fio-config\\n data:\\n workload.fio: |\\n # here comes workload configuration\\n ')\n mJxw = eJb6.safe_load(rPXJ)\n return mJxw",
"def dsrf(YKHO, ... | [
"0.5744717",
"0.5617608",
"0.5549652",
"0.54460806",
"0.5438244",
"0.53842455",
"0.5358757",
"0.53583336",
"0.5249196",
"0.52384365",
"0.5098135",
"0.50381",
"0.5018599",
"0.49951723",
"0.49566793",
"0.49389467",
"0.48652902",
"0.48287538",
"0.4816171",
"0.481004",
"0.4808808... | 0.0 | -1 |