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
Given an agent game state, returns a numerical value that estimates this state.
def f7Dd(YKHO, QTBn, oyg0): if QTBn.isWin() or QTBn.isLose(): return QTBn.getScore() if oyg0 == z5IR: return r51j else: return -r51j
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO, QTBn):\n _hZ2 = YKHO.epsilon\n qieF = YKHO.get_legal_actions(QTBn)\n if len(qieF) == 0:\n return 0.0\n enxE = qieF[oyIN.argmax([YKHO.get_qvalue(QTBn, XeOP) for XeOP in qieF])]\n ft8x = 0\n for XeOP in qieF:\n if XeOP == enxE:\n ft8x += (1 - _hZ2) * YKHO.get...
[ "0.6993187", "0.69219285", "0.68711835", "0.683842", "0.6740356", "0.67376345", "0.66950214", "0.6659275", "0.66460663", "0.6619388", "0.66037446", "0.6547869", "0.6535572", "0.6523137", "0.65092814", "0.6488072", "0.6477427", "0.64462644", "0.64315224", "0.64230734", "0.6419...
0.6282397
27
Returns the numerical value associated with the state chosen by the MAX player.
def WukB(YKHO, QTBn, oyg0, azXi, Cwt5, UqYS): yew8 = -r51j bzfn = QTBn.generatePacmanSuccessors() for aUGN, XeOP in bzfn: Pldv = YKHO.player(QTBn, oyg0) YkkB = YKHO.deepcopy_list(azXi) BWXx = YKHO.minimax(aUGN, Pldv, YkkB, Cwt5, UqYS) yew8 = max(yew8, BWXx) if yew8 >=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bQ6z(Ov5A):\n if gVdZ(Ov5A):\n return -1", "def Zmkp(YKHO, QTBn):\n qieF = YKHO.get_legal_actions(QTBn)\n if len(qieF) == 0:\n return 0.0\n bQ6z = YKHO.get_qvalue(QTBn, qieF[0])\n for XeOP in qieF[1:]:\n Li0y = YKHO.get_qvalue(QTBn, XeOP)\n if Li0y > bQ6z:\n ...
[ "0.8016364", "0.7548027", "0.7299372", "0.72961676", "0.71845376", "0.7098836", "0.693209", "0.68775475", "0.68732864", "0.686689", "0.68150526", "0.6761921", "0.67598486", "0.6704822", "0.6696646", "0.66552097", "0.6610439", "0.6610214", "0.6607608", "0.6571373", "0.65530646...
0.62729645
60
Returns the numerical value associated with the state chosen by the MIN player.
def pysQ(YKHO, QTBn, oyg0, azXi, Cwt5, UqYS): V46T = r51j bzfn = QTBn.generateGhostSuccessors(oyg0) for aUGN, XeOP in bzfn: Pldv = YKHO.player(QTBn, oyg0) YkkB = YKHO.deepcopy_list(azXi) BWXx = YKHO.minimax(aUGN, Pldv, YkkB, Cwt5, UqYS) V46T = min(V46T, BWXx) if V46T ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dgIT(Ov5A):\n if gVdZ(Ov5A):\n return 1\n return min((bQ6z(Ov5A.forecast_move(BZN_)) for BZN_ in Ov5A.get_legal_moves()))", "def dgIT(lFj3, QTBn, oyg0):\n CE5G = list(X79V(lFj3, QTBn, oyg0).values())\n if CE5G:\n return oyIN.min(CE5G)\n return 0", "def dMyF(YKHO) -> float:\n ...
[ "0.7333864", "0.7274705", "0.7139104", "0.7098517", "0.6812494", "0.6727385", "0.66132283", "0.66132283", "0.66051954", "0.65055245", "0.6499824", "0.64857304", "0.6454941", "0.6418529", "0.6408731", "0.64086705", "0.64027745", "0.63933474", "0.637627", "0.6353276", "0.633600...
0.60446495
53
Return the flow rate from the stock of material.
def hc3N(YKHO): return YKHO._Q_stock
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pLaI(YKHO):\n return {'lvad': YKHO._q}", "def pLaI(YKHO):\n vexM = {'ao': YKHO._qao, 'mv': YKHO._qmv, 'per': YKHO._qper}\n if YKHO._lvad is not None:\n vexM['lvad'] = YKHO._lvad.flowrate['lvad']\n return vexM", "def pLaI(YKHO):\n vexM = {'ao': YKHO._qao, 'mv': YKHO._qmv, 'per': YKHO._...
[ "0.6545745", "0.64949226", "0.64949226", "0.6487419", "0.64570606", "0.633024", "0.6179958", "0.6134117", "0.6123501", "0.6103679", "0.60823053", "0.605197", "0.60496455", "0.60220456", "0.60084975", "0.5997531", "0.5996971", "0.5936919", "0.59270066", "0.5911436", "0.5895289...
0.0
-1
Return the required concentration of material in the stock given a reactor's desired system flow rate, system concentration, and stock flow rate.
def Rr5q(YKHO): return YKHO._C_sys * (YKHO._Q_sys / YKHO._Q_stock).to(P6bq.dimensionless)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y7GR(YKHO, jeWL: Demand) -> float:\n ykvB = HWJI.Solver('multicommodity_flow_lp', HWJI.Solver.GLOP_LINEAR_PROGRAMMING)\n gMjq = []\n for YRbF in range(len(YKHO.commodities)):\n f04s = []\n for r845 in range(YKHO.num_edges):\n f04s.append(ykvB.NumVar(0, 1, '({},{})'.format(YRbF...
[ "0.5642803", "0.5584936", "0.5577683", "0.5554234", "0.553538", "0.5489478", "0.5411179", "0.53657496", "0.5364913", "0.5331608", "0.5305916", "0.526134", "0.52515954", "0.52499425", "0.51970553", "0.51827013", "0.5169865", "0.5155381", "0.51455855", "0.51219964", "0.5110487"...
0.65557456
0
Return the mass of undiluted material required for the stock concentration.
def LZyX(YKHO, oBTn): return okPj.M_stock(YKHO, oBTn, YKHO.C_stock())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bMbF(YKHO):\n return YKHO.volume * YKHO.density", "def KfFl(YKHO):\n return YKHO.mass", "def jxP3(YKHO):\n return bMU8.reactor_intEnergy_mass(YKHO.__reactor_id)", "def yrkk(YKHO):\n return YKHO.m", "def MLew(YKHO):\n N8fB = YKHO.__dict__\n I1iR = {}\n for ZLSD in YKHO.chemAtoms:\n ...
[ "0.7769052", "0.7232947", "0.7190209", "0.71602464", "0.7018305", "0.6999149", "0.6975665", "0.6975665", "0.691813", "0.6880519", "0.6858123", "0.681166", "0.68089944", "0.67415166", "0.6694117", "0.6598947", "0.658228", "0.6533314", "0.65262026", "0.6524805", "0.65108377", ...
0.0
-1
Return the required flow rate from the stock of material given a reactor's desired system flow rate, system concentration, and stock concentration.
def hc3N(YKHO): return YKHO._Q_sys * (YKHO._C_sys / YKHO._C_stock).to(P6bq.dimensionless)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gNj4(YKHO, yzQ0, JjT9, vCqg, Bq4j, oZuG):\n if oZuG > JjT9:\n return float(yzQ0 * (oZuG - vCqg))\n else:\n return float(Bq4j)", "def Xdh9(Vb5F, Owxf, JKCy, b5Lm, AVpI={}):\n if isinstance(Owxf, tPEx) and Owxf.is_indexed:\n YDO3 = l3yo.get_units(Owxf[Owxf.index_set().first()])\n ...
[ "0.5923482", "0.5861297", "0.5662263", "0.5640015", "0.5634874", "0.55290496", "0.5519321", "0.5464206", "0.5443838", "0.5443838", "0.54211026", "0.5408113", "0.54059756", "0.5404543", "0.5379538", "0.53003806", "0.52493703", "0.5246347", "0.5238954", "0.52116865", "0.5181678...
0.54127717
11
Return the mass of undiluted material required for the stock concentration.
def LZyX(YKHO, oBTn): return okPj.M_stock(YKHO, oBTn, YKHO._C_stock)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bMbF(YKHO):\n return YKHO.volume * YKHO.density", "def KfFl(YKHO):\n return YKHO.mass", "def jxP3(YKHO):\n return bMU8.reactor_intEnergy_mass(YKHO.__reactor_id)", "def yrkk(YKHO):\n return YKHO.m", "def MLew(YKHO):\n N8fB = YKHO.__dict__\n I1iR = {}\n for ZLSD in YKHO.chemAtoms:\n ...
[ "0.7768431", "0.7232738", "0.7190354", "0.7160507", "0.70185375", "0.69992936", "0.6975595", "0.6975595", "0.6918905", "0.6880725", "0.68575174", "0.68105495", "0.68091553", "0.6741758", "0.6694819", "0.65997994", "0.65818685", "0.6533253", "0.6526898", "0.65244454", "0.65112...
0.0
-1
Gets the language from the plugin filename.
def B2TO(Ux0P: str) -> str: return GkAb(Ux0P).resolve().with_suffix('').name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bmkt(FYKK):\n return FYKK.split(Hy7s.sep)[-3]", "def L5PF(YKHO):\n pmON = YKHO.get_lang_path()\n for rQow in YKHO.languages:\n if rQow in pmON:\n return rQow", "def L5PF(YKHO):\n return YKHO.langs.lang", "def L5PF(p6S0):\n DuqQ = None\n if p6S0 == 0:\n DuqQ = Yq...
[ "0.7754916", "0.716426", "0.6845256", "0.6770846", "0.67384243", "0.6711115", "0.6705009", "0.66996783", "0.6607404", "0.65987134", "0.65885794", "0.65514463", "0.6547181", "0.6505041", "0.6468041", "0.6454221", "0.64363754", "0.6395054", "0.63568366", "0.63273275", "0.632306...
0.7564138
1
States whether licence headers can be added.
def Pl32(YKHO) -> bool: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ku2f(YKHO):\n return True", "def ku2f(YKHO):\n return True", "def ku2f(YKHO):\n return True", "def ku2f(YKHO):\n return True", "def ku2f(YKHO):\n return True", "def ku2f(YKHO):\n return True", "def ku2f(YKHO):\n return True", "def ku2f(YKHO):\n return True", "def ku2f(YK...
[ "0.6126938", "0.6126938", "0.6126938", "0.6126938", "0.6126938", "0.6126938", "0.6126938", "0.6126938", "0.6126938", "0.6126938", "0.6126938", "0.6126938", "0.6126938", "0.6126938", "0.6126938", "0.6069631", "0.6069631", "0.6069631", "0.6069631", "0.6069631", "0.6069631", "...
0.87154984
0
States whether the SPDX documents should be included in the package.
def tFSF(YKHO) -> bool: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ku2f(YKHO):\n return True", "def ku2f(YKHO):\n return True", "def ku2f(YKHO):\n return True", "def ku2f(YKHO):\n return True", "def ku2f(YKHO):\n return True", "def ku2f(YKHO):\n return True", "def ku2f(YKHO):\n return True", "def ku2f(YKHO):\n return True", "def ku2f(YK...
[ "0.6486629", "0.6486629", "0.6486629", "0.6486629", "0.6486629", "0.6486629", "0.6486629", "0.6486629", "0.6486629", "0.6486629", "0.6486629", "0.6486629", "0.6486629", "0.6486629", "0.6486629", "0.6486629", "0.6486629", "0.6486629", "0.6486629", "0.6486629", "0.6486629", "...
0.63902473
46
Extract a list of values by concatenating text in subelements of all matching elements, unless there is only one element returned; in that case use that element's children. Sometimes each item in a list will be tagged with schema fields, but sometimes only the container will be, in which case, we want it's child elemen...
def EWD4(YKHO, property, nPrm): hkxX = YKHO.get_property(property, nPrm) if len(hkxX) == 1: return [YKHO.concat_text(aUGN) for aUGN in hkxX[0].getchildren()] else: return [YKHO.concat_text(wEf2) for wEf2 in hkxX]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gFHi(_AKB, TZ9E, nd0d=False):\n l5Ny = None\n for ZfUD in _AKB.findall(TZ9E):\n a1PO = ZfUD.text\n if not l5Ny:\n if nd0d:\n l5Ny = [a1PO]\n else:\n l5Ny = a1PO\n elif isinstance(l5Ny, list):\n l5Ny.append(a1PO)\n ...
[ "0.6273863", "0.62471145", "0.61149466", "0.5640055", "0.55085135", "0.5455701", "0.5401418", "0.537015", "0.5343929", "0.52796423", "0.52705777", "0.52628595", "0.52620727", "0.5243459", "0.51969194", "0.51589835", "0.515349", "0.51468027", "0.51317555", "0.51254296", "0.510...
0.6517781
0
Concatenate text from all children, stripping extra whitespace.
def GXzx(YKHO, LihS): KCHu = u' '.join([jKyr.strip() for jKyr in LihS.itertext() if ZbWC.search('\\S', jKyr)]) return ZbWC.sub(' (\\W )', '\\1', KCHu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RfE7(Q6kx):\n return ''.join(R2V6(Q6kx))", "def RbNx(YKHO, LihS):\n if isinstance(LihS, OhYN):\n l5Ny = []\n for a0E5 in LihS:\n l5Ny.append(YKHO._text_of(a0E5))\n return ' '.join(l5Ny)\n else:\n return LihS.string", "def CS6N(Q6kx):\n return (Q6kx.text if...
[ "0.66178346", "0.6367323", "0.635393", "0.6313497", "0.6308935", "0.6219595", "0.6135117", "0.6108854", "0.6083563", "0.60474586", "0.60206246", "0.6020191", "0.59689933", "0.59253573", "0.591877", "0.5883913", "0.5880653", "0.5873393", "0.58330333", "0.58095056", "0.5795601"...
0.69048434
0
From the input X, calculate the activations at the hidden layer and the output layer.
def MKQT(YKHO, EcVT): Nk6w = YKHO._activation(BJ1H(ZOT4[EcVT, pSfY((EcVT.shape[0], 1))], YKHO.W_hidden)) return (YKHO._activation(BJ1H(ZOT4[Nk6w, pSfY((EcVT.shape[0], 1))], YKHO.W_output)), Nk6w)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, EcVT):\n EcVT = oyIN.asarray(EcVT)\n if len(EcVT.shape) == 1:\n EcVT = oyIN.reshape(EcVT, (1, len(EcVT)))\n if YKHO.inputBias == True:\n usx6 = []\n for YRbF in range(0, EcVT.shape[0]):\n usx6.append(oyIN.append(EcVT[YRbF], 1))\n EcVT = oyIN.asarray(us...
[ "0.73137915", "0.7189904", "0.7136144", "0.7106957", "0.70927054", "0.7056907", "0.70448816", "0.6982528", "0.6966721", "0.69446534", "0.69283813", "0.68609005", "0.68587756", "0.6783559", "0.67334926", "0.6703211", "0.666927", "0.666927", "0.6664914", "0.66404325", "0.664029...
0.68053234
13
Backpropagate the errors and update the weights.
def b3yD(YKHO, g4y1, Zode, hlel, UAju): X4rp = YKHO._da(hlel) * UAju lwMU = YKHO._da(Zode) * BJ1H(X4rp, YKHO.W_output[:-1].T) cDK5 = g4y1.shape[0] oug5 = pSfY((cDK5, 1)) YKHO.V_output = YKHO.output_learning_rate * BJ1H(ZOT4[Zode, oug5].T, X4rp) / cDK5 YKHO.W_output += YKHO.V_output YKHO.V_hi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MyUA(YKHO):\n YKHO.weights -= YKHO.loss_grads\n YKHO.loss_grads = oyIN.zeros(YKHO.weights.shape)", "def MyUA(YKHO):\n pass", "def MyUA(YKHO):\n YKHO._weights = YKHO._weights + YKHO.update_weights_value", "def MyUA(YKHO):\n YKHO._weights = YKHO._weights + YKHO.update_weights_value\n YKHO...
[ "0.73473144", "0.7206131", "0.6706899", "0.6673246", "0.6593266", "0.6541832", "0.65311146", "0.65311146", "0.6491329", "0.647321", "0.6379258", "0.62920314", "0.6289422", "0.62617856", "0.62614566", "0.6245207", "0.6242581", "0.6238977", "0.62146944", "0.6194389", "0.618977"...
0.6650728
4
Interpret C{relpath} relative to the last included config file (or the current working directory if no config file is being processed) and return the full path. Additionally, paths like ~/foo where the current user's home directory is substituted for the ~ are supported.
def QTmz(YKHO, PsRC): if YKHO.isUrl(PsRC) or PsRC[0] == '/': return PsRC if PsRC.startswith('~/') and 'HOME' in Hy7s.environ: return Hy7s.path.join(Hy7s.environ['HOME'], PsRC[2:]) if YKHO._configFileStack: c4ZO = Hy7s.path.dirname(YKHO._configFileStack[-1]) else: c4ZO = H...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZNGi(YKHO):\n from os import path\n KGgq = '~/codes/ci/tests'\n PsRC = '../pyci/config.py'\n Aofo = path.expanduser('~/codes/ci/pyci/config.py')\n YKHO.assertEqual(Aofo, zbHV(KGgq, PsRC))", "def qZpn(Ot8B, _6VY):\n if not isinstance(Ot8B, str):\n raise TypeError('Attempting to ensure...
[ "0.6920829", "0.67630833", "0.6725792", "0.67080855", "0.6699892", "0.66549546", "0.6641804", "0.65129095", "0.6512263", "0.64710873", "0.6431524", "0.64170545", "0.64096814", "0.63788944", "0.63601804", "0.63560045", "0.63347214", "0.6328272", "0.6321612", "0.628525", "0.628...
0.7505428
0
Regex/function matches nonempty text (string).
def GlCl(YKHO): eHNT = Ta4V.valid_text assert eHNT('string', '[a-z]*') is True assert eHNT('string', 'string') is True assert eHNT('string', '[0-9]*') is False assert eHNT('', '.*') is False assert eHNT('abcde', lambda WKvO: 'e' in WKvO) is True assert eHNT('abcde', lambda WKvO: 'f' in WKvO)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PSvv(YKHO):\n mXDZ = ''\n KCHu = 'abcdef'\n YKHO.assertEqual(IaaG, ZbWC.search(mXDZ, KCHu).group())", "def PSvv(YKHO):\n OXNr = ''\n KCHu = 'abcdef'\n YKHO.assertEqual(IaaG, ZbWC.match(OXNr, KCHu).group())", "def nvz9(EIOD):\n return not EIOD.strip()", "def x8DN(NPoT):\n if ZbWC.m...
[ "0.71870106", "0.71468127", "0.6825596", "0.6734984", "0.67312646", "0.6438654", "0.63549334", "0.6322763", "0.632127", "0.6242362", "0.61733043", "0.6131614", "0.6126538", "0.6123965", "0.61204576", "0.5997847", "0.59732664", "0.59632313", "0.59355", "0.59338725", "0.5914373...
0.5398441
62
Valid key is a string that matches the regex.
def rFX0(YKHO): eHNT = Ta4V.valid_data_key assert eHNT('string', int, 'string') is False assert eHNT('string', str, 'test') is False assert eHNT(123, int, '123') is False assert eHNT(123.0, float, '123') is False assert eHNT('123', str, '[0-9]*') is True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SGVO(H5ew):\n return H5ew[0:2] == 'MR' and H5ew[2:].isdigit() and (len(H5ew) in [9, 10])", "def t5ys(H5ew):\n return True", "def LZZh(YKHO):\n G1Hx = pe5E().generate()\n YKHO.assertRegex(G1Hx, '[a-zA-Z0-9+\\\\/]+={0,2}')", "def q5Ho(YKHO, H5ew):\n if not H5ew or any(map(lambda KCHu: KCHu i...
[ "0.74445486", "0.7298128", "0.68690723", "0.6826933", "0.6772416", "0.6770362", "0.67521554", "0.6721232", "0.66679317", "0.6645989", "0.6641343", "0.66336364", "0.6618555", "0.66130024", "0.6539414", "0.6484469", "0.6474315", "0.63922536", "0.63814443", "0.63745844", "0.6374...
0.6798626
4
Test if account creation with empty string for parameter fails as expected.
def z1np(eKk1): import requests Oz57 = ({'name': '', 'password': 'bar', 'code': '123'}, {'name': 'foo', 'password': '', 'code': '123'}, {'name': 'foo', 'password': 'bar', 'code': ''}) for nPrm in Oz57: qv1X = requests.post('{}/account/create'.format(l4ys), data=nPrm) assert qv1X.content == b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jvg7(YKHO):\n print('Create user invalid username (already taken)')\n lgoE = 3\n NtEF = '100'\n jTXt = 'test9999'\n uwbZ = 1\n R6Gd = len(mv1M.query.all())\n YKHO.assertEqual(YKHO.system.create_user(lgoE, NtEF, jTXt, uwbZ), 0)\n ranj = len(mv1M.query.all())\n YKHO.assertEqual(R6Gd, r...
[ "0.6957949", "0.68849814", "0.6766087", "0.6673291", "0.6599482", "0.65720046", "0.6557529", "0.6546525", "0.65454924", "0.6534993", "0.6519123", "0.6513456", "0.6503913", "0.6501081", "0.6480589", "0.64775", "0.6455434", "0.6444594", "0.6428433", "0.6425856", "0.6425776", ...
0.69134486
1
Test if account modification with wrong superuser pw fails as expected.
def _DNu(eKk1, FMAD): import requests GPtr = eKk1 nPrm = {'superuserpassword': '123', 'name': FMAD['name'], 'new_name': 'foo2', 'new_password': 'bar2', 'new_code': '456'} qv1X = requests.post('{}/account/modify'.format(l4ys), data=nPrm) assert qv1X.content == b'Wrong superuserpassword' assert qv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e4qs(YKHO):\n YKHO.realm._txCryptContext, JE1Y = tElW()\n ZrNc = YKHO.realm.addAccount(YKHO.localpart, YKHO.domain, YKHO.password)\n Csk6 = ZrNc.replacePassword(u'blahblah', u'blah')\n JE1Y()\n JE1Y()\n YKHO.failureResultOf(Csk6, UAju.BadCredentials)", "def V_Vb(YKHO):\n eCP8 = e5QR('cn=...
[ "0.71980155", "0.70657223", "0.69420695", "0.681869", "0.67412823", "0.6737752", "0.6715256", "0.66572005", "0.6578799", "0.65284264", "0.647053", "0.64520705", "0.6444444", "0.6427927", "0.6402236", "0.63994974", "0.63713825", "0.6368577", "0.6328388", "0.63178885", "0.63131...
0.78668606
0
Test if account view with wrong pw fails as expected.
def vL9J(eKk1, FMAD): import requests nPrm = FMAD nPrm['password'] += '123' qv1X = requests.post('{}/account/view'.format(l4ys), data=nPrm) assert qv1X.content == b'Wrong password' assert qv1X.status_code == 400
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pwat(YKHO):\n pass", "def pwat(YKHO):\n YKHO.signup('Bo', 'Theo', 'Bo_theo5@example.com', 'Bo1995', 'Bo1995')\n im04 = YKHO.login('Bo_theo5@example.com', 'Bo1905')\n YKHO.assertIn(b'Invalid password! Please try again', im04.data)", "def CGzb(YKHO):\n CBIr = 'santos.gallegos'\n zOso = '123...
[ "0.7014653", "0.6694399", "0.66710836", "0.6594336", "0.6481692", "0.64417285", "0.63635635", "0.6333669", "0.62967485", "0.62738353", "0.6249868", "0.62362957", "0.6229103", "0.6215371", "0.62137276", "0.6183013", "0.6169891", "0.61672413", "0.6150554", "0.61269516", "0.6121...
0.7123576
0
End time of audio that can be returned from this accessor. Return value is in seconds.
def C7pn(YKHO): return Ybv7.GetAudioAccessorEndTime(YKHO.id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WbTE(YKHO):\n return (YKHO.end_time or ITS7.time()) - YKHO.start_time", "def VP2i(YKHO):\n if YKHO.end == float('inf'):\n return YKHO.track.duration\n else:\n return YKHO.end", "def C7pn(YKHO):\n return J1jP(YKHO.end_time_ms)", "def C7pn(YKHO) -> float:\n ...", "def A_2I(YK...
[ "0.7681271", "0.763079", "0.759133", "0.7577253", "0.757333", "0.75021076", "0.7465625", "0.74528515", "0.7438744", "0.743213", "0.74169916", "0.74169916", "0.74169916", "0.74169916", "0.74169916", "0.74169916", "0.73767245", "0.73540586", "0.7351222", "0.7279076", "0.7252126...
0.86164665
0
Whether underlying state has changed.
def rHZb(YKHO): return bool(Ybv7.AudioAccessorValidateState(YKHO.id))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fj40(YKHO):\n return bool(YKHO.changed_data)", "def fj40(YKHO):\n return YKHO.get_old_value() != YKHO.get_current_value()", "def rHZb(YKHO) -> bool:\n ...", "def llHi(YKHO) -> bool:\n return YKHO._changed", "def j4tY(YKHO):\n return YKHO._changed", "def R1aV(YKHO):\n if YKHO.is_upda...
[ "0.848632", "0.8434987", "0.83928776", "0.83255196", "0.825811", "0.81393313", "0.80782294", "0.80782294", "0.80360293", "0.8028253", "0.7956109", "0.7744479", "0.7661217", "0.76159716", "0.74815", "0.74815", "0.74815", "0.73818296", "0.73151785", "0.730645", "0.72741395", ...
0.77362454
12
Start time of audio that can be returned from this accessor. Return value is in seconds.
def SWox(YKHO): return Ybv7.GetAudioAccessorStartTime(YKHO.id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SWox(YKHO) -> float:\n return YKHO._start_time", "def SWox(YKHO) -> float:\n return float(YKHO.get_from_redis('start_time'))", "def rvsq(YKHO) -> float:\n try:\n return YKHO.times[0]\n except IndexError:\n return 0.0", "def SWox(YKHO):\n return YKHO.__start", "def hSQE(YKHO...
[ "0.76508814", "0.7642453", "0.7462602", "0.731443", "0.72887915", "0.72281724", "0.7181859", "0.7179158", "0.7158398", "0.7158398", "0.7158398", "0.7158398", "0.7158398", "0.7158398", "0.7158398", "0.7158398", "0.7146073", "0.71175563", "0.7111585", "0.7090733", "0.7074571", ...
0.84035933
0
Shell escape the given string Implementation borrowed from nowdeprecated commands.mkarg() in the stdlib
def IguF(WKvO): if "'" not in WKvO: return "'" + WKvO + "'" KCHu = '"' for Z9rn in WKvO: if Z9rn in '\\$"`': KCHu = KCHu + '\\' KCHu = KCHu + Z9rn KCHu = KCHu + '"' return KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AB7u(d7pR):\n return d7pR.replace('\"', '\\\\\"')", "def L9lW(d7pR):\n if ZbWC.match('^[-_.:/=a-zA-Z0-9]*$', d7pR):\n return d7pR\n else:\n return \"'%s'\" % d7pR.replace(\"'\", \"'\\\\''\")", "def YfAJ(wAVY):\n if not isinstance(wAVY, str):\n wAVY = str(wAVY)\n if HDLy....
[ "0.74553555", "0.73201764", "0.6991493", "0.6954239", "0.6900728", "0.68758225", "0.68636274", "0.6813894", "0.6812185", "0.6752599", "0.6742212", "0.6722397", "0.6641635", "0.6609566", "0.66063076", "0.65629905", "0.655883", "0.65519536", "0.65472156", "0.6472492", "0.640144...
0.575265
50
Sets the name of this Order.
def mWFP(YKHO, mWFP): if mWFP is None: raise ValueError('Invalid value for `name`, must not be `None`') YKHO._name = mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZrJ(YKHO, mWFP):\n YKHO._name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, XWXe)...
[ "0.82648826", "0.8240307", "0.8240307", "0.8240307", "0.8240307", "0.8240307", "0.8205807", "0.81975687", "0.81878763", "0.8156773", "0.8156773", "0.8135476", "0.8105759", "0.8058243", "0.8058243", "0.8055882", "0.8055882", "0.80465496", "0.7987892", "0.7977889", "0.7962881",...
0.0
-1
Sets the ride of this Order.
def fBlC(YKHO, fBlC): YKHO._ride = fBlC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fBlC(YKHO):\n print('Riding')\n YKHO.miles += 10\n return YKHO", "def T8tg(YKHO, DeJa):\n if abs(YKHO.angle) == epAf.pi / 2:\n raise ValueError('Impossible to set an ordinate because the line is parallel to the y axis. ')\n YKHO.point.y += DeJa", "def i3O9(YKHO, fBlC, rvsq):\n YKHO...
[ "0.621602", "0.58814394", "0.58329767", "0.54311824", "0.5386418", "0.5379777", "0.5371981", "0.5350862", "0.53216684", "0.5311554", "0.52330667", "0.5163513", "0.5144215", "0.5130599", "0.5087394", "0.50845456", "0.50696373", "0.50696373", "0.5065141", "0.5061489", "0.502307...
0.83167446
0
Sets the demand2 of this Order.
def Y4_n(YKHO, Y4_n): YKHO._demand2 = Y4_n
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vcmB(YKHO, vcmB):\n YKHO._demand = vcmB", "def x9Fq(YKHO, x9Fq):\n YKHO._street_2 = x9Fq", "def mZad(YKHO, mZad):\n YKHO._address_2 = mZad", "def JkuS(YKHO, JkuS):\n YKHO._address2 = JkuS", "def wk4n(YKHO, wk4n):\n YKHO._street_line_2 = wk4n", "def y6Xr(YKHO, y6Xr):\n YKHO._address_...
[ "0.64149886", "0.633905", "0.6269987", "0.6135948", "0.6017517", "0.59513915", "0.59513915", "0.59513915", "0.59415203", "0.58601356", "0.56750596", "0.56512445", "0.5647104", "0.5621098", "0.5570401", "0.553985", "0.54653645", "0.53647447", "0.53596485", "0.5350659", "0.5307...
0.9112267
0
Sets the date_windows of this Order.
def wHKa(YKHO, wHKa): YKHO._date_windows = wHKa
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sFCx(YKHO, sFCx):\n YKHO._time_windows = sFCx", "def w_5H(YKHO, w_5H):\n YKHO._windows = w_5H", "def YdD0(YKHO, YdD0):\n YKHO._dates = YdD0", "def dTpz(Emd4, kepv, KhBf, sEAN, GQfX):\n sDlr.Course.set_named_course_setting_in_environ(uwaB.START_DATE_SETTING, sEAN, kepv)\n sDlr.Course.set_na...
[ "0.65749073", "0.6123321", "0.5608745", "0.5477951", "0.5445921", "0.5219535", "0.5219535", "0.5163603", "0.5047111", "0.4946459", "0.4855974", "0.48484346", "0.48043135", "0.4768365", "0.4762878", "0.4732343", "0.47220406", "0.4714741", "0.46595985", "0.46559376", "0.4655937...
0.85224766
0
Sets the allowed_vehicles of this Order.
def ZykO(YKHO, ZykO): YKHO._allowed_vehicles = ZykO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M0hg(YKHO, M0hg):\n YKHO._disallowed_vehicles = M0hg", "def M0hg(YKHO, M0hg):\n YKHO._disallowed_vehicles = M0hg", "def FMwV(YKHO, FMwV: Vehicle) -> None:\n YKHO.controlled_vehicles = [FMwV]", "def KzJa(YKHO, KzJa):\n if KzJa is None:\n raise ValueError('Invalid value for `allowed`, mu...
[ "0.8050837", "0.8050837", "0.64763683", "0.54872227", "0.5441688", "0.5398962", "0.5387786", "0.5378929", "0.5378929", "0.525168", "0.51113904", "0.5094039", "0.5083932", "0.5041607", "0.49824876", "0.4955959", "0.49170044", "0.48962492", "0.48825344", "0.47503355", "0.472858...
0.8951996
1
Sets the disallowed_vehicles of this Order.
def M0hg(YKHO, M0hg): YKHO._disallowed_vehicles = M0hg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZykO(YKHO, ZykO):\n YKHO._allowed_vehicles = ZykO", "def ZykO(YKHO, ZykO):\n YKHO._allowed_vehicles = ZykO", "def FMwV(YKHO, FMwV: Vehicle) -> None:\n YKHO.controlled_vehicles = [FMwV]", "def k7XH(YKHO, k7XH):\n if k7XH is None:\n raise ValueError('Invalid value for `restrict_robots`, ...
[ "0.83724105", "0.83724105", "0.62155324", "0.53236806", "0.5173283", "0.5169744", "0.5105587", "0.5005991", "0.49751323", "0.4907587", "0.4907587", "0.48994005", "0.4859041", "0.48465118", "0.47969198", "0.47922418", "0.47922418", "0.4792057", "0.47875392", "0.47723186", "0.4...
0.8894529
1
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, L9Jq): 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
Get configuration for training by name.
def ONFV(mWFP): o8Kj = AX1r(mWFP) if o8Kj['online']: GPtr = YF8x[mWFP]() else: GPtr = YF8x[mWFP] GPtr['_call']['name'] = mWFP return GPtr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tgzD(YKHO, mWFP):\n return YKHO.configs[mWFP][0]", "def tgzD(mWFP: str):\n CAYp = GkAb(xAKo).parent.joinpath('configs').joinpath(mWFP)\n return eJmI.read_config(CAYp)", "def OP2O(YKHO, mWFP: str) -> ImMB:\n return YKHO._client.get_config()[mWFP]", "def OP2O(YKHO, mWFP):\n return YKHO.confi...
[ "0.7452226", "0.67589253", "0.6409758", "0.6397484", "0.6343872", "0.62930256", "0.6284134", "0.6260815", "0.6254454", "0.6204225", "0.6203628", "0.6186255", "0.61788213", "0.6140215", "0.61020285", "0.6018425", "0.60173905", "0.59994936", "0.59492266", "0.59285957", "0.59098...
0.7599749
0
Get config for agent models (pretrained/from scratch/from scratch stable baselines.
def AZIF(ILdH, Nygx, ihr1, cfg1, GPtr): Qnv0 = (fYCs[GPtr['_trainer']], ihr1, cfg1, {'model': {'custom_model': 'GymCompetePretrainedModel', 'custom_model_config': {'agent_id': ILdH - 1, 'env_name': GPtr['_env']['env_name'], 'model_config': {}, 'name': 'model_%s' % (ILdH - 1), 'load_weights': True}}, 'framework': GP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AEHk(YKHO, ZZFa=0):\n return ([], JKCy.get_file('config/tests/methods/unsupervised/train_test.gin'))", "def AEHk(ZGE9, qIxc):\n if ZGE9 == 'Tacotron2':\n dyeT = dict(mask_padding=qIxc.mask_padding, n_mel_channels=qIxc.n_mel_channels, n_symbols=qIxc.n_symbols, symbols_embedding_dim=qIxc.symbols_e...
[ "0.64450806", "0.6322704", "0.6154922", "0.61464125", "0.6087813", "0.601911", "0.5965947", "0.59622693", "0.59563386", "0.59386015", "0.5863932", "0.5768834", "0.5746014", "0.57258797", "0.5722078", "0.5635623", "0.56311667", "0.55874664", "0.55678475", "0.55404234", "0.5530...
0.73628634
0
Returns the color for this record.
def PICn(YKHO, AIu6): if AIu6.level >= Fn2t.ERROR: return 'red' elif AIu6.level >= Fn2t.NOTICE: return 'yellow' elif AIu6.level >= Fn2t.INFO: return 'green' elif AIu6.level >= Fn2t.DEBUG: return 'darkblue' return 'lightgray'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PICn(YKHO):\n return YKHO.color", "def qfpW(YKHO):\n return YKHO['color']", "def PICn(YKHO):\n return YKHO.color", "def PICn(YKHO):\n return YKHO._color", "def PICn(YKHO):\n return YKHO._color", "def PICn(YKHO):\n return YKHO._color", "def PICn(YKHO):\n return YKHO._color", "...
[ "0.8570491", "0.8560105", "0.8553639", "0.8508012", "0.8508012", "0.8468174", "0.8463534", "0.8455492", "0.8443696", "0.84204817", "0.8394403", "0.8381473", "0.8381473", "0.8381473", "0.8341364", "0.8341364", "0.83403397", "0.82998437", "0.82034767", "0.8193535", "0.816576", ...
0.7692276
36
Return list v of length bound such that v[n] is 0 if n is multiplicative even, and v[n] is 1 if n is multiplicatively odd. Also v[0] is None. This goes up to bound=`10^7` in about 30 seconds.
def G1iL(mmRm, PJWX=False): Ty9i = [None] * mmRm Ty9i[0] = None Ty9i[1] = int(0) V6IE = [int(XP5J) for XP5J in V0rI(mmRm)] for XP5J in V6IE: Ty9i[XP5J] = int(1) XVAW = V6IE NCx3 = int(1) CMPP = pBSp(RKD7(mmRm, 2)) + 1 mmRm = int(mmRm) for G1Hx in range(CMPP): DpUl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GERS(mLGw):\n Ylbp = [0] * (mLGw + 1)\n for YRbF in range(1, len(Ylbp)):\n Ylbp[YRbF] = Ylbp[YRbF >> 1] + YRbF % 2\n return Ylbp", "def nn_N(exwG):\n Gog0 = []\n for WKvO in range(exwG - 1):\n Gog0.append(WKvO + 2)\n for mLGw in Gog0[:exwG // 2 - 1]:\n if Gog0[mLGw - 2]...
[ "0.6229817", "0.60646546", "0.5947819", "0.5879538", "0.5867471", "0.58053505", "0.57916903", "0.5783961", "0.57752395", "0.5758268", "0.5693424", "0.5677511", "0.564173", "0.56410253", "0.56161827", "0.56001776", "0.5591532", "0.5588608", "0.55883527", "0.55845463", "0.55815...
0.6686395
0
Distance to the decision boundary of a logistic regression classifier. By default the distance is w.r.t. L1 norm. This means that the denominator has to be in terms of the Holder dual norm (`q_norm`), so Linf. I know, this interface is horrible.
def ogbW(WKvO, M_NZ, HlP1, _hZ2, QYxB=oyIN.inf): ewCu = mBkc.get_default() UHFx = ewCu.count() if UHFx % RNG0 == 0: bo34.debug('>> (heuristic_fn start) Node counter is: {}.'.format(UHFx)) p1kx = M_NZ.decision_function([WKvO])[0] if p1kx <= 0: return 0.0 MKlR = oyIN.abs(p1kx) / oy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ayfi(Emd4, cJsZ, hbUd):\n vexM = R5H8.log_map(cJsZ, hbUd)\n return vexM.norm", "def skS7(YKHO, RKD7=False):\n nJ9F = vDGs - YKHO.thrust * 0.95 / (YKHO.total_mass - YKHO.fuel_consumption * 0.0)\n o4D3 = vDGs - YKHO.thrust * 0.95 / (YKHO.total_mass - YKHO.fuel_consumption * 1.0)\n P6bq = nJ9F\n ...
[ "0.6301092", "0.6209596", "0.5950848", "0.57876134", "0.5777478", "0.57513964", "0.5739145", "0.573442", "0.57284826", "0.5667302", "0.56659484", "0.56534505", "0.56495434", "0.5649369", "0.56389743", "0.56198674", "0.56081104", "0.56050664", "0.56025594", "0.5596793", "0.558...
0.0
-1
Get the match start tick from the _matchstart.csv
def Sy7G(nUeQ): with nUeQ.open('r') as Ga6V: Nqlg = Ga6V.read().splitlines() return int(Nqlg[1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qa0o(zFiD):\n assert zFiD is not None\n assert zFiD[:11] == ' INDEX 0'\n assert zFiD[11] == '0' or zFiD[11] == '1'\n if zFiD[11] == '0':\n return\n assert zFiD[11] == '1'\n assert zFiD[12:].strip().count(':') == 2\n O66n, C6wh, VIPT = zFiD[12:].strip().split(':')\n assert O66n...
[ "0.56773263", "0.55945176", "0.5584506", "0.5569953", "0.5547617", "0.5545415", "0.5502045", "0.54885906", "0.54600555", "0.54543483", "0.5385271", "0.53356755", "0.5307885", "0.5253845", "0.52449626", "0.5238114", "0.52334565", "0.52215487", "0.5204952", "0.51517326", "0.513...
0.7633372
0
The name of the Resource Group where the Log Analytics Cluster should exist. Changing this forces a new Log Analytics Cluster to be created.
def TRLE(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'resource_group_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')", "def DWvF(YKHO) -> str:\n return HEOD.get(YKHO, 'logGroupName')", "def DWvF(YKHO) -> str:\n return HEOD.get(YKHO, 'logGroupName')", "def DWvF(YKHO) -> str:\n ...", "def vBTQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'resourc...
[ "0.6899867", "0.68074614", "0.68074614", "0.67291266", "0.671613", "0.66918695", "0.6642707", "0.6642707", "0.6642707", "0.6642707", "0.6642707", "0.6642707", "0.6642707", "0.6642707", "0.6642707", "0.6642707", "0.6642707", "0.6642707", "0.66249186", "0.66249186", "0.66249186...
0.66508317
33
The Azure Region where the Log Analytics Cluster should exist. Changing this forces a new Log Analytics Cluster to be created.
def Rci7(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'location')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zn0c(YKHO):\n return YKHO.config.region", "def zn0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'region')", "def zn0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'region')", "def zn0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'region')", "def zn0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'region')", "def...
[ "0.6063227", "0.57005304", "0.57005304", "0.57005304", "0.57005304", "0.57005304", "0.57005304", "0.56410944", "0.56410944", "0.56410944", "0.56410944", "0.5582563", "0.5550295", "0.5550295", "0.5550295", "0.55070853", "0.55000925", "0.546841", "0.546841", "0.546841", "0.5468...
0.0
-1
The name which should be used for this Log Analytics Cluster. Changing this forces a new Log Analytics Cluster to be created.
def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c0yN(YKHO):\n return YKHO.name", "def c0yN(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_name')", "def c0yN(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_name')", "def c0yN(YKHO):\n return YKHO._data['cluster_name']", "def c0yN(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'cluster...
[ "0.81044704", "0.80277586", "0.80277586", "0.78492236", "0.7447251", "0.7447251", "0.7429812", "0.7334784", "0.7334784", "0.7334784", "0.7334784", "0.7334784", "0.70163107", "0.693203", "0.67455006", "0.6613543", "0.6577319", "0.651852", "0.6489287", "0.6462977", "0.64446443"...
0.0
-1
The GUID of the cluster.
def JvOq(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'cluster_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JvOq(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_id')", "def JvOq(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_id')", "def JvOq(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_id')", "def JvOq(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_id')", "def JvOq(YKHO) -> str:\n return qe4Y...
[ "0.8206752", "0.8206752", "0.8206752", "0.8206752", "0.8206752", "0.79815733", "0.79815733", "0.79815733", "0.79815733", "0.78486013", "0.74347633", "0.73714894", "0.73714894", "0.73284006", "0.73284006", "0.7283499", "0.72495484", "0.72495484", "0.72241676", "0.72117215", "0...
0.7104706
23
The Azure Region where the Log Analytics Cluster should exist. Changing this forces a new Log Analytics Cluster to be created.
def Rci7(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'location')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zn0c(YKHO):\n return YKHO.config.region", "def zn0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'region')", "def zn0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'region')", "def zn0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'region')", "def zn0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'region')", "def...
[ "0.60648334", "0.570232", "0.570232", "0.570232", "0.570232", "0.570232", "0.570232", "0.56427073", "0.56427073", "0.56427073", "0.56427073", "0.558404", "0.5551991", "0.5551991", "0.5551991", "0.5508515", "0.55013114", "0.54701805", "0.54701805", "0.54701805", "0.54701805", ...
0.0
-1
The name which should be used for this Log Analytics Cluster. Changing this forces a new Log Analytics Cluster to be created.
def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c0yN(YKHO):\n return YKHO.name", "def c0yN(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_name')", "def c0yN(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_name')", "def c0yN(YKHO):\n return YKHO._data['cluster_name']", "def c0yN(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'cluster...
[ "0.81056577", "0.8029101", "0.8029101", "0.7850788", "0.7448295", "0.7448295", "0.7431408", "0.7335934", "0.7335934", "0.7335934", "0.7335934", "0.7335934", "0.7017745", "0.6933729", "0.6745742", "0.6613743", "0.657859", "0.6518583", "0.64892256", "0.64624846", "0.6444656", ...
0.0
-1
The name of the Resource Group where the Log Analytics Cluster should exist. Changing this forces a new Log Analytics Cluster to be created.
def TRLE(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'resource_group_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')", "def DWvF(YKHO) -> str:\n return HEOD.get(YKHO, 'logGroupName')", "def DWvF(YKHO) -> str:\n return HEOD.get(YKHO, 'logGroupName')", "def DWvF(YKHO) -> str:\n ...", "def vBTQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'resourc...
[ "0.68979996", "0.68056697", "0.68056697", "0.6728122", "0.67140484", "0.6689719", "0.6648886", "0.6648886", "0.6648886", "0.6648886", "0.6648886", "0.6648886", "0.6648886", "0.6648886", "0.6648886", "0.6648886", "0.6648886", "0.6648886", "0.6648886", "0.6648886", "0.6648886",...
0.6622993
70
Get an existing Cluster resource's state with the given name, id, and optional extra properties used to qualify the lookup.
def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, JvOq: Optional[pulumi.Input[str]]=None, _E99: Optional[pulumi.Input[pulumi.InputType['ClusterIdentityArgs']]]=None, Rci7: Optional[pulumi.Input[str]]=None, mWFP: Optional[pulumi.Input[str]]=None, TRLE: Optional[pulumi.Input[str]]=No...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'Cluster':\n VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))\n r6DL = j4n1.__new__(j4n1)\n r6DL.__dict__['allocation_state'] = None\n r6DL.__dict__['allocation_state_transition_time'] = None\...
[ "0.68857956", "0.6762663", "0.6269104", "0.6147567", "0.5752078", "0.5747889", "0.56971806", "0.5690962", "0.56189775", "0.54786617", "0.54459435", "0.5440927", "0.542167", "0.5419507", "0.53841496", "0.5382412", "0.5325774", "0.52932465", "0.52818096", "0.52761203", "0.52416...
0.7054605
0
The GUID of the cluster.
def JvOq(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'cluster_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JvOq(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_id')", "def JvOq(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_id')", "def JvOq(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_id')", "def JvOq(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_id')", "def JvOq(YKHO) -> str:\n return qe4Y...
[ "0.8206752", "0.8206752", "0.8206752", "0.8206752", "0.8206752", "0.78486013", "0.74347633", "0.73714894", "0.73714894", "0.73284006", "0.73284006", "0.7283499", "0.72495484", "0.72495484", "0.72241676", "0.72117215", "0.7134123", "0.7108181", "0.7104706", "0.7104706", "0.710...
0.79815733
6
The Azure Region where the Log Analytics Cluster should exist. Changing this forces a new Log Analytics Cluster to be created.
def Rci7(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'location')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zn0c(YKHO):\n return YKHO.config.region", "def zn0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'region')", "def zn0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'region')", "def zn0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'region')", "def zn0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'region')", "def...
[ "0.60648334", "0.570232", "0.570232", "0.570232", "0.570232", "0.570232", "0.570232", "0.56427073", "0.56427073", "0.56427073", "0.56427073", "0.558404", "0.5551991", "0.5551991", "0.5551991", "0.5508515", "0.55013114", "0.54701805", "0.54701805", "0.54701805", "0.54701805", ...
0.0
-1
The name which should be used for this Log Analytics Cluster. Changing this forces a new Log Analytics Cluster to be created.
def mWFP(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c0yN(YKHO):\n return YKHO.name", "def c0yN(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_name')", "def c0yN(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_name')", "def c0yN(YKHO):\n return YKHO._data['cluster_name']", "def c0yN(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'cluster...
[ "0.81056577", "0.8029101", "0.8029101", "0.7850788", "0.7448295", "0.7448295", "0.7431408", "0.7335934", "0.7335934", "0.7335934", "0.7335934", "0.7335934", "0.7017745", "0.6933729", "0.6745742", "0.6613743", "0.657859", "0.6518583", "0.64892256", "0.64624846", "0.6444656", ...
0.0
-1
The name of the Resource Group where the Log Analytics Cluster should exist. Changing this forces a new Log Analytics Cluster to be created.
def TRLE(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'resource_group_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')", "def DWvF(YKHO) -> str:\n return HEOD.get(YKHO, 'logGroupName')", "def DWvF(YKHO) -> str:\n return HEOD.get(YKHO, 'logGroupName')", "def DWvF(YKHO) -> str:\n ...", "def vBTQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'resourc...
[ "0.68979996", "0.68056697", "0.68056697", "0.6728122", "0.67140484", "0.6689719", "0.6648886", "0.6648886", "0.6648886", "0.6648886", "0.6648886", "0.6648886", "0.6648886", "0.6648886", "0.6648886", "0.6648886", "0.6648886", "0.6648886", "0.6648886", "0.6648886", "0.6648886",...
0.66406405
54
Returns the chunk immediately prior (and adjacent) to this one, if that chunk is free. If the prior chunk is not free, then its base cannot be located and this method raises an error.
def SA2F(YKHO): if YKHO.is_prev_free(): return OeGf(YKHO.base - YKHO.prev_size(), YKHO.state) else: raise yWQS('Attempted to access the previous chunk, but it was not free')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sNfr(YKHO, yOAJ):\n DpUl = YKHO.free_head_chunk\n if DpUl is None:\n return None\n rGNu = DpUl.fwd_chunk()\n if DpUl == rGNu:\n return DpUl\n if DpUl < yOAJ:\n while DpUl < rGNu < yOAJ:\n DpUl = rGNu\n rGNu = DpUl.fwd_chunk()\n return DpUl\n e...
[ "0.6739727", "0.6521309", "0.6435245", "0.6250908", "0.6151895", "0.59513235", "0.5927833", "0.5909641", "0.5860597", "0.58382", "0.5828593", "0.58237606", "0.58129776", "0.5744253", "0.57187504", "0.5688842", "0.5659023", "0.56492937", "0.5648891", "0.56473315", "0.5608461",...
0.7249195
0
Returns the chunk following this chunk in the list of free chunks. If this chunk is not free, then it resides in no such list and this method raises an error.
def sSF3(YKHO): if YKHO.is_free(): P8oC = YKHO.state.memory.load(YKHO.base + 2 * YKHO._chunk_size_t_size, YKHO._chunk_size_t_size, endness=YKHO.state.arch.memory_endness) return OeGf(P8oC, YKHO.state) else: raise yWQS('Attempted to access the forward chunk of an allocated chunk')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TqMV(YKHO):\n if YKHO.is_free():\n P8oC = YKHO.state.memory.load(YKHO.base + 3 * YKHO._chunk_size_t_size, YKHO._chunk_size_t_size, endness=YKHO.state.arch.memory_endness)\n return OeGf(P8oC, YKHO.state)\n else:\n raise yWQS('Attempted to access the backward chunk of an allocated chun...
[ "0.7230324", "0.7141201", "0.6772742", "0.62905204", "0.62062675", "0.6173802", "0.5944966", "0.59138644", "0.586021", "0.58293843", "0.5822257", "0.5796732", "0.5775129", "0.5760009", "0.57204014", "0.5674012", "0.5660685", "0.5660685", "0.5652517", "0.56497085", "0.56471485...
0.6913154
2
Returns the chunk backward from this chunk in the list of free chunks. If this chunk is not free, then it resides in no such list and this method raises an error.
def TqMV(YKHO): if YKHO.is_free(): P8oC = YKHO.state.memory.load(YKHO.base + 3 * YKHO._chunk_size_t_size, YKHO._chunk_size_t_size, endness=YKHO.state.arch.memory_endness) return OeGf(P8oC, YKHO.state) else: raise yWQS('Attempted to access the backward chunk of an allocated chunk')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sNfr(YKHO, yOAJ):\n DpUl = YKHO.free_head_chunk\n if DpUl is None:\n return None\n rGNu = DpUl.fwd_chunk()\n if DpUl == rGNu:\n return DpUl\n if DpUl < yOAJ:\n while DpUl < rGNu < yOAJ:\n DpUl = rGNu\n rGNu = DpUl.fwd_chunk()\n return DpUl\n e...
[ "0.67708063", "0.67703253", "0.6490286", "0.6169037", "0.61648965", "0.6131261", "0.6129225", "0.5992427", "0.5968614", "0.5966581", "0.59509045", "0.59414023", "0.593857", "0.5928625", "0.5916857", "0.59029496", "0.58884025", "0.5870517", "0.5859937", "0.5852013", "0.5842876...
0.7287688
0
Sets the freedom of the final chunk. Since no proper chunk follows the final chunk, the heap itself manages this. Nonetheless, for now it is implemented as if an additional chunk followed the final chunk.
def qcyG(YKHO, I1mm): if I1mm: YKHO.state.memory.store(YKHO.heap_base + YKHO.heap_size - YKHO._chunk_size_t_size, ~HG8A, size=YKHO.state.arch.bytes) else: YKHO.state.memory.store(YKHO.heap_base + YKHO.heap_size - YKHO._chunk_size_t_size, HG8A, size=YKHO.state.arch.bytes)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m4DU(YKHO, gt0w):\n ABDL = omU5()\n zb4q = YKHO.state.memory.load(YKHO.base + YKHO._chunk_size_t_size, YKHO._chunk_size_t_size)\n mUAk(ABDL)\n if gt0w:\n YKHO.state.memory.store(YKHO.base + YKHO._chunk_size_t_size, zb4q & ~HG8A, size=YKHO.state.arch.bytes)\n else:\n YKHO.state.memo...
[ "0.5948114", "0.54712105", "0.53969675", "0.5382715", "0.5264448", "0.52503955", "0.5098263", "0.5095544", "0.5073785", "0.50644153", "0.50485027", "0.501041", "0.50016767", "0.49913973", "0.49460727", "0.49327362", "0.49307442", "0.49161735", "0.4906533", "0.48933858", "0.48...
0.6257527
0
Creates a ``AvalancheDataset`` instance.
def FIMM(YKHO, gMbG: Sequence[IDataset[T_co]], *, _0VL: Optional[List[int]]=None, hPNR: Optional[List[DataAttribute]]=None, o2it: Optional[TransformGroups]=None, kSYy: Optional[TransformGroups]=None, QxcP: Optional[Callable[[List], Any]]=None): if isinstance(gMbG, kSd9) or isinstance(gMbG, Y7xx): qmLP.warn(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O1fk(__n6: IDataset[T_co], *, hPNR: Optional[List[DataAttribute]]=None, o2it: Optional[TransformGroups]=None, kSYy: Optional[TransformGroups]=None, QxcP: Optional[Callable[[List], Any]]=None) -> Y7xx[E0Uu]:\n return Y7xx([__n6], data_attributes=hPNR, transform_groups=o2it, frozen_transform_groups=kSYy, coll...
[ "0.76401573", "0.6776784", "0.6726462", "0.67147267", "0.65308857", "0.649754", "0.64542747", "0.63987994", "0.62993234", "0.62379515", "0.6233564", "0.6206527", "0.6108701", "0.60328156", "0.6029136", "0.5995433", "0.5948197", "0.59308594", "0.5906971", "0.58810735", "0.5856...
0.5928357
18
Return a new dataset with the added or replaced data attribute.
def SsFg(YKHO: TAvalancheDataset, mWFP: str, Qj8D) -> lHq2: assert len(Qj8D) == len(YKHO), f'Size mismatch when updating data attribute {mWFP}' V0s1 = YKHO._shallow_clone_dataset() V0s1._data_attributes = jth9.copy(V0s1._data_attributes) if isinstance(Qj8D, dmeR): assert mWFP == Qj8D.name ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ONQ5(qmKT, yifd):\n if isinstance(qmKT, x3i3):\n for Ty9i in qmKT.data_vars:\n Jyyj = qmKT[Ty9i]\n for hkS8, wEf2 in Jyyj.attrs.items():\n yifd[Ty9i].attrs[hkS8] = wEf2\n for Z9rn in qmKT.coords:\n BHsk = qmKT.coords[Z9rn]\n for hkS8, ...
[ "0.6383584", "0.6284142", "0.6264239", "0.6245375", "0.6239434", "0.623688", "0.6225956", "0.61806816", "0.61334246", "0.6127098", "0.6107833", "0.60464406", "0.60130364", "0.5986759", "0.5986407", "0.5961638", "0.59089535", "0.5902995", "0.58856267", "0.5838741", "0.5828159"...
0.7056546
0
Returns a new dataset with the transformations of the 'train' group loaded. The current dataset will not be affected.
def EvQg(YKHO): return YKHO.with_transforms('train')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PSrr(YKHO: TAvalancheDataset, IXKo: str) -> lHq2:\n V0s1 = YKHO._shallow_clone_dataset()\n V0s1._flat_data = V0s1._flat_data.with_transforms(IXKo)\n return V0s1", "def YGoo(Ep8u=8):\n dOxh = Ymkf.Compose([Ymkf.RandomResizedCrop(224), Ymkf.RandomFlipLeftRight(), Ymkf.RandomColorJitter(brightness=0...
[ "0.676412", "0.6622502", "0.65713394", "0.6510697", "0.64629513", "0.6420208", "0.6353117", "0.6271212", "0.62441593", "0.621921", "0.6182917", "0.6177743", "0.61645496", "0.61464673", "0.6139943", "0.6127927", "0.61174965", "0.60736495", "0.6046308", "0.6041769", "0.5997495"...
0.68283784
0
Avalanche Dataset. Creates a ``AvalancheDataset`` instance. See ``AvalancheDataset`` for more details.
def O1fk(__n6: IDataset[T_co], *, hPNR: Optional[List[DataAttribute]]=None, o2it: Optional[TransformGroups]=None, kSYy: Optional[TransformGroups]=None, QxcP: Optional[Callable[[List], Any]]=None) -> Y7xx[E0Uu]: return Y7xx([__n6], data_attributes=hPNR, transform_groups=o2it, frozen_transform_groups=kSYy, collate_fn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CroE(YKHO):\n YKHO.dataset = yzDX(YKHO.dataset_config, YKHO.transform)\n return YKHO.dataset", "def PK3w(YKHO, jQ3Z, **B2fa):\n return jQ3Z", "def oUGu(y7GR):\n zQKy = rYeY(y7GR)\n __n6 = zQKy.load_data()\n return __n6", "def ZRjb(JZXy=''):\n return azbc()", "def q2oH(YKHO, mC1D='d...
[ "0.61842227", "0.6082506", "0.6066769", "0.60336804", "0.6019875", "0.5997657", "0.5933955", "0.5854805", "0.5824472", "0.5783517", "0.5752961", "0.5709295", "0.5690842", "0.5673246", "0.5657834", "0.564969", "0.5629147", "0.5560812", "0.55595803", "0.5550338", "0.55310917", ...
0.7583778
0
Tests an API call to get a user info
def V6Ka(ibAR): i4YO = tr4r(206946886) geh0 = i4YO.display() assert isinstance(geh0, dict) assert geh0['id'] == 206946886, 'The ID of the user should be in the response' assert set(ibAR).issubset(geh0.keys()), 'All keys should be in the response'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wkpI(YKHO):\n pass", "def qaZg(YKHO):\n bD7m = '/users/2/'\n geh0 = YKHO.client.get(bD7m, format='json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)\n YKHO.assertEqual(geh0.data['id'], 2)\n YKHO.assertEqual(geh0.data['username'], 'testUser2')", "def y4Ly(YKHO):\n geh0 = G4JS...
[ "0.84643024", "0.7923204", "0.77909374", "0.7743428", "0.77351236", "0.7567337", "0.75108653", "0.749089", "0.74283755", "0.7412849", "0.73279744", "0.7325879", "0.73205143", "0.7281177", "0.7249741", "0.7233568", "0.71882504", "0.7175849", "0.71713126", "0.7163014", "0.71387...
0.66782457
60
gives all primes <=n
def rPed(exwG: int) -> list: rPed = [2] X33u = list(range(2, exwG + 1)) for FGW3 in X33u: for ffYW in rPed: if FGW3 // ffYW == 0: continue else: rPed += [WKvO] print(rPed)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rPed(exwG):\n return [YRbF for YRbF in Ni9Y(1, exwG + 1) if kU5Q(YRbF)]", "def DwOa(exwG):\n return list(uVDW(exwG))", "def kAOJ(exwG):\n uED7 = []\n for YRbF in range(2, exwG):\n if T1qg(YRbF):\n uED7.append(YRbF)\n return uED7", "def rPed(exwG):\n if exwG == 0 or exw...
[ "0.87482494", "0.86952657", "0.84333956", "0.83444345", "0.8342542", "0.82970667", "0.82060283", "0.8199539", "0.8199539", "0.8195856", "0.81926244", "0.8187084", "0.8182257", "0.81811315", "0.8179422", "0.8176728", "0.8124121", "0.8123227", "0.81110287", "0.8071508", "0.8044...
0.7501948
69
Returns x and error estimate thereof
def WVs4(LVAh, U0EM=1e-13, QyaX=30, yIp6=None): if KN2l: pass else: A3mO = nxyw + LVAh * HDEL eUWA = Ctw3(A3mO) - LVAh YRbF = 0 Jw7X = 0.0 while abs(eUWA) > U0EM and YRbF < QyaX: Jw7X = -eUWA / NS4z(A3mO) A3mO += Jw7X eUWA = Ctw3(A3mO) - LVAh YRbF ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P1dF(fuBA, EcVT):\n return (fuBA - EcVT) ** 2", "def P1dF(uhr4: float, rBO0: float, kidU: float, me_t: float) -> float:\n return YEmv(uhr4, rBO0, kidU) - me_t", "def Tjo2(WKvO):\n Kt_s = [9.604973739870516, 90.02601972038427, 2232.005345946843, 7003.325141128051, 55592.30130103949]\n KkY2 = [33...
[ "0.66395056", "0.66101885", "0.6590583", "0.6572673", "0.6479675", "0.6418561", "0.6402628", "0.6263016", "0.6260379", "0.625273", "0.6235225", "0.6221353", "0.62135327", "0.6193837", "0.6191688", "0.61092705", "0.61085325", "0.6103939", "0.60558265", "0.6036493", "0.6023301"...
0.0
-1
Calculate the euclidean distance whne given two points (x1,y1) & (x2,y2)
def Gvwv(o4D3, si3g, ajwV, skBL): Ayfi = epAf.sqrt(abs(epAf.pow(ajwV - o4D3, 2)) + abs(epAf.pow(skBL - si3g, 2))) return Ayfi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def usGr(o4D3, si3g, ajwV, skBL):\n Ayfi = epAf.sqrt((ajwV - o4D3) ** 2 + (skBL - si3g) ** 2)\n return Ayfi", "def usGr(lCHq, ANJu):\n return epAf.sqrt(sum([(WKvO - LVAh) ** 2 for WKvO, LVAh in zip(lCHq, ANJu)]))", "def Ayfi(o4D3, si3g, ajwV, skBL):\n return ((ajwV - o4D3) ** 2 + (skBL - si3g) ** 2...
[ "0.8627741", "0.8431432", "0.8408465", "0.832826", "0.83005786", "0.8295182", "0.8293297", "0.8289106", "0.827331", "0.8251059", "0.82306075", "0.81927794", "0.8148658", "0.8135282", "0.8118735", "0.81160355", "0.8068486", "0.80680084", "0.8019211", "0.79522884", "0.79490346"...
0.8791461
0
Returns the VarCollection of the wrapped module.
def vars(YKHO, rrBf: str='') -> uSaP: return YKHO.__wrapped__.vars(scope=rrBf)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vars(YKHO, rrBf: str='') -> uSaP:\n dIT4 = uSaP()\n rrBf += f'({YKHO.__class__.__name__}).'\n for G1Hx, Ty9i in YKHO.__dict__.items():\n if isinstance(Ty9i, NnfX):\n dIT4[rrBf + G1Hx] = Ty9i\n elif isinstance(Ty9i, awyi):\n if G1Hx == '__wrapped__':\n ...
[ "0.70691246", "0.68775046", "0.6417145", "0.6360135", "0.6243516", "0.61562425", "0.6150755", "0.6110369", "0.604031", "0.5986304", "0.59617937", "0.593429", "0.5915338", "0.58190966", "0.5818179", "0.581717", "0.57682383", "0.56744236", "0.56226027", "0.5622196", "0.5599347"...
0.6865874
2
Return the VarCollection of the variables used by the function.
def vars(YKHO, rrBf: str='') -> uSaP: if rrBf: return uSaP(((rrBf + G1Hx, Ty9i) for G1Hx, Ty9i in YKHO.vc.items())) return uSaP(YKHO.vc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kc1W(YKHO):\n return {P6bq for P6bq in YKHO if P6bq.type == 'var'}", "def lSnF(YKHO):\n return []", "def vars(YKHO, rrBf: str='') -> uSaP:\n return YKHO.__wrapped__.vars(scope=rrBf)", "def vars(YKHO):\n return [RELP(YRbF, YKHO.dims[YRbF]) for YRbF in range(YKHO.nvar)]", "def jbKh(YKHO):\n ...
[ "0.7559844", "0.7478491", "0.74654114", "0.74014294", "0.73995835", "0.73664683", "0.73602045", "0.7294193", "0.7279656", "0.72559124", "0.72493297", "0.7231599", "0.7230316", "0.71086866", "0.709824", "0.7081276", "0.7075124", "0.70687777", "0.7028275", "0.70204973", "0.7020...
0.7486616
1
Utility to reshape an input array in order to broadcast to multiple devices.
def wP0v(YKHO, WKvO: JaxArray) -> DKWv: assert hasattr(WKvO, 'ndim'), f'Expected JaxArray, got {type(WKvO)}. If you are trying to pass a scalar to parallel, first convert it to a JaxArray, for example np.float(0.5)' if WKvO.ndim == 0: return oyIN.broadcast_to(WKvO, [YKHO.ndevices]) assert WKvO.shape...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tNUG(qw7D):\n if len(qw7D.shape) == 2:\n qw7D = XTiz.expand_dims(qw7D, axis=2)\n qw7D = XTiz.expand_dims(qw7D, axis=0)\n return qw7D", "def q3V_(input):\n input = input / 255\n input = uPnQ.resize(input, (qIxc.size, qIxc.size))\n input = oyIN.reshape(input, input.shape + (1,))\n i...
[ "0.71891135", "0.7091737", "0.7016443", "0.696897", "0.69149935", "0.6911399", "0.6824757", "0.6815497", "0.6796378", "0.6782199", "0.6782199", "0.6705896", "0.6580548", "0.64910996", "0.64861894", "0.64594185", "0.6431378", "0.63681036", "0.63589054", "0.63227814", "0.623102...
0.6735575
11
Initialises a new 'PendingCalculation' instance.
def FIMM(YKHO, cCgh=0, XprR=False, TgUx=0, bKqb=0.0, vgXP=0, RKiq=None, dLvK=None, *qIxc, **lcZy): YKHO.scalarNumerator = cCgh YKHO.multiplyBeforeAdd = XprR YKHO.scalarDenominator = TgUx YKHO.scalarFloat = bKqb YKHO.offset = vgXP YKHO._IntervalBlocks = [] YKHO.IntervalBlocks = [] if RKiq is ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, aJ2e=None):\n super(TeqG, YKHO).__init__(type_id=BfAD, created_at=aJ2e)", "def rpA5(YKHO):\n YKHO.ctx.running_calc += 1\n YKHO.ctx.inputs.structure = YKHO.inputs.structure\n UXqs = YKHO.inputs.metadata.get('label', kdvQ)\n JBZA = YKHO.inputs.metadata.get('description', '')\n YKHO...
[ "0.5833618", "0.5674528", "0.5571382", "0.53659016", "0.5345722", "0.5337999", "0.5320642", "0.5320642", "0.52803034", "0.527802", "0.5277454", "0.52562463", "0.5250982", "0.5240429", "0.5225318", "0.5212049", "0.5195182", "0.51923645", "0.519024", "0.51610416", "0.5138548", ...
0.65330714
0
Compute softmax values for each sets of scores in x.
def N93T(WKvO): uw5A = oyIN.exp(WKvO - oyIN.max(WKvO)) return uw5A / uw5A.sum(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.77965075", "0.77608246", "0.7759328", "0.7757032", "0.76580364", "0.76580364", "0.76580364", "0.76580364", "0.7585873", "0.743174", "0.74079806", "0.7394367", "0.7358405", "0.73176855", "0.72691524", "0.7262539", "0.72616005", "0.7257189", "0.7230358", "0.7215222", "0.7201...
0.7061904
66
Returns starting state of the board.
def ecRS(): return [[KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf]]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rEkR(YKHO):\n return oyIN.zeros(YKHO.board_size, dtype=oyIN.int8)", "def rEkR():\n return H66R.Board()", "def jKlz(YKHO):\n return (YKHO.startingPosition, (False, False, False, False))", "def D3Ar(YKHO):\n gnPz.raiseNotDefined()", "def D3Ar(YKHO):\n gnPz.raiseNotDefined()", "def D3Ar(Y...
[ "0.8081974", "0.789134", "0.75339407", "0.72773534", "0.72773534", "0.7224644", "0.7224644", "0.7224644", "0.7224644", "0.7224644", "0.7224644", "0.7224644", "0.7224644", "0.7224644", "0.7224644", "0.7224644", "0.7224644", "0.7224644", "0.7224644", "0.7224644", "0.7224644", ...
0.0
-1
Returns player who has the next turn on a board. Player X is always starting.
def GFCh(iBIi): DD5t, N7K1 = (0, 0) for rdlD in iBIi: DD5t += rdlD.count(EcVT) N7K1 += rdlD.count(LTX_) if DD5t > N7K1: return LTX_ return EcVT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zia_(YKHO):\n UHFx = mBkc(YKHO.board)\n if UHFx.get('X', 0) > UHFx.get('O', 0):\n return 'O'\n return 'X'", "def Zia_(iBIi, UwI3):\n RUgX = VlLD.opponent(UwI3)\n if VlLD.any_legal_move(RUgX, iBIi):\n return RUgX\n elif VlLD.any_legal_move(UwI3, iBIi):\n return UwI3\n ...
[ "0.76980597", "0.7605448", "0.75094336", "0.74354905", "0.72666013", "0.7237328", "0.71856785", "0.71827954", "0.7145635", "0.7090568", "0.7087428", "0.7026365", "0.7007532", "0.6998657", "0.6913283", "0.6892157", "0.6877069", "0.68342906", "0.6820439", "0.6820439", "0.678737...
0.706045
11
Returns the optimal action for the current player on the board.
def SR1K(iBIi): enxE = None oyg0 = GFCh(iBIi) if oyg0 == EcVT: giSi = -epAf.inf for XeOP in qaYX(iBIi): wEf2 = WzEy(XZHZ(iBIi, XeOP), giSi, oyg0) if wEf2 > giSi: giSi = wEf2 enxE = XeOP if wEf2 == 1: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ePBn(YKHO):\n if YKHO.bestAction is None:\n YKHO.calculate_best_action()\n return YKHO.bestAction", "def bk5W(YKHO, Ov5A: GameState):\n SkJr = float('-inf')\n XeOP = None\n for BZN_ in Ov5A.getLegalActions(0):\n gnPz = SR1K(YKHO.evaluationFunction, 1, 0, Ov5A.generateSuccessor(0,...
[ "0.7766856", "0.76323676", "0.75855315", "0.75285065", "0.75175256", "0.74667144", "0.74263537", "0.7416421", "0.73943585", "0.7375846", "0.7333894", "0.73147565", "0.7306611", "0.7284639", "0.72650313", "0.72650313", "0.7250975", "0.72331834", "0.7203267", "0.71732694", "0.7...
0.7460485
6
Set the DHW to follow the schedule.
def N_P4(YKHO): nPrm = {'Mode': 'FollowSchedule', 'State': '', 'UntilTime': None} YKHO._set_dhw(nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xyPJ(YKHO, CjKC, Vzk6, b6Gq):\n YKHO.schedule['schedule'][CjKC][Vzk6] = b6Gq", "def wFvH(YKHO, ZsYj=None):\n if ZsYj is None:\n nPrm = {'Mode': 'PermanentOverride', 'State': 'On', 'UntilTime': None}\n else:\n nPrm = {'Mode': 'TemporaryOverride', 'State': 'On', 'UntilTime': ZsYj.strftim...
[ "0.6246013", "0.5818637", "0.56434053", "0.5642498", "0.5373371", "0.52095324", "0.5179568", "0.5150776", "0.5132043", "0.5132043", "0.5113041", "0.5044487", "0.50389427", "0.5037211", "0.50341535", "0.50309134", "0.50230217", "0.4970477", "0.49598724", "0.49178386", "0.49132...
0.7934776
0
Return duple of handle definition and encoding or None duple if not a handle handle is a possible file handle The return is (handle definition, encoding) or a None duple if this is not a known handle
def duDW(YKHO, nVrR): return YKHO.fhdict.get(nVrR.lower(), (None, None))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b1D7(IznC):\n if IznC is None:\n return (None, None)\n Fst3 = ovIo(IznC)\n INsr = ZHnU.get(Fst3)\n if INsr:\n Fst3 = ovIo(IznC[:-len(Fst3) - 1])\n m5r4 = g42w.get(Fst3)\n return (INsr, m5r4)", "def WFLI(hGN5: str) -> h8nf[tuple[rczC.arch.Architecture, rczC.arch.Endianness]]:\n...
[ "0.5360577", "0.5255213", "0.5188898", "0.5159582", "0.5147309", "0.513703", "0.51299644", "0.5081016", "0.49880522", "0.49835837", "0.49625415", "0.49593022", "0.4936775", "0.48624855", "0.4858554", "0.48534927", "0.48458427", "0.48150045", "0.4805964", "0.48054904", "0.4805...
0.56236774
0
This method is called when the agents are build. It can be overwritten by the user, to initialize the agents. parameters and agent_parameters are the parameters given in
def DbxN(YKHO, SGPK, LExm): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wgGB(YKHO):\n pass", "def cRhR(YKHO):\n YKHO.agents = [mA7V(e=0.1, a=0.1, row=YKHO.row, col=YKHO.col) for YRbF in range(2)]", "def wgGB(YKHO, pVGv):\n try:\n YKHO.num_states = pVGv['num_states']\n YKHO.num_actions = pVGv['num_actions']\n except:\n print(\"You need to pass b...
[ "0.72151494", "0.6663", "0.66094863", "0.65945065", "0.6516566", "0.6426929", "0.63656723", "0.63632447", "0.6358823", "0.63246685", "0.6312075", "0.623338", "0.6214334", "0.6191401", "0.6182455", "0.61509305", "0.61505723", "0.61403817", "0.61379075", "0.61313826", "0.609022...
0.8251342
0
Get day months and year differences between dates
def fIQt(AjzU, _sQW, rYO3): if rYO3 not in ['days', 'months', 'years']: P1dF('Invalid unit type: ' + str(rYO3)) oCcr = {'days': 1, 'months': 30.4, 'years': 365.25} xz4K = oCcr[rYO3] PUCa = abs((_sQW - AjzU).days) return int(PUCa / xz4K)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nzGy(kepv, KhBf):\n yk4i = h3X7(kepv, KhBf, date_format=qhSz.DATE_FORMAT)\n return yk4i.years * 12 + yk4i.months", "def JeNY(AjzU, _sQW):\n return lO1m(abs((AjzU.year - _sQW.year) * 12 + AjzU.month - _sQW.month))", "def iayq(Ilc0, w0do):\n if Ilc0.daysTo(w0do) < 0:\n PYCW = Ilc0\n ...
[ "0.6987735", "0.69277537", "0.67518675", "0.6684063", "0.65516883", "0.64748985", "0.6378188", "0.63703674", "0.6360468", "0.6286766", "0.62316036", "0.6192492", "0.6186307", "0.6148199", "0.6116816", "0.6098557", "0.60652864", "0.6064737", "0.6061227", "0.597224", "0.5955158...
0.6522908
5
Gets regex with groups and ends with ``\\z`` to match target suffix. Returns str The suffix pattern
def nCEB(YKHO): return YKHO.getOrDefault('suffixPattern')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JOls():\n ZI14 = ''\n if DWFX.USE_TAIL:\n ZI14 += '_use_tail'\n else:\n ZI14 += '_no_tail'\n if DWFX.WAY_MODEL_TGT == 'absolute':\n ZI14 += '_absolute'\n elif DWFX.WAY_MODEL_TGT == 'relative':\n ZI14 += '_relative'\n else:\n exit('error on the function that ...
[ "0.56613475", "0.56411755", "0.56411755", "0.56411755", "0.55363405", "0.55363405", "0.55051965", "0.55051965", "0.54414606", "0.54355556", "0.5344791", "0.5344791", "0.53204", "0.53006077", "0.52948916", "0.5268836", "0.52538824", "0.5248414", "0.52029204", "0.5201612", "0.5...
0.679943
0
Sets pattern to grab from text as token candidates, by default ``\\S+``.
def ARcd(YKHO, BWXx): return YKHO._set(targetPattern=BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oRew(l5Ny, mXDZ):\n s2mk = Dhdw.regexp_tokenize(l5Ny, mXDZ)\n return s2mk", "def FIMM(YKHO, l5Ny: str):\n YKHO.words = kC4s.findall(l5Ny)", "def FIMM(YKHO, mXDZ):\n YKHO._pattern = mXDZ.lower()", "def t325(YKHO):\n if not YKHO._pattern:\n GIN8 = \"[a-zA-Z0-9?,\\\\.\\\\-_!;:']+\"\n ...
[ "0.5929916", "0.59224397", "0.5662446", "0.5558155", "0.5542746", "0.517427", "0.5157613", "0.5119881", "0.51077336", "0.50938475", "0.50715846", "0.50452334", "0.49799564", "0.49753013", "0.4955305", "0.4940583", "0.4928961", "0.49161047", "0.4915082", "0.4901924", "0.487852...
0.0
-1
Sets words that won't be affected by tokenization rules.
def aCpG(YKHO, BWXx): return YKHO._set(exceptions=BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def blJF(YKHO):\n YKHO.removeOwnPunctuation()\n YKHO.removeOwnStopWords()", "def u1jU(YKHO):\n YKHO.wordKnown = ''.join(['_ ' if yzQ0 not in YKHO.guessedRight else yzQ0 for yzQ0 in YKHO.getWord()])", "def cvZO(YKHO, V22M):\n if YKHO.type == 'DIAGNOSIS':\n j28w = ['DX']\n elif YKHO.type ==...
[ "0.7415955", "0.6952087", "0.6950947", "0.68814147", "0.67158085", "0.66769695", "0.6612828", "0.6513896", "0.64850664", "0.6479143", "0.6382393", "0.6370426", "0.6339125", "0.63258755", "0.63212067", "0.6289311", "0.6287283", "0.6251924", "0.62306666", "0.62306565", "0.62280...
0.0
-1
Gets words that won't be affected by tokenization rules. Returns List[str] Words that won't be affected by tokenization rules
def bBCK(YKHO): return YKHO.getOrDefault('exceptions')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TUDJ(YKHO):\n V22M = set([])\n for eOtH in YKHO.importantTokenList():\n if eOtH.isStopWord() == False:\n V22M.add(eOtH.text.lower())\n return V22M", "def dl9a(l5Ny):\n V22M = l5Ny.split()\n yvT9 = []\n for yzQ0 in V22M:\n yzQ0 = lCct(yzQ0)\n if yzQ0 != None:\...
[ "0.78293425", "0.7388257", "0.7378749", "0.72831744", "0.72766083", "0.7270191", "0.7265354", "0.72441757", "0.72324914", "0.72225565", "0.7219836", "0.7195111", "0.71845174", "0.7184133", "0.71755683", "0.71595865", "0.71472317", "0.712717", "0.7100701", "0.70664644", "0.704...
0.0
-1
Sets pattern to separate from the inside of tokens. Takes priority over splitChars.
def N2sf(YKHO, BWXx): return YKHO._set(splitPattern=BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TDw3(YKHO) -> 'pattern':\n raise NotImplementedError", "def _iBT(YKHO, rrSk, jjCi, **B2fa):\n _bDj = [YKHO.tokenizer.transform(A97Q) for A97Q in rrSk]\n for mXDZ in YKHO._tokenizedpatterngenerator(_bDj, jjCi, **B2fa):\n yield mXDZ", "def FIMM(YKHO, mXDZ):\n YKHO._pattern = mXDZ.lower()",...
[ "0.60127646", "0.5720355", "0.5702593", "0.5692438", "0.5552301", "0.54941744", "0.54671013", "0.54601145", "0.5455173", "0.5345393", "0.5338574", "0.533558", "0.5321088", "0.52936316", "0.52627397", "0.5208205", "0.5175203", "0.5152153", "0.5152153", "0.5071862", "0.5059671"...
0.6615424
0
Sets the maximum allowed legth for each token, by default 99999.
def UQ6M(YKHO, BWXx): return YKHO._set(maxLength=BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wTNQ(YKHO, BWXx):\n return YKHO._set(maxTokens=BWXx)", "def jw1Y(YKHO):\n YKHO._level_gen.maximum_length = YKHO._maximum_length_spinbox.value()\n YKHO._refresh_view()", "def qDIl(YKHO, ANdr):\n YKHO.maxsize = ANdr", "def S1m9(GPal):\n VwDX._set_max_nb_robots_(GPal)", "def Bu0a(YKHO, bQ6z...
[ "0.6942922", "0.680115", "0.6503058", "0.6459999", "0.63402814", "0.63402814", "0.6240434", "0.6178947", "0.6170668", "0.6151255", "0.61305356", "0.61172724", "0.60697144", "0.6056842", "0.60011375", "0.59801924", "0.5978601", "0.58801407", "0.5860224", "0.5830532", "0.580508...
0.57344186
28
Sets pattern to separate from the inside of tokens. Takes priority over splitChars.
def N2sf(YKHO, BWXx): return YKHO._set(splitPattern=BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TDw3(YKHO) -> 'pattern':\n raise NotImplementedError", "def _iBT(YKHO, rrSk, jjCi, **B2fa):\n _bDj = [YKHO.tokenizer.transform(A97Q) for A97Q in rrSk]\n for mXDZ in YKHO._tokenizedpatterngenerator(_bDj, jjCi, **B2fa):\n yield mXDZ", "def FIMM(YKHO, mXDZ):\n YKHO._pattern = mXDZ.lower()",...
[ "0.60127646", "0.5720355", "0.5702593", "0.5692438", "0.5552301", "0.54941744", "0.54671013", "0.54601145", "0.5455173", "0.5345393", "0.5338574", "0.533558", "0.5321088", "0.52936316", "0.52627397", "0.5208205", "0.5175203", "0.5152153", "0.5152153", "0.5071862", "0.5059671"...
0.6615424
1
Sets the maximum allowed legth for each token.
def UQ6M(YKHO, BWXx): return YKHO._set(maxLength=BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jw1Y(YKHO):\n YKHO._level_gen.maximum_length = YKHO._maximum_length_spinbox.value()\n YKHO._refresh_view()", "def wTNQ(YKHO, BWXx):\n return YKHO._set(maxTokens=BWXx)", "def qDIl(YKHO, ANdr):\n YKHO.maxsize = ANdr", "def n8AS(YKHO, RsfQ):\n YKHO._max = max(0, RsfQ)\n if YKHO._max:\n ...
[ "0.6933104", "0.67468673", "0.6419099", "0.6325806", "0.6289092", "0.6286208", "0.62857956", "0.62857956", "0.61723024", "0.612657", "0.61048114", "0.6078063", "0.59744036", "0.5955925", "0.5940171", "0.5908336", "0.59000224", "0.5891313", "0.5881514", "0.5851287", "0.5809892...
0.5637081
30
Sets the maximum allowed legth for each token.
def UQ6M(YKHO, BWXx): return YKHO._set(maxLength=BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jw1Y(YKHO):\n YKHO._level_gen.maximum_length = YKHO._maximum_length_spinbox.value()\n YKHO._refresh_view()", "def wTNQ(YKHO, BWXx):\n return YKHO._set(maxTokens=BWXx)", "def qDIl(YKHO, ANdr):\n YKHO.maxsize = ANdr", "def n8AS(YKHO, RsfQ):\n YKHO._max = max(0, RsfQ)\n if YKHO._max:\n ...
[ "0.6933104", "0.67468673", "0.6419099", "0.6325806", "0.6289092", "0.6286208", "0.62857956", "0.62857956", "0.61723024", "0.612657", "0.61048114", "0.6078063", "0.59744036", "0.5955925", "0.5940171", "0.5908336", "0.59000224", "0.5891313", "0.5881514", "0.5851287", "0.5809892...
0.5637081
31
Sets external resource to rules, needs 'delimiter' in options.
def N_TX(YKHO, pmON, TDw3, h76B=CREO.TEXT, xAU6={'format': 'text'}): VKhi = xAU6.copy() if 'delimiter' not in VKhi: VKhi['delimiter'] = TDw3 return YKHO._set(externalRules=_0dX(pmON, h76B, VKhi))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eXaP(YKHO, x0hE, *qIxc, **Is1V):\n pass", "def eXaP(YKHO, x0hE, *qIxc, **Is1V):\n pass", "def eXaP(YKHO, x0hE):\n pass", "def eXaP(YKHO, x0hE):\n pass", "def Y_t6(c_NS, f2Tp=True, NTFq=False):\n DbxN(use_conf=False)\n jGB9.set_rules(c_NS, f2Tp, NTFq)", "def DUSd(YKHO, pmON, TDw3, h7...
[ "0.57064635", "0.57064635", "0.5675133", "0.5675133", "0.5460084", "0.5459312", "0.54122496", "0.532189", "0.53013927", "0.52802545", "0.52601534", "0.5245513", "0.5245513", "0.5245513", "0.5245513", "0.5245513", "0.5228362", "0.519679", "0.5128836", "0.5124839", "0.51207614"...
0.77379024
0
Sets whether to parse the date in mm/dd/yyyy format instead of dd/mm/yyyy, by default True. For example July 5th 2015, would be parsed as 07/05/2015 instead of 05/07/2015.
def B9yk(YKHO, BWXx): return YKHO._set(readMonthFirst=BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iS0y(YKHO):\n vELI = True\n try:\n Z6gX = YKHO.date_edit.text()\n pdbK = qcWV.strptime(Z6gX, '%Y-%m-%d')\n except BaseException:\n vELI = False\n return vELI", "def JDE9(YKHO, _c1T=None):\n if _c1T is not None:\n PFAa = '%d/%m/%Y'\n Vg39 = qcWV.strptime(_c1T,...
[ "0.60482407", "0.5812935", "0.5795009", "0.5690697", "0.5668029", "0.5632126", "0.562029", "0.562029", "0.5526658", "0.5461529", "0.5406106", "0.5359038", "0.5311286", "0.5301336", "0.52850413", "0.5283639", "0.5233545", "0.5204311", "0.5204059", "0.5200141", "0.5189358", "...
0.0
-1
Sets an anchor month for the relative dates such as a day after tomorrow. If not set it will use the current month.
def l3MM(YKHO, BWXx): eMik = BWXx - 1 return YKHO._set(anchorDateMonth=eMik)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ejDz(YKHO, *qIxc):\n return _VfD.Date_setMonth(YKHO, *qIxc)", "def mQe7(YKHO):\n YKHO._canvas.place_forget()\n lO87, x0eS = (YKHO._date.year, YKHO._date.month)\n YKHO._date = YKHO._date + YKHO.timedelta(days=GRk0.monthrange(lO87, x0eS)[1] + 1)\n YKHO._date = YKHO.datetime(YKHO._date.year, YKHO...
[ "0.628867", "0.60595614", "0.60135895", "0.59516186", "0.564721", "0.5639745", "0.56392854", "0.56219184", "0.5595049", "0.5568303", "0.555252", "0.55226934", "0.5473782", "0.5472456", "0.54565424", "0.5453102", "0.5430861", "0.54199123", "0.5387466", "0.5337742", "0.5332324"...
0.83501244
0
Sets an anchor day of the day for the relative dates such as a day after tomorrow. If not set it will use the current day.
def SKvU(YKHO, BWXx): return YKHO._set(anchorDateDay=BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p33c(YKHO, *qIxc):\n return _VfD.Date_setDay(YKHO, *qIxc)", "def l3MM(YKHO, BWXx):\n eMik = BWXx - 1\n return YKHO._set(anchorDateMonth=eMik)", "def cI0A(lO87):\n CjKC = (5 * (lO87 // 100 % 4) + 2) % 7\n return CjKC", "def CjKC(YKHO, CjKC):\n YKHO._day = CjKC", "def CjKC(YKHO, CjKC):\...
[ "0.6182741", "0.56285065", "0.5529314", "0.540226", "0.540226", "0.54009134", "0.5396998", "0.5369027", "0.53335136", "0.53335136", "0.5253803", "0.52393943", "0.5233588", "0.520227", "0.5195527", "0.5168494", "0.51591825", "0.51198655", "0.50870115", "0.50719106", "0.5046702...
0.8381516
0
Sets TokenizerModel to use to tokenize input file for building a Trie.
def _1xK(YKHO, adqI): adqI._transfer_params_to_java() return YKHO._set(adqI._java_obj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wr3U(YKHO):\n WKvO = []\n for qaEx in SC2F.glob(YKHO.train_dir + '*.txt'):\n LInS = open(qaEx).read()\n WKvO.append(LInS)\n YKHO.tokenizer.fit_on_texts(WKvO)\n print('input vocabulary size:', len(YKHO.tokenizer.word_index))\n VIsj = open('Model/tokenizer.p', 'wb')\n t2lc.dump(YK...
[ "0.60258204", "0.59469104", "0.5725507", "0.5637215", "0.56240195", "0.5614295", "0.5583916", "0.5576202", "0.5412135", "0.54113585", "0.53697526", "0.5333523", "0.5242711", "0.52235425", "0.5222251", "0.52115285", "0.52022016", "0.5158442", "0.51493186", "0.5127048", "0.5120...
0.712567
0
Sets length at which sentences will be forcibly split.
def OuqL(YKHO, BWXx): return YKHO._set(splitLength=BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def INda(YKHO, BWXx):\n return YKHO._set(maxSentenceLength=BWXx)", "def INda(YKHO, BWXx):\n return YKHO._set(maxSentenceLength=BWXx)", "def INda(YKHO, BWXx):\n return YKHO._set(maxSentenceLength=BWXx)", "def INda(YKHO, BWXx):\n return YKHO._set(maxSentenceLength=BWXx)", "def INda(YKHO, BWXx):\n...
[ "0.6865042", "0.6865042", "0.6865042", "0.6865042", "0.6865042", "0.6865042", "0.6865042", "0.6865042", "0.6865042", "0.6865042", "0.6865042", "0.6865042", "0.6865042", "0.6865042", "0.6865042", "0.6865042", "0.6865042", "0.6865042", "0.6865042", "0.6865042", "0.6865042", "...
0.6662465
24
Sets minimum allowed length for each sentence, by default 0
def JRRV(YKHO, BWXx): return YKHO._set(minLength=BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e3V6(YKHO):\n LWLc = int(YKHO.set_min_sentence.get())\n PW0N = YKHO.max_sentence_length\n if LWLc < PW0N:\n YKHO.min_sentence_length = LWLc\n else:\n vSPt = YKHO.min_sentence_length\n lpLO = on8l.StringVar(YKHO.master)\n lpLO.set(str(vSPt))\n YKHO.set_min_sentence...
[ "0.7627903", "0.7156304", "0.6837284", "0.67570573", "0.66353697", "0.66353697", "0.66353697", "0.66353697", "0.66353697", "0.66353697", "0.66353697", "0.66353697", "0.66353697", "0.66353697", "0.66353697", "0.66353697", "0.66353697", "0.66353697", "0.66353697", "0.66353697", ...
0.6407058
30
Sets name of column for data labels.
def DjhZ(YKHO, BWXx): return YKHO._set(labelColumn=BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hGdM(YKHO, mWFP):\n YKHO.column_name = mWFP", "def hGdM(YKHO, mWFP):\n YKHO.column_name = mWFP", "def z0q4(YKHO, UXqs):\n YKHO.output_label = UXqs\n return YKHO", "def DjhZ(YKHO, Ty9i):\n return YKHO._set(labelColumn=Ty9i)", "def Cg6B(YKHO, iVRZ, or8S, qrLi, mWFP):\n yDqo = YKHO.dtype...
[ "0.7711343", "0.7711343", "0.74903476", "0.7224172", "0.70832473", "0.6838743", "0.6631946", "0.6574716", "0.6557649", "0.64363885", "0.6297389", "0.6184849", "0.6166829", "0.6135585", "0.61154836", "0.611353", "0.6105123", "0.606296", "0.606296", "0.6055398", "0.60361886", ...
0.7029037
7
Sets minimum weight value. Features with less weights then this param value will be filtered.
def aCOS(YKHO, yzQ0): return YKHO._set(minW=yzQ0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sNuA(YKHO, _mSQ):\n for YRbF, gEmA in enumerate(_mSQ):\n if oyIN.any(gEmA == YKHO.minval):\n _mSQ[YRbF] = oyIN.where(_mSQ[YRbF] == YKHO.minval, YKHO.replace_min, _mSQ[YRbF])\n super().set_weights(list(_mSQ))", "def KFtY(YKHO, upAO):\n YKHO.weight = upAO", "def upAO(YKHO, upAO):\n...
[ "0.73393", "0.6973091", "0.67955333", "0.67955333", "0.67955333", "0.6777445", "0.6710003", "0.6657979", "0.6657979", "0.6657979", "0.65866613", "0.65741", "0.64773965", "0.64773965", "0.64716136", "0.64621645", "0.64484024", "0.64484024", "0.6376731", "0.63380915", "0.622261...
0.71151185
1
Sets configProto from tensorflow, serialized into byte array.
def GOb_(YKHO, Fg_i): return YKHO._set(configProtoBytes=Fg_i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GOb_(YKHO, Ty9i):\n return YKHO._set(configProtoBytes=Ty9i)", "def jy32(Z9rn):\n IHts = Hy7s.environ.get('use_gpu', Z9rn.get('tf.config.use_gpu', Z9rn.get('use_gpu', 1)))\n _Fei = ZylS.ConfigProto(device_count={'GPU': IHts})\n VKhi = {y7GR.replace('tf.config.', ''): Z9rn[y7GR] for y7GR in Z9rn if...
[ "0.75618696", "0.6219305", "0.6167628", "0.59814763", "0.59055257", "0.5844697", "0.5599306", "0.55863786", "0.5412146", "0.53233427", "0.5217989", "0.52129155", "0.51678354", "0.51494646", "0.50938296", "0.5053427", "0.50138324", "0.49860623", "0.4972503", "0.49635026", "0.4...
0.7518328
24
Sets Learning Rate, by default 0.001.
def Y5zB(YKHO, Ty9i): YKHO._set(lr=Ty9i) return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kVtO(YKHO, mVUw):\n YKHO.SGD.set_learning_rate(mVUw)", "def b0Ix(qtWj):\n YKHO.lr = YKHO.lr / 1.00000001\n return YKHO.lr", "def NkTt():\n return 1e-05", "def NcuP(YKHO):\n b0Ix = YKHO.params.base_lr * (1 - float(YKHO.epoch) / YKHO.params.num_epoch) ** YKHO.params.power\n for Lwm5 in YK...
[ "0.79922676", "0.76068604", "0.7550042", "0.7423539", "0.7380186", "0.72877944", "0.71704733", "0.717002", "0.71413094", "0.71413094", "0.7134791", "0.7103761", "0.70970416", "0.7069047", "0.70606893", "0.70606893", "0.70531285", "0.7052301", "0.7050756", "0.70486426", "0.703...
0.0
-1
Sets Learning rate decay coefficient, by default 0.005. Real Learning Rage is lr / (1 + po epoch).
def K9gn(YKHO, Ty9i): YKHO._set(po=Ty9i) return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(tspZ, K0do, Qh2O, qtWj):\n if qtWj >= Qh2O[0]:\n tspZ = tspZ * 0.1\n if qtWj >= Qh2O[1]:\n tspZ = tspZ * 0.01\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = tspZ\n return tspZ", "def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.3 ** (qtWj // qIxc.lr_decay)\n for L...
[ "0.79850817", "0.78057677", "0.7796848", "0.777169", "0.77335143", "0.772527", "0.77146715", "0.7686081", "0.76853544", "0.761567", "0.75811327", "0.75772136", "0.7576445", "0.75698596", "0.75351804", "0.7532264", "0.75320476", "0.7530885", "0.75126946", "0.7510866", "0.75025...
0.0
-1
Sets dropout coefficient, by default 0.5.
def iMwk(YKHO, Ty9i): YKHO._set(dropout=Ty9i) return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hr1G(YKHO, hr1G):\n if hr1G >= 1.0:\n raise ValueError('The `dropout` must be < 1.')\n YKHO._internal.set_dropout(float(hr1G))", "def RZj3(YKHO, mWFP, j63z):\n return super()._Dropout(mWFP, keep_prob=1.0 - j63z)", "def dpQ2(YKHO, TyPQ=0.0):\n zfxz = oyIN.zeros((1,))\n Z6gX = zfxz + Ty...
[ "0.74401724", "0.6599109", "0.6288559", "0.6223161", "0.6138355", "0.6060847", "0.59498876", "0.591671", "0.584302", "0.5831263", "0.5802445", "0.5768129", "0.56373876", "0.55592215", "0.55451894", "0.5474174", "0.5460874", "0.5435045", "0.5423101", "0.5395062", "0.5371357", ...
0.68939245
1
Sets Path to test dataset. If set used to calculate statistic on it during training.
def exRQ(YKHO, pmON, h76B=CREO.SPARK, xAU6={'format': 'parquet'}): return YKHO._set(testDataset=_0dX(pmON, h76B, xAU6.copy()))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n YKHO.test_data_path = 'testing/test_data/'", "def _cZC(YKHO):\n YKHO.test_input.delete(0, FRMp)\n pmON = WbDU()\n YKHO.test_input.insert(0, pmON)", "def aG42():\n return gRuP.autogen('tests/data/dummy_tabular', test_path='tests/data/dummy_tabular_test', seed=42, sep=',')", "d...
[ "0.68377954", "0.6679652", "0.66725093", "0.6558004", "0.6514127", "0.6506715", "0.64552486", "0.64429045", "0.6385298", "0.6381583", "0.6373969", "0.63368386", "0.6326638", "0.6269291", "0.6258689", "0.6254526", "0.6228686", "0.61948246", "0.6181072", "0.6130394", "0.6129675...
0.67092884
1
Sets whether to use stdout in addition to Spark logs, by default False.
def yJvN(YKHO, BWXx): return YKHO._set(enableOutputLogs=BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TSMu(YKHO):\n YKHO.out = kJm3()\n YKHO._stdout = HwRy.stdout\n HwRy.stdout = YKHO.out", "def yJvN(YKHO, Ty9i):\n return YKHO._set(enableOutputLogs=Ty9i)", "def grgG(E3oo=False):\n nfqd['console'] = wop5(HwRy.stdout)\n if not E3oo:\n nfqd['console'].timeFormat = ''\n HwRy.stdout ...
[ "0.625057", "0.60649985", "0.59921265", "0.590379", "0.5868902", "0.58132875", "0.580797", "0.5750399", "0.5697567", "0.5687111", "0.5673425", "0.56369936", "0.5593075", "0.55734223", "0.5555929", "0.5551917", "0.55395275", "0.55261093", "0.5512869", "0.54802465", "0.5461263"...
0.6049015
2
Sets configProto from tensorflow, serialized into byte array.
def GOb_(YKHO, Fg_i): return YKHO._set(configProtoBytes=Fg_i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GOb_(YKHO, Ty9i):\n return YKHO._set(configProtoBytes=Ty9i)", "def jy32(Z9rn):\n IHts = Hy7s.environ.get('use_gpu', Z9rn.get('tf.config.use_gpu', Z9rn.get('use_gpu', 1)))\n _Fei = ZylS.ConfigProto(device_count={'GPU': IHts})\n VKhi = {y7GR.replace('tf.config.', ''): Z9rn[y7GR] for y7GR in Z9rn if...
[ "0.75618696", "0.6219305", "0.6167628", "0.59814763", "0.59055257", "0.5844697", "0.5599306", "0.55863786", "0.5412146", "0.53233427", "0.5217989", "0.52129155", "0.51678354", "0.51494646", "0.50938296", "0.5053427", "0.50138324", "0.49860623", "0.4972503", "0.49635026", "0.4...
0.7518328
9