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
This method tells pika to call the on_channel_closed method if RabbitMQ unexpectedly closes the channel.
def mnNJ(YKHO): YKHO.LOGGER.info('Adding channel close callback') YKHO._channel.add_on_close_callback(YKHO.on_channel_closed)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vSpi(YKHO, YwkQ, lo9Y):\n YKHO.LOGGER.warning('Channel %i was closed: %s', YwkQ, lo9Y)\n YKHO._connection.close()", "def vSpi(YKHO, YwkQ, lo9Y):\n S0MI.warning('Channel {CHANNEL} was closed: {REASON}'.format(CHANNEL=YwkQ, REASON=lo9Y))\n YKHO.close_connection()", "def CL_s(YKHO, YwkQ, yXxo, Sd8...
[ "0.7929563", "0.78948593", "0.78718084", "0.78207254", "0.7584961", "0.75845987", "0.75676244", "0.7533139", "0.7508239", "0.74995077", "0.73377985", "0.73314214", "0.72930545", "0.7292711", "0.7257547", "0.7178104", "0.71532124", "0.71475905", "0.7088762", "0.7014733", "0.69...
0.7007339
20
Instantiate a Message instance.
def FIMM(YKHO, YwkQ): YKHO.LOGGER = None YKHO._channel = YwkQ YKHO._stopping = False YKHO._consumer_tag = None YKHO.exchange_name = None YKHO.exchange_type = None YKHO.routing_key = None YKHO.queue_name = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fwuD(Emd4, _CJ7, HdUK=None, NArs=None, zrIJ='keystoneclient', *qIxc):\n if not HdUK:\n HdUK = LuKW._translate_msgid(_CJ7, zrIJ)\n tO9_ = super(LuKW, Emd4).__new__(Emd4, HdUK)\n tO9_.msgid = _CJ7\n tO9_.domain = zrIJ\n tO9_.params = NArs\n return tO9_", "def fwuD(Emd4, _CJ7, HdUK=None...
[ "0.7649369", "0.7612708", "0.760182", "0.7550297", "0.73995155", "0.7393979", "0.72974473", "0.7289944", "0.7158223", "0.7106472", "0.70557094", "0.70421404", "0.70418674", "0.70382327", "0.7028959", "0.7018514", "0.7010862", "0.6977662", "0.69639796", "0.6911447", "0.6885586...
0.0
-1
Silently authorize a User to use an command.
def Np6U(YKHO, uLzF): YKHO.command.add(Asoz) Dneq(YKHO.uuid, 'commands', Asoz)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def deny(YKHO, OaeV, *qIxc):\n LOJ7 = OaeV.message.channel.id\n oUZx = ''\n for d7pR in qIxc:\n oUZx += d7pR + ' '\n oUZx = oUZx[:-1]\n if CwYx.remove_allowed_channel(oUZx, LOJ7):\n await YKHO.bot.say('Command disabled.')\n else:\n await YKHO.bot.say('Sorry, that is not...
[ "0.621748", "0.60611254", "0.5916886", "0.5865449", "0.58433074", "0.57792753", "0.5770903", "0.57477665", "0.5747557", "0.57356954", "0.57164717", "0.5701861", "0.5685608", "0.56852186", "0.56798214", "0.5673832", "0.5662417", "0.5655139", "0.56454086", "0.56226045", "0.5594...
0.5671818
16
Return True if User has access to the given command.
def JKmO(YKHO, Asoz): return Asoz in YKHO.commands
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qHTF(oUZx):\n try:\n nhfz(oUZx, silent=True)\n return True\n except ZaUd.ExternalCommandFailed as e:\n return False", "def AOjN(YKHO, NQaO, oUZx):\n Fb5i = YKHO._level_name_to_number(YKHO.commands[oUZx]['user_level'])\n Pcxd = YKHO._level_name_to_number(NQaO)\n return Pcxd...
[ "0.80049133", "0.76158", "0.7215558", "0.7162818", "0.71387047", "0.71165407", "0.7024872", "0.7024872", "0.7022735", "0.6999306", "0.69852805", "0.69749486", "0.69749486", "0.6927064", "0.69113475", "0.6898721", "0.68885225", "0.6873571", "0.68516666", "0.68516666", "0.68479...
0.6914119
14
Inserts item at the end of the dequeue, counter for length increases by 1
def tj6L(YKHO, ZfUD): YKHO._dequeue.append(ZfUD) YKHO._length += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jvNa(YKHO, nPrm):\n YKHO.items.insert(0, nPrm)\n YKHO.size += 1", "def jvNa(YKHO, ZfUD):\n if YKHO.size == len(YKHO.data):\n YKHO.resize(2 * len(YKHO.data))\n XLlb = (YKHO.front + YKHO.size) % len(YKHO.data)\n YKHO.data[XLlb] = ZfUD\n YKHO.size += 1", "def jvNa(YKHO, ZfUD):\n if...
[ "0.7697795", "0.7596362", "0.75877416", "0.7470432", "0.7431753", "0.74275756", "0.73807734", "0.7369836", "0.73677653", "0.73507804", "0.73476356", "0.7341824", "0.7341824", "0.7341824", "0.7341824", "0.7341824", "0.7285249", "0.7261102", "0.7249367", "0.7198348", "0.7192175...
0.745173
4
Deletes first item from dequeue
def Ksvm(YKHO): if YKHO._length == 0: raise RHOp('Double-ended queue is empty!') cntZ = YKHO._dequeue[0] YKHO._dequeue = YKHO._dequeue[1:] YKHO._length -= 1 return cntZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ksvm(YKHO):\n if YKHO.is_empty():\n raise rWmY('Queue is empty')\n ANfV = YKHO._data[YKHO._front]\n YKHO._data[YKHO._front] = None\n YKHO._size -= 1\n if YKHO._size > 0:\n YKHO._front = (YKHO._front + 1) % len(YKHO._data)\n return ANfV", "def he0F(YKHO):\n YKHO.items.pop()"...
[ "0.8190942", "0.7532083", "0.7504622", "0.7494818", "0.7491988", "0.7379021", "0.7377086", "0.7373989", "0.73536", "0.7313573", "0.73081607", "0.7300189", "0.72974145", "0.72974145", "0.72974145", "0.72974145", "0.7279291", "0.72737575", "0.7249657", "0.7243635", "0.7234462",...
0.79395723
1
Helper function to take norm difference between two factors.
def j21W(YKHO, ixka, Csk6, NiTs): xYpM = ixka['Factors'][str(Csk6)] NoRE = YKHO.sparse[NiTs][str(Csk6)] Fm97 = oyIN.linalg.norm(xYpM - NoRE) return Fm97
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def by6d(k0lF, tjUW):\n Kt_s = k0lF - tjUW\n return CkYf(Kt_s)", "def CkYf(jzdc, Fg_i):\n return epAf.sqrt(jzdc * jzdc + Fg_i * Fg_i)", "def CkYf(jtyf, V70B):\n vC9B = len(jtyf)\n aPd6 = [jtyf[YRbF] - V70B[YRbF] for YRbF in range(vC9B)]\n KCHu = 0.0\n for YRbF in range(vC9B):\n KCHu...
[ "0.72866285", "0.700612", "0.6683131", "0.6577936", "0.6577936", "0.64965105", "0.6462218", "0.6427305", "0.64183956", "0.63962364", "0.63273156", "0.6309819", "0.6291103", "0.62634563", "0.62589604", "0.6185156", "0.61814743", "0.61806995", "0.6134568", "0.61249506", "0.6121...
0.6558788
5
Helper function to take norm difference between two weight of factors.
def GvYW(YKHO, ixka, NiTs): Pb7b = ixka['Weights'] PmIR = YKHO.sparse[NiTs]['lambda'] AiTU = oyIN.linalg.norm(oyIN.array(Pb7b) - oyIN.array(PmIR)) return AiTU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def by6d(k0lF, tjUW):\n Kt_s = k0lF - tjUW\n return CkYf(Kt_s)", "def XoQd(YKHO):\n YKHO.weight /= YKHO.weight.sum()", "def CkYf(jzdc, Fg_i):\n return epAf.sqrt(jzdc * jzdc + Fg_i * Fg_i)", "def wsvu(yzQ0):\n return U7YL.norm(yzQ0, 2) ** 2", "def CkYf(jtyf, V70B):\n vC9B = len(jtyf)\n ...
[ "0.7368642", "0.68857366", "0.68132865", "0.68076485", "0.67545795", "0.6596008", "0.6571478", "0.6475953", "0.64708364", "0.6468822", "0.64671713", "0.64671713", "0.64129", "0.64005244", "0.6399784", "0.63868266", "0.630102", "0.62954956", "0.6291251", "0.6285999", "0.623426...
0.65989
5
Create and return a new `User` instance, given the validated data.
def eLpg(YKHO, vGfb): return mv1M.objects.create_user(**vGfb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eLpg(YKHO, vGfb):\n return mv1M.objects.create(**vGfb)", "def eLpg(YKHO, vGfb):\n return mv1M.objects.create(**vGfb)", "def eLpg(YKHO, vGfb):\n return mv1M.objects.create(**vGfb)", "def eLpg(YKHO, vGfb):\n return mv1M.objects.create(**vGfb)", "def eLpg(YKHO, vGfb):\n return mv1M.objects....
[ "0.8624525", "0.8624525", "0.8624525", "0.8624525", "0.8624525", "0.8624525", "0.8553668", "0.8553668", "0.8533865", "0.846129", "0.84559226", "0.84458685", "0.8363819", "0.82197046", "0.8193242", "0.81192887", "0.80825484", "0.8081587", "0.8065415", "0.80400527", "0.7984254"...
0.82737345
13
Forces a value to be a tuple.
def HBgw(BWXx: Union[_V, Sequence[_V]]) -> bdIy[z4xL]: if isinstance(BWXx, tuple): return BWXx if isinstance(BWXx, list): return tuple(BWXx) return (BWXx,)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LAY6(T6S7):\n if not Sbtt(T6S7):\n T6S7 = (T6S7,)\n return tuple(T6S7)", "def Cdjl(WKvO):\n if isinstance(WKvO, tuple):\n return WKvO\n return (WKvO,)", "def qKi0(BWXx):\n\n def L2tF(Ty9i):\n return isinstance(Ty9i, g760.abc.Iterable) and (not isinstance(Ty9i, str))\n\n ...
[ "0.769648", "0.7610979", "0.75734615", "0.7564672", "0.74517053", "0.735439", "0.7339642", "0.73303765", "0.7197701", "0.7070953", "0.7070953", "0.70671487", "0.70357835", "0.6995397", "0.69485384", "0.6901362", "0.6875744", "0.68738973", "0.6868621", "0.6842781", "0.679683",...
0.8060954
0
Compute a column vector of Chebyshev moments of the form c(k) = tr(T_k(A)) for k = 0 to N1. This routine does no scaling; the spectrum of A should already lie in [1,1]. The traces are computed via a stochastic estimator with nZ probe
def WSlw(k0lF, exwG, F6II=100, ywwl=10, eJTR=1): if callable(k0lF): BWuW = k0lF else: if isinstance(k0lF, oyIN.ndarray): k0lF = KG9w.csr_matrix(k0lF) BWuW = lambda WKvO: k0lF * WKvO if ywwl < 2: ywwl = 2 if not isinstance(F6II, int): Nk6w = F6II ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ylt1(k0lF, exwG, F6II=100, ywwl=10, eJTR=1):\n if callable(k0lF):\n BWuW = k0lF\n else:\n if isinstance(k0lF, oyIN.ndarray):\n k0lF = KG9w.csr_matrix(k0lF)\n BWuW = lambda WKvO: k0lF * WKvO\n if ywwl < 2:\n ywwl = 2\n if not isinstance(F6II, int):\n Nk6...
[ "0.67874604", "0.6268447", "0.5893441", "0.58819884", "0.5773014", "0.57724404", "0.5758157", "0.5756333", "0.5716343", "0.5713994", "0.56987184", "0.56317675", "0.5628732", "0.5597299", "0.55968326", "0.55930406", "0.55834764", "0.5567279", "0.5521863", "0.5487543", "0.54836...
0.67945915
0
Compute a column vector of Chebyshev moments of the form c(k,j) = [T_k(A)]_jj for k = 0 to N1. This routine does no scaling; the spectrum of A should already lie in [1,1]. The diagonal entries are computed by a stochastic estimator
def ylt1(k0lF, exwG, F6II=100, ywwl=10, eJTR=1): if callable(k0lF): BWuW = k0lF else: if isinstance(k0lF, oyIN.ndarray): k0lF = KG9w.csr_matrix(k0lF) BWuW = lambda WKvO: k0lF * WKvO if ywwl < 2: ywwl = 2 if not isinstance(F6II, int): Nk6w = F6II ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WSlw(k0lF, exwG, F6II=100, ywwl=10, eJTR=1):\n if callable(k0lF):\n BWuW = k0lF\n else:\n if isinstance(k0lF, oyIN.ndarray):\n k0lF = KG9w.csr_matrix(k0lF)\n BWuW = lambda WKvO: k0lF * WKvO\n if ywwl < 2:\n ywwl = 2\n if not isinstance(F6II, int):\n Nk6...
[ "0.67437893", "0.6651694", "0.64074624", "0.62150174", "0.619866", "0.6073322", "0.602854", "0.5809984", "0.5808563", "0.5797172", "0.57681495", "0.57639706", "0.57624036", "0.57514095", "0.57475466", "0.56564826", "0.5633065", "0.56215066", "0.5610541", "0.5610094", "0.55843...
0.6685267
1
Compute Chebyshev moment 0 through N1 of a delta distribution centered at x.
def vSU2(WKvO, ywwl): Z9rn = oyIN.sum(oyIN.real(oyIN.cos(oyIN.linspace(0, ywwl - 1, ywwl) * oyIN.arccos(oyIN.complex_(WKvO)))), 0) Z9rn = Z9rn.reshape([ywwl, -1]) return Z9rn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _hM5(WKvO, exwG):\n if exwG == 0:\n return 1.0\n if exwG == 1:\n return WKvO\n return 2.0 * WKvO * _hM5(WKvO, exwG - 1) - _hM5(WKvO, exwG - 2)", "def FhO4(WKvO):\n from numpy import zeros, exp, subtract, power, asarray, nditer, multiply\n WKvO = asarray(WKvO)\n yGTL = asarray(...
[ "0.6688976", "0.6276156", "0.6180489", "0.6147184", "0.6045706", "0.60244656", "0.5996103", "0.5974145", "0.59398234", "0.5926609", "0.5895391", "0.5880105", "0.58656347", "0.58420897", "0.58176666", "0.58112293", "0.58052075", "0.5797862", "0.5789034", "0.5784781", "0.577218...
0.5402051
75
This method will get the id of the client for this clientId, or False if the client is not found.
def bxbw(YKHO, ZlIZ): xDcj = 'SELECT id FROM client WHERE clientId=%(id)s' YKHO.cur.execute(xDcj, {'id': ZlIZ}) Ylbp = YKHO.cur.fetchall() if len(Ylbp) > 0: return Ylbp[0]['id'] else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RTzd(YKHO):\n return YKHO.rs.my_clients[0]['id']", "def zb3C(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'client_id')", "def zb3C(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'client_id')", "def zb3C(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'client_id')", "def zb3C(YKHO) -> h8nf[str]:\n ...
[ "0.7821412", "0.7793623", "0.7793623", "0.7793623", "0.7793623", "0.7793623", "0.7746159", "0.77089936", "0.7670046", "0.7670046", "0.7670046", "0.7670046", "0.7670046", "0.7670046", "0.764616", "0.7624237", "0.75694704", "0.75196415", "0.7511384", "0.7428427", "0.7374175", ...
0.84358084
0
This method will return the person record for this email, or False if no person is found for the email and the clientId.
def Hy6m(YKHO, D3lj): W2hM = YKHO.get_fields('person') V_D6 = ', '.join(W2hM) xDcj = '\n SELECT {fields}\n FROM person\n WHERE clientId={client_id}\n AND email="{email}";\n '.format(client_id=YKHO.client_id, email=D3lj, fields=V_D6) Ylbp = YKHO.get_query(xDcj) if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KacQ(Emd4, D3lj):\n for ZfUD in Emd4.readAll().values():\n if ZfUD.get('email') == D3lj:\n return ZfUD\n return False", "def N4ZC(YKHO, D3lj):\n return YKHO.find_record_by_field('email', D3lj)", "def zc9m(YKHO, D3lj):\n YVbt = [CBIr for CBIr in YKHO.db if CBIr['Email'] == D3lj...
[ "0.69899905", "0.6356137", "0.6352951", "0.6349474", "0.6330986", "0.622416", "0.62238616", "0.61577654", "0.61577654", "0.6120388", "0.6104854", "0.60685796", "0.59518135", "0.5932089", "0.5891781", "0.5874499", "0.58725953", "0.586692", "0.5846734", "0.58301914", "0.5811265...
0.821987
0
This method will return the site dictionary to be included in server properties for loading into Murcs.
def At_n(YKHO, jV0p): xDcj = 'SELECT siteId FROM site WHERE id=%(siteid)s AND clientId=%(client_id)s' YKHO.cur.execute(xDcj, {'serverid': jV0p, 'client_id': YKHO.client_id}) Ylbp = YKHO.cur.fetchall() if len(Ylbp) > 0: return Ylbp[0] else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qpDA(QePW):\n return {'site': qtY4(QePW)}", "def iSAv():\n return hgGr()", "def qpDA(QpfX):\n FyFa = HAC5.objects.get(id=gCuF.SITE_ID)\n return {'site': FyFa}", "def _sNK(YKHO, QePW):\n HBP2 = QePW.META['SCRIPT_NAME']\n yRYc = HBP2 if YKHO.site_url == '/' and HBP2 else YKHO.site_url\n ...
[ "0.70358974", "0.67393404", "0.6729529", "0.6709271", "0.66908485", "0.66807204", "0.6669858", "0.6620714", "0.6580407", "0.65507025", "0.64793783", "0.64607", "0.641915", "0.6381004", "0.63601285", "0.6359137", "0.6318305", "0.63182616", "0.6311521", "0.62886584", "0.6240299...
0.64415056
12
This method will return the id of the solution for this solId, or False if no solution is found for the solId and the clientId.
def zrLX(YKHO, YBbg): xDcj = 'SELECT * FROM sol WHERE solId=%(solId)s AND clientId=%(client_id)s' YKHO.cur.execute(xDcj, {'solId': str(YBbg), 'client_id': YKHO.client_id}) Ylbp = YKHO.cur.fetchall() if len(Ylbp) > 0: return Ylbp[0] else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TjIw(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'assessment_solution_id')", "def hUch(YKHO, OWLd):\n xDcj = '\\n SELECT s.solId as solId, s.solName as solName, i.environment as environment, i.id as id,\\n i.solInstId as solInstId, i.solInstName as solInstName, ...
[ "0.64123636", "0.6177818", "0.6053291", "0.57460517", "0.57460517", "0.57460517", "0.57460517", "0.57460517", "0.57460517", "0.55828863", "0.5563942", "0.5563942", "0.5563942", "0.5563942", "0.5563942", "0.55353034", "0.55166703", "0.54499394", "0.5410775", "0.53966755", "0.5...
0.67751944
0
Returns a sliding window (of width n) over data from the iterable
def KnxT(AV8I, exwG): """ s -> (s0,s1,...s[n-1]), (s1,s2,...,sn), ... """ WhY1 = iter(AV8I) Aofo = tuple(uOgj(WhY1, exwG)) if len(Aofo) == exwG: yield Aofo for LihS in WhY1: Aofo = Aofo[1:] + (LihS,) yield Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KnxT(OxJJ, exwG):\n vexM = MUE7()\n WhY1 = iter(OxJJ)\n while True:\n try:\n vexM.append(next(WhY1))\n if len(vexM) == exwG:\n yield tuple(vexM)\n vexM.popleft()\n except StopIteration:\n break", "def K3Td(OxJJ, zNig):\n ...
[ "0.7884974", "0.7835392", "0.76933867", "0.76489383", "0.76489383", "0.7600458", "0.75197655", "0.75197655", "0.75119805", "0.74989283", "0.7498603", "0.7447047", "0.74214953", "0.7420879", "0.7400016", "0.7392058", "0.73503774", "0.7349523", "0.7296023", "0.7272422", "0.7267...
0.6835081
35
Checks whether `url` is a valid URL.
def SGVO(YKHO, bD7m): U5Jc = KVWQ(bD7m) return bool(U5Jc.netloc) and bool(U5Jc.scheme)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yaqE(bD7m):\n return True if f8eG.match(bD7m) else False", "def SGVO(bD7m):\n aBkf = _FIc.URLValidator()\n try:\n aBkf(bD7m)\n except _FIc.ValidationError:\n return False\n else:\n return True", "def Sxk4(bD7m):\n if not ZbWC.search('^(http|https|ftp)' + '\\\\://[a-z0...
[ "0.8939179", "0.8780518", "0.87553483", "0.86886775", "0.86520433", "0.86460173", "0.8619089", "0.85934895", "0.8589099", "0.8505128", "0.8439438", "0.8439245", "0.8436709", "0.8436638", "0.8415732", "0.8406938", "0.83978635", "0.83957845", "0.8382483", "0.83688885", "0.83594...
0.8084886
52
Computes the precision for the specified values of k
def vjyh(hlel, pan_, hz5a=(1,)): Gq8e = max(hz5a) Ep8u = pan_.size(0) bGrB, nvEb = hlel.topk(Gq8e, 1, largest=True, sorted=True) nvEb = nvEb.t() gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb)) Ylbp = [] for G1Hx in hz5a: R2Dg = gXXc[:G1Hx].contiguous().view(-1).float().sum(0, keepdi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(u5Ef, G1Hx):\n return len(u5Ef) / G1Hx", "def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)", "def sEak(YKHO, G1Hx):\n fdMZ = YKHO.pred_rankings.rdd.map(lambda SjLr: (SjLr[2], SjLr[1]))\n Wbxz = rRQi(fdMZ)\n return Wbxz.precisionA...
[ "0.8003211", "0.79748034", "0.79735845", "0.7941222", "0.78642285", "0.7803938", "0.7707779", "0.7621563", "0.7593218", "0.75612706", "0.752028", "0.7430132", "0.74122673", "0.7375894", "0.7374447", "0.7321427", "0.7254542", "0.7236769", "0.72279894", "0.7204469", "0.7137302"...
0.0
-1
Removes duplicate items from list L in place.
def sGxh(aPd6): for YRbF in range(len(aPd6) - 1, -1, -1): if aPd6[YRbF] in aPd6[:YRbF]: del aPd6[YRbF]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sHC1(YKHO, vC9B):\n S06t = []\n for LihS in vC9B:\n if S06t.count(LihS) == 0:\n S06t.append(LihS)\n return S06t", "def sGxh(CLNC):\n if CLNC.head is None:\n return\n jvSB = CLNC.head\n PwWw = {jvSB.get_data()}\n while jvSB.get_next():\n if jvSB.get_next()....
[ "0.7882098", "0.7533933", "0.74031204", "0.73378175", "0.70429724", "0.6955895", "0.6955895", "0.68941486", "0.68827325", "0.68588364", "0.68322265", "0.6831112", "0.6811268", "0.67840344", "0.6783422", "0.67785573", "0.67722684", "0.67705894", "0.67468476", "0.67302084", "0....
0.8265677
0
Put the value in the proper spot in the linked list to keep it sorted. New nodes are created.
def JPHp(BWXx, USDe): if USDe is None: return mPsS(BWXx, None) elif USDe.value < BWXx: return mPsS(USDe.value, JPHp(BWXx, USDe.rest)) else: return mPsS(BWXx, USDe)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def No4q(YKHO, BWXx):\n jbXL = YKHO.__head\n BdN0 = o7DN(BWXx)\n if jbXL is None:\n YKHO.__head = BdN0\n return\n if BWXx < jbXL.data:\n BdN0.next_node = jbXL\n YKHO.__head = BdN0\n return\n while jbXL.next_node is not None and BWXx > jbXL.next_node.data:\n ...
[ "0.7881876", "0.78682774", "0.7857618", "0.78493273", "0.7848319", "0.7846639", "0.78462136", "0.7732525", "0.7665721", "0.7635472", "0.7635472", "0.7584881", "0.7453058", "0.74479103", "0.74271595", "0.73871857", "0.7373968", "0.734442", "0.7341128", "0.7322556", "0.7309359"...
0.0
-1
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ is None: return None MceQ = cmPJ.get('forceUnmountVolume') T9uy = None if cmPJ.get('mappingVec') != None: T9uy = list() for g8x2 in cmPJ.get('mappingVec'): T9uy.append(qRGs.models.recover_volumes_params_mapping.RecoverVolumesParams_Mappin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ == None:\n return None\n else:\n mWFP = cmPJ.get('name')\n l8cJ = cmPJ.get('generic_id')\n Gsi3 = cmPJ.get('therauptic_uses')\n PALZ = cmPJ.get('search_score')\n return Emd4(mWFP, l8cJ, Gsi3, PALZ)", "def rQfz(Emd4, cmPJ):\n if cm...
[ "0.83722425", "0.8335738", "0.8215464", "0.8167521", "0.8167521", "0.81483614", "0.8051766", "0.80300796", "0.8013641", "0.79792094", "0.79221934", "0.7919166", "0.79183745", "0.79125935", "0.7906434", "0.79004663", "0.78967476", "0.7886129", "0.78760797", "0.78543913", "0.78...
0.0
-1
Time period is set to 'Month' input df output dictionary of tweet frequency dictionary of retweet frequency dictionary of favorite count dictionary of retweet count
def xaji(hP47, p7AI): M9v2 = p7AI M9v2['count'] = 1 uJjO = Bd5r.get_user_id(hP47) M9v2['retweet_bool'] = [True if str(p7AI.iloc[or8S].user_id) != uJjO else False for or8S in range(len(p7AI))] M9v2['created_at'] = rLdf.to_datetime(p7AI['created_at']) M9v2 = M9v2.resample('M', on='created_at').sum...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SAa8(hP47, p7AI):\n M9v2 = p7AI\n M9v2['count'] = 1\n uJjO = Bd5r.get_user_id_multiple(hP47)\n M9v2['retweet_bool'] = [True if str(p7AI.iloc[or8S].user_id) != uJjO else False for or8S in range(len(p7AI))]\n M9v2['created_at'] = rLdf.to_datetime(p7AI['created_at'])\n M9v2 = M9v2.resample('M', ...
[ "0.69390965", "0.6363588", "0.60075736", "0.5954226", "0.59520185", "0.59350413", "0.5885106", "0.5865475", "0.58464015", "0.5844535", "0.58382636", "0.58160263", "0.58114266", "0.5787785", "0.5773007", "0.5756805", "0.5737292", "0.5715372", "0.5704631", "0.5704209", "0.56969...
0.72920674
0
Time period is set to 'Month' input df output dictionary of tweet frequency dictionary of retweet frequency dictionary of favorite count dictionary of retweet count
def SAa8(hP47, p7AI): M9v2 = p7AI M9v2['count'] = 1 uJjO = Bd5r.get_user_id_multiple(hP47) M9v2['retweet_bool'] = [True if str(p7AI.iloc[or8S].user_id) != uJjO else False for or8S in range(len(p7AI))] M9v2['created_at'] = rLdf.to_datetime(p7AI['created_at']) M9v2 = M9v2.resample('M', on='created...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xaji(hP47, p7AI):\n M9v2 = p7AI\n M9v2['count'] = 1\n uJjO = Bd5r.get_user_id(hP47)\n M9v2['retweet_bool'] = [True if str(p7AI.iloc[or8S].user_id) != uJjO else False for or8S in range(len(p7AI))]\n M9v2['created_at'] = rLdf.to_datetime(p7AI['created_at'])\n M9v2 = M9v2.resample('M', on='creat...
[ "0.7291974", "0.6362884", "0.60072297", "0.5953434", "0.5950895", "0.5934116", "0.5884284", "0.58630985", "0.5845225", "0.5844057", "0.5837322", "0.58151037", "0.58121735", "0.5787228", "0.5771623", "0.5755791", "0.57360315", "0.5714443", "0.5703966", "0.57033527", "0.5696381...
0.6938962
1
gets length of GroupGoalRuns objects
def szAg(YKHO): return len(YKHO._ggr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def szAg(YKHO):\n return len(YKHO.groups)", "def szAg(YKHO):\n return len(YKHO.groups)", "def szAg(YKHO):\n return len(YKHO.groups)", "def szAg(YKHO) -> int:\n return len(YKHO._groups)", "def szAg(YKHO):\n return len(YKHO._groups)", "def _rxA(YKHO):\n return Pusg(lambda wjRY, mE7y: wjRY...
[ "0.7221719", "0.7221719", "0.71897376", "0.71646637", "0.7140447", "0.7113255", "0.6801793", "0.6712708", "0.66655207", "0.65485364", "0.65485364", "0.6476708", "0.64635295", "0.64599496", "0.645938", "0.64309", "0.6429846", "0.6428253", "0.6423355", "0.6398833", "0.6395715",...
0.62961763
37
Get the sum of a column from database
def sTKP(YKHO, tyNF, iVRZ, iPqd=''): return int(YKHO.get_column_with_func_cond(tyNF, iVRZ, 'SUM', iPqd))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MCOv(YKHO, iVRZ):\n sB1G, d6pt = YKHO.__columns[iVRZ]\n wjRY = sB1G()\n for rdlD in YKHO.__data_area:\n wjRY += YKHO.__data_area[rdlD][d6pt]\n return wjRY", "def sum(YKHO, fvDH):\n YKHO._result = sum([ZfUD[fvDH] for ZfUD in YKHO._result])\n return YKHO", "def YKO5(bOBl, fvDH):\n ...
[ "0.7432861", "0.73321825", "0.7068629", "0.706227", "0.70246416", "0.6842234", "0.67859787", "0.6678353", "0.66100335", "0.658254", "0.653733", "0.6522803", "0.64941597", "0.6461638", "0.6434935", "0.6357857", "0.6325039", "0.6313999", "0.6303005", "0.627022", "0.62571657", ...
0.75786537
0
Return the file state.
def yNPn(YKHO, pmON, gJ1b=0): DxTE = YKHO.split_virtual_path(pmON) if YKHO.is_file_entity(DxTE): KCHu = YKHO.stat_file_entity() else: KCHu = YKHO.stat(pmON, gJ1b) return YKHO.attrs_from_stat(KCHu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R4LG(YKHO):\n return f'{YKHO._data_folder}/{YKHO._model_hash}_state.npy'", "def k8jS(YKHO):\n return {'root': YKHO.root, 'files': YKHO.files, '_frozen_files': YKHO._frozen_files, 'load_completed': YKHO.load_completed}", "def x6nZ(YKHO) -> H5Xe:\n return H5Xe(YKHO._dir.joinpath(YKHO._dir_layout.sta...
[ "0.7520342", "0.71485764", "0.699944", "0.6881749", "0.68759966", "0.6860175", "0.68030614", "0.6732854", "0.67283916", "0.66932505", "0.6660431", "0.66312", "0.66161346", "0.6589057", "0.6589057", "0.64832306", "0.6463412", "0.64529973", "0.6451139", "0.64427155", "0.6442715...
0.0
-1
Return the file state.
def IA2V(YKHO, Ad2E=0): return xgnN.stat_result((YKHO.file_perm, 0, 0, 0, 0, 0, Ad2E, 0, 0, 0))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R4LG(YKHO):\n return f'{YKHO._data_folder}/{YKHO._model_hash}_state.npy'", "def k8jS(YKHO):\n return {'root': YKHO.root, 'files': YKHO.files, '_frozen_files': YKHO._frozen_files, 'load_completed': YKHO.load_completed}", "def x6nZ(YKHO) -> H5Xe:\n return H5Xe(YKHO._dir.joinpath(YKHO._dir_layout.sta...
[ "0.7520342", "0.71485764", "0.699944", "0.6881749", "0.68759966", "0.6860175", "0.68030614", "0.6732854", "0.67283916", "0.66932505", "0.6660431", "0.66312", "0.66161346", "0.6589057", "0.6589057", "0.64832306", "0.6463412", "0.64529973", "0.6451139", "0.64427155", "0.6442715...
0.0
-1
Takes the undirected graph and returns the size (an integer) of the largest connected component in
def BQDh(F7Z0): kLJH = N0EM(F7Z0) for Q6kx in range(len(kLJH)): kLJH[Q6kx] = len(kLJH[Q6kx]) return max(kLJH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BQDh(F7Z0):\n zNig = 0\n EqBn = N0EM(F7Z0)\n for UksD in EqBn:\n if len(UksD) > zNig:\n zNig = len(UksD)\n return zNig", "def BQDh(F7Z0):\n if len(F7Z0) == 0:\n return 0\n return max([len(UksD) for UksD in N0EM(F7Z0)])", "def BQDh(F7Z0):\n yibd = 0\n rm4V = ...
[ "0.8441753", "0.8288869", "0.8273966", "0.8131331", "0.80187935", "0.8013108", "0.79272336", "0.7809513", "0.7801708", "0.775947", "0.77325803", "0.76710963", "0.76710963", "0.7549721", "0.7382285", "0.73419625", "0.7295583", "0.7290859", "0.72012717", "0.7113721", "0.7062736...
0.779029
9
Removes html tags from an input string.
def dHgk(nM3r): p8Nh = ZbWC.compile('<.*?>') Bopb = ZbWC.sub(p8Nh, '', nM3r) Bopb = ' '.join(Bopb.splitlines()) return Bopb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gg3k(input):\n p8Nh = ZbWC.compile('<.*?>')\n Bopb = ZbWC.sub(p8Nh, '', input)\n return Bopb", "def JZhs(KCHu: str) -> str:\n return ZbWC.sub('<[^>]+>', '', KCHu)", "def JZhs(l5Ny):\n x0SS = ZbWC.compile('<.*?>')\n return ZbWC.sub(x0SS, '', l5Ny)", "def Iw0V(vIwR):\n return ZbWC.sub(...
[ "0.8696175", "0.8634309", "0.84309256", "0.83990365", "0.8364308", "0.8364308", "0.8363694", "0.83057505", "0.83057505", "0.83057505", "0.83057505", "0.83057505", "0.83057505", "0.82663697", "0.82663697", "0.82663697", "0.8236209", "0.8210786", "0.81892", "0.818587", "0.81795...
0.0
-1
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 oSvh(WKvO):\n S2MS = []\n if oyIN.array(WKvO).ndim == 1:\n hrCc = oyIN.exp(WKvO)\n RmXN = oyIN.sum(hrCc)\n xzMv = hrCc / RmXN\n dzye = xzMv\n else:\n dzye = oyIN.exp(cCrA) / oyIN.sum(oyIN.exp(cCrA), axis=0)\n return dzye", "def N93T(WKvO):\n j1LR = oyIN.exp(o...
[ "0.80114007", "0.7761178", "0.7761178", "0.7687588", "0.76709336", "0.7660669", "0.7657343", "0.7657343", "0.7657343", "0.7657343", "0.7657343", "0.7657343", "0.7657343", "0.7639886", "0.76281416", "0.75520146", "0.7532984", "0.7456658", "0.73246056", "0.7317556", "0.7299073"...
0.7097358
52
Reshapes an observation in form of an numpy array to a torch tensor.
def bbGQ(YKHO, rNYq): rNYq = rNYq.reshape((1, PSrQ.INPUT_SIZE)) rNYq = ht2j.Tensor(rNYq) return rNYq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NCfe(qw7D, ROpF):\n qw7D = qw7D.numpy()\n qw7D = qw7D.reshape(ROpF, order='F')\n return ht2j.tensor(qw7D)", "def gNnJ(hlel: torch.Tensor):\n pass", "def LrLM(WKvO):\n return ht2j.from_numpy(WKvO)", "def ngNj(pdhd):\n yvT9 = pdhd.transpose((2, 0, 1))\n return ht2j.from_numpy(yvT9)", ...
[ "0.7538085", "0.6908253", "0.6848285", "0.68324244", "0.67463523", "0.6715027", "0.65444267", "0.63417226", "0.63272023", "0.6310869", "0.62768584", "0.62692785", "0.6204851", "0.61864597", "0.6174062", "0.6169375", "0.6167666", "0.6167079", "0.61577404", "0.6153002", "0.6152...
0.81439054
0
Writes memory to shared experience in the appropriate batch size. Memory is consumed but history remains. In 'policy' mode we train on observationaction pairs. In 'selection' mode we accumulate sequences of actions for a single observation.
def AkVg(YKHO): ifeg = 0 owYH = ht2j.zeros((1, PSrQ.NUM_ACTIONS)) if PSrQ.TRAIN_MODE == 'selection': owYH = ht2j.zeros((1, PSrQ.NUM_ACTIONS * PSrQ.NUM_ACTIONS_PREDICT)) while len(YKHO.memory.memory): ifeg = ifeg % PSrQ.NUM_ACTIONS_PREDICT try: _pOB, NRKk, jsK2 = YKHO....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QjJC(YKHO):\n ifeg = 0\n owYH = ht2j.zeros((1, PSrQ.NUM_ACTIONS * PSrQ.NUM_ACTIONS_PREDICT))\n while len(YKHO.memory.memory_fake):\n ifeg = ifeg % PSrQ.NUM_ACTIONS_PREDICT\n try:\n _pOB, NRKk, jsK2 = YKHO.memory.memory_fake.popleft()\n owYH[0, PSrQ.NUM_ACTIONS * ife...
[ "0.68466115", "0.64447546", "0.63488907", "0.63235927", "0.632342", "0.6323401", "0.63057816", "0.62465173", "0.621835", "0.62090003", "0.62080663", "0.62000614", "0.6193046", "0.6182017", "0.61818564", "0.61789995", "0.6166009", "0.6129129", "0.6121221", "0.6119745", "0.6113...
0.7386093
0
Wraps hidden states in new Tensors, to detach them from their history.
def IOWm(MKlR): if MKlR is None: return None if isinstance(MKlR, ht2j.Tensor): return MKlR.detach() else: return tuple((IOWm(Ty9i) for Ty9i in MKlR))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YmeV(YKHO):\n YKHO.hidden = (ht2j.zeros(1, YKHO.batch_size, YKHO.hidden_size), ht2j.zeros(1, YKHO.batch_size, YKHO.hidden_size))", "def eIRW(Zode):\n if isinstance(Zode, ht2j.Tensor):\n return Zode.detach()\n else:\n return tuple((eIRW(Ty9i) for Ty9i in Zode))", "def MAw8(YKHO):\n ...
[ "0.6882026", "0.645251", "0.6379235", "0.63096833", "0.62514055", "0.6235688", "0.62049526", "0.62009597", "0.6188294", "0.6188294", "0.61278427", "0.6120045", "0.60720724", "0.6001561", "0.5998738", "0.59967387", "0.5971073", "0.59660745", "0.595008", "0.59390426", "0.593663...
0.0
-1
Should fail if are able to save an empty item without raising ValidationError
def KOUJ(YKHO): with Po4F('test_utils.mocked_models.ItemObject.full_clean'): super(Snzm, YKHO).test_cannot_save_empty_list_items()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TQg0(YKHO):\n super(AZL6, YKHO).test_cannot_save_empty_list_items()", "def DhcM(YKHO):\n with YKHO.assertRaises(GTBt.ValidationError):\n ZfUD = dVRn.objects.create(part=YKHO.bob, sub_part=YKHO.bob, quantity=7)\n ZfUD.clean()", "def vPj6(YKHO):\n nPrm = {'id': 0, 'title': 'The electri...
[ "0.7262931", "0.7142424", "0.6746147", "0.6744998", "0.6682396", "0.6651536", "0.6635779", "0.66267896", "0.662028", "0.6589795", "0.6556509", "0.6550269", "0.6543394", "0.65323067", "0.65294355", "0.64666206", "0.6450397", "0.64382803", "0.641887", "0.6417755", "0.6414079", ...
0.69816506
2
Select the best model from an experiment
def Xc6V(ftWC, ByBU, AcYW='root_mean_squared_error'): ITpg = zImd(ftWC, run_id=ByBU) Jg1B, Gjj5 = ITpg.get_output(metric=AcYW) print(Gjj5.steps) return Gjj5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J9HG(C3ST):\n UPcG = [WKvO for WKvO in C3ST.outputs if WKvO['failure'] is None]\n H5ew = 'DOPE score'\n if bFMd[:2] == (2, 3):\n UPcG.sort(lambda jzdc, Fg_i: eHkp(jzdc[H5ew], Fg_i[H5ew]))\n else:\n UPcG.sort(key=lambda jzdc: jzdc[H5ew])\n uqnm = UPcG[0]\n Qai7 = uqnm[H5ew]\n ...
[ "0.7535881", "0.7359831", "0.73475534", "0.7258631", "0.72293365", "0.7210965", "0.72108036", "0.7160835", "0.71107227", "0.70561326", "0.7051403", "0.6985398", "0.69607496", "0.6939865", "0.6937623", "0.6922043", "0.68987936", "0.6897672", "0.6866502", "0.6862836", "0.685449...
0.78381896
0
One hot encode the tokens
def OjaS(__n6, DTDK, KLk8): EcVT = oyIN.zeros((len(__n6), KLk8, len(DTDK.keys()))) for YRbF, yAmx in enumerate(__n6): for a1PO, hcXw in enumerate(yAmx): EcVT[YRbF, a1PO, DTDK[hcXw]] = 1 return EcVT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kLcZ(YKHO, eOtH):\n return KLLm(len(YKHO.encoder), YKHO.encoder[eOtH])", "def GdWB(s2mk, aBVY):\n _E99 = oyIN.identity(aBVY + 1)[:, :-1]\n return _E99[s2mk]", "def zGX0(xnRI, Qf6V):\n hlel = oyIN.zeros((len(xnRI), len(xnRI[0]), Qf6V))\n for YRbF, WrFl in enumerate(xnRI):\n for r845, e...
[ "0.83739084", "0.8146537", "0.8066141", "0.779639", "0.75907063", "0.7581525", "0.7534327", "0.74978876", "0.74734193", "0.7470095", "0.7459124", "0.74313545", "0.74313307", "0.7424728", "0.7407199", "0.7385518", "0.73694104", "0.7362751", "0.7346442", "0.73439276", "0.731455...
0.743216
11
Landing page that describes the endpoints
def F_xU(): return TvZl('index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LsHL():\n return f'Available Routes:<br/>/api/v1.0/precipitation<br/>/api/v1.0/stations<br/>/api.v1.0/tobs<br/>/api/v1.0/<start>/<end><br/>'", "def bc40():\n return f'Available Routes:<br/>/api/v1.0/precipitation<br/>/api/v1.0/stations<br/>/api/v1.0/tobs<br/>'", "def vja_():\n return f'Available R...
[ "0.78735256", "0.78108466", "0.77885723", "0.7787991", "0.77649444", "0.77399737", "0.7668907", "0.75822526", "0.75329715", "0.7481571", "0.7436831", "0.74027115", "0.7375455", "0.7358479", "0.73537415", "0.7310198", "0.72769606", "0.72732425", "0.726027", "0.72461945", "0.72...
0.0
-1
Sets the learning rate
def e_63(K0do, qtWj): if qtWj < qIxc.stage2: tspZ = qIxc.lr elif qtWj < (qIxc.epochs - qIxc.stage2) // 3 + qIxc.stage2: tspZ = qIxc.lr2 elif qtWj < 2 * (qIxc.epochs - qIxc.stage2) // 3 + qIxc.stage2: tspZ = qIxc.lr2 // 10 else: tspZ = qIxc.lr2 // 100 for Lwm5 in K0do....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kVtO(YKHO, Qj8D: float):\n pass", "def Aaf0(YKHO, Tclk):\n YKHO.learningRate = Tclk", "def kVtO(YKHO, tspZ=0.1):\n YKHO.learning_rate = tspZ\n return YKHO", "def kVtO(YKHO, tspZ):\n if not isinstance(tspZ, float):\n raise TypeError('lr must be a float')\n else:\n YKHO._lea...
[ "0.85886705", "0.85306805", "0.8506579", "0.8335991", "0.8305426", "0.82754505", "0.82754505", "0.8159271", "0.8060031", "0.7982775", "0.79691017", "0.79465806", "0.7944637", "0.7927076", "0.7821988", "0.7797926", "0.7797926", "0.7795433", "0.77483195", "0.76963514", "0.76656...
0.0
-1
Computes the precision for the specified values of k
def vjyh(hlel, pan_, hz5a=(1,)): Gq8e = max(hz5a) Ep8u = pan_.size(0) bGrB, nvEb = hlel.topk(Gq8e, 1, True, True) nvEb = nvEb.t() gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb)) Ylbp = [] for G1Hx in hz5a: R2Dg = gXXc[:G1Hx].view(-1).float().sum(0, keepdim=True) Ylbp.append(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(u5Ef, G1Hx):\n return len(u5Ef) / G1Hx", "def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)", "def sEak(YKHO, G1Hx):\n fdMZ = YKHO.pred_rankings.rdd.map(lambda SjLr: (SjLr[2], SjLr[1]))\n Wbxz = rRQi(fdMZ)\n return Wbxz.precisionA...
[ "0.8003211", "0.79748034", "0.79735845", "0.7941222", "0.78642285", "0.7803938", "0.7707779", "0.7621563", "0.7593218", "0.75612706", "0.752028", "0.7430132", "0.74122673", "0.7375894", "0.7374447", "0.7321427", "0.7254542", "0.7236769", "0.72279894", "0.7204469", "0.7137302"...
0.0
-1
Return True if all blocking jobs are already in the batch. Returns bool
def dH8D(YKHO, HGG0): return HGG0.issubset(YKHO._job_names)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vvCn(YKHO) -> bool:\n klGB = YKHO._buffer_size()\n if not YKHO._done_adding:\n return YKHO._materialized_buffer_size() >= YKHO._buffer_min_size or klGB - YKHO._batch_size >= YKHO._buffer_min_size * sEbK\n else:\n return klGB >= YKHO._batch_size", "def xQRw(YKHO):\n return YKHO.jobs ...
[ "0.72493964", "0.70964646", "0.69408727", "0.69262207", "0.69218606", "0.6888027", "0.6874078", "0.68167907", "0.6717792", "0.6686943", "0.663541", "0.66235906", "0.65739655", "0.6515825", "0.6495919", "0.64822334", "0.64602745", "0.6451266", "0.64358306", "0.6410426", "0.640...
0.7259023
0
Return True if the batch has enough jobs to submit.
def J0uG(YKHO): if YKHO._time_based_batching: if YKHO._estimated_batch_time >= YKHO._max_batch_time: return True elif YKHO.num_jobs >= YKHO._per_node_batch_size: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def antK(YKHO):\n HX9S, oVku = YKHO.status()\n if HX9S + oVku < GPtr.jobpooler.max_jobs_running and oVku < GPtr.jobpooler.max_jobs_queued:\n return True\n else:\n return False", "def antK(YKHO):\n YKHO.update()\n return YKHO.active_job_count < YKHO.max_jobs", "def vvCn(YKHO) -> boo...
[ "0.8132146", "0.7962701", "0.7525837", "0.74828106", "0.7453743", "0.73142457", "0.7173897", "0.7044447", "0.7044447", "0.7040014", "0.7022846", "0.6974377", "0.69579303", "0.69341093", "0.6931773", "0.69180226", "0.6909021", "0.68834597", "0.68595296", "0.6825512", "0.682203...
0.83240384
0
Convert Tensor to Variable.
def M5lS(vhpA): if ht2j.cuda.is_available(): vhpA = vhpA.cuda() return vhpA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TSY9(YKHO, vhpA):\n if isinstance(vhpA, oyIN.ndarray):\n vhpA = ht2j.from_numpy(vhpA).float()\n if ht2j.cuda.is_available():\n return ht2j.autograd.Variable(vhpA).cuda()\n return ht2j.autograd.Variable(vhpA)", "def T4gR(YKHO, cRc2):\n raise NotImplementedError('Should override this ...
[ "0.76841533", "0.74096596", "0.7354461", "0.7168252", "0.71648806", "0.7153746", "0.71474975", "0.7145118", "0.71162426", "0.7067704", "0.7047672", "0.70440656", "0.6890679", "0.6848829", "0.68013453", "0.6754868", "0.6685311", "0.6667776", "0.6601657", "0.6576437", "0.656320...
0.0
-1
Use CUDA if it's available.
def naO9(vhpA): if ht2j.cuda.is_available(): vhpA = vhpA.cuda() return vhpA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lDLs(YKHO):\n YKHO.use_gpu = True", "def tbKj(lDLs):\n global _CUDA_ENABLED\n Icbr = lDLs", "def lDLs(YKHO):\n super(c4Bf, YKHO).cuda()\n YKHO.use_cuda = True", "def M5lS(vhpA):\n if ht2j.cuda.is_available():\n vhpA = vhpA.cuda()\n return vhpA", "def ldUH(lDLs=None):\n if...
[ "0.80165595", "0.7863859", "0.77899295", "0.76195854", "0.76121813", "0.7611986", "0.74600905", "0.7452067", "0.74328005", "0.73708767", "0.73485786", "0.7341273", "0.73259276", "0.7261415", "0.7250402", "0.7225002", "0.71255857", "0.7084543", "0.7079833", "0.7076618", "0.704...
0.6622445
64
Invert normalization, and then convert array into image.
def bcW2(WKvO, M1Jx, JBMS): yvT9 = WKvO * M1Jx + JBMS return yvT9.clamp(0, 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CKik(Yw_3: np.ndarray):\n Yw_3 = Yw_3 * 127.5 + 127.5\n Yw_3 = Yw_3.astype(oyIN.uint8)\n return Yw_3", "def YQDR(ezWE):\n min = ezWE.min()\n max = ezWE.max()\n BdN0 = (ezWE - min) * (255.0 / (max - min))\n return BdN0.astype(oyIN.uint8)", "def KF2g(LNo8):\n quCl = _qLf(LNo8)\n eZ...
[ "0.70910174", "0.70788777", "0.7074263", "0.70543265", "0.70532054", "0.7012804", "0.697233", "0.6959302", "0.69551635", "0.693814", "0.6916661", "0.68747103", "0.68704265", "0.68667185", "0.6859426", "0.680491", "0.6800286", "0.6793632", "0.6786409", "0.6733712", "0.672496",...
0.0
-1
Split data into training and testing data.
def lpha(nPrm, zBu_): ppBc = nPrm.iloc[0:pBSp(zBu_ * len(nPrm))] Zwka = nPrm.iloc[pBSp(zBu_ * len(nPrm)):] return (ppBc, Zwka)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aA9c(YKHO):\n YKHO.y = YKHO.data['pred']\n bySB = [WKvO for WKvO in YKHO.data.columns if WKvO not in ['pred']]\n YKHO.X = YKHO.data[bySB]\n YKHO.X_train, YKHO.X_test, YKHO.y_train, YKHO.y_test = bHtP(YKHO.X, YKHO.y, train_size=2 * len(YKHO.X) // 3)", "def Qb89(nPrm, jcFe):\n IMeE = int(jcFe * ...
[ "0.8355038", "0.83060455", "0.8142053", "0.80757123", "0.80386555", "0.803696", "0.8027612", "0.79692084", "0.7952319", "0.7948496", "0.79343903", "0.79309106", "0.7924187", "0.7917767", "0.78977203", "0.7890518", "0.7887421", "0.7884174", "0.78765416", "0.7850666", "0.783864...
0.8237878
2
List all groups in organisation.
def _Fmd(YKHO, **B2fa): B2fa = YKHO._verify_sort_options(B2fa) nNXP = YKHO._get_api(ENHu.DeveloperApi) return yXUO(nNXP.get_all_groups, lwrap_type=cQ68, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NiUE(YKHO):\n geh0 = YKHO.authenticated_request_get(YKHO.all_groups_url)\n FTK0 = 'on GET for all groups of organisation'\n YKHO.log_http_status(geh0.status_code, FTK0)\n return geh0 if geh0.status_code == G4JS.codes.ok else None", "def m8zG(YKHO) -> None:\n moMn = YKHO.client.list_user_groups...
[ "0.81770915", "0.7500371", "0.73671216", "0.7305861", "0.7277529", "0.7265791", "0.72604877", "0.72585136", "0.72205234", "0.72127795", "0.71981776", "0.71906686", "0.71894383", "0.7136328", "0.7113753", "0.70911324", "0.69963837", "0.69952005", "0.6984656", "0.6947991", "0.6...
0.6694679
32
The display name for the account.
def qQNS(YKHO): return YKHO._display_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y6CV(YKHO):\n return YKHO.__userdata('displayName')", "def qQNS(YKHO) -> str:\n return qe4Y.get(YKHO, 'display_name')", "def qQNS(YKHO) -> str:\n return qe4Y.get(YKHO, 'display_name')", "def qQNS(YKHO) -> str:\n return qe4Y.get(YKHO, 'display_name')", "def qQNS(YKHO) -> str:\n return qe4...
[ "0.858231", "0.85590225", "0.85590225", "0.85590225", "0.85590225", "0.85590225", "0.85590225", "0.85590225", "0.85590225", "0.85590225", "0.85590225", "0.85590225", "0.85590225", "0.85590225", "0.85590225", "0.85590225", "0.85590225", "0.85590225", "0.85590225", "0.85590225", ...
0.8381167
50
The name of the company.
def q9zX(YKHO): return YKHO._company
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u8qZ(YKHO) -> str:\n return YKHO._company_name", "def yI4I(YKHO) -> str:\n return YKHO._companyname", "def u8qZ(YKHO):\n return YKHO._company_name", "def Hy08(YKHO):\n return YKHO.company_name", "def Hy08(YKHO):\n return YKHO.company_name", "def Hy08(YKHO):\n return YKHO.company_nam...
[ "0.9224225", "0.9168091", "0.9145053", "0.8966319", "0.8958919", "0.8859291", "0.8859291", "0.8859291", "0.8440259", "0.76099384", "0.7553684", "0.7325889", "0.7311354", "0.7270816", "0.7262391", "0.72505534", "0.7017327", "0.70001376", "0.69859314", "0.698063", "0.698063", ...
0.7231777
16
The name of the contact person for this account.
def Mxk0(YKHO): return YKHO._contact
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bKAt(YKHO) -> str:\n return YKHO._contact_name", "def zgzW(YKHO):\n return YKHO.person.name if YKHO.person else None", "def mWFP(YKHO):\n if YKHO.is_person:\n return '{} {}'.format(YKHO.entity.first_name, YKHO.entity.last_name)\n return YKHO.entity.name", "def rSs0(YKHO):\n return Y...
[ "0.8669122", "0.76972497", "0.75623286", "0.73666024", "0.7328878", "0.7324859", "0.72946024", "0.7285381", "0.72446764", "0.718953", "0.71769655", "0.71468157", "0.71006507", "0.7053596", "0.70529205", "0.70514345", "0.70514345", "0.70448375", "0.7039183", "0.7039183", "0.70...
0.0
-1
The company email address for this account.
def D3lj(YKHO): return YKHO._email
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hxmi(YKHO):\n return YKHO._email_address", "def Hxmi(YKHO):\n return YKHO._email_address", "def Hxmi(YKHO):\n return YKHO._email_address", "def Hxmi(YKHO):\n return YKHO.__email_address", "def LpCf(YKHO) -> str:\n return YKHO._contact_email", "def Hxmi(YKHO):\n return YKHO.propertie...
[ "0.8234737", "0.8234737", "0.8234737", "0.8210181", "0.8152954", "0.80813396", "0.80438155", "0.80020595", "0.7923508", "0.7923508", "0.7923508", "0.7923508", "0.7923508", "0.7923508", "0.7923508", "0.7923508", "0.7881007", "0.7865104", "0.78173614", "0.78173614", "0.78173614...
0.7753981
29
The postal code part of the postal address.
def BQ5d(YKHO): return YKHO._postcode
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kAHQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'postal_code')", "def kAHQ(YKHO):\n return YKHO._postal_code", "def kAHQ(YKHO):\n return YKHO._postal_code", "def kAHQ(YKHO):\n return YKHO._postal_code", "def kAHQ(YKHO):\n return YKHO._postal_code", "def NUtE(YKHO):\n if 'postal' in YKHO....
[ "0.89464134", "0.8836819", "0.8836819", "0.8836819", "0.8836819", "0.87604445", "0.8546463", "0.85386366", "0.84424204", "0.8368369", "0.8177535", "0.8177535", "0.8019896", "0.8006021", "0.7968139", "0.7896427", "0.72786963", "0.7245406", "0.71944326", "0.7068064", "0.6774731...
0.78629637
16
The status of the account.
def jGRS(YKHO): return YKHO._status
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jGRS(YKHO) -> qe4Y.Output['AccountStatus']:\n return qe4Y.get(YKHO, 'status')", "def jGRS(YKHO):\n return YKHO._status if 'status' in YKHO._user_dat else 0", "def jGRS(YKHO) -> str:\n return qe4Y.get(YKHO, 'status')", "def jGRS(YKHO) -> str:\n return qe4Y.get(YKHO, 'status')", "def jGRS(YKH...
[ "0.9145215", "0.8149146", "0.80906886", "0.80906886", "0.80906886", "0.80906886", "0.80906886", "0.80906886", "0.80906886", "0.80906886", "0.80906886", "0.80906886", "0.80906886", "0.80906886", "0.80906886", "0.80906886", "0.80906886", "0.80906886", "0.80906886", "0.80906886", ...
0.78612435
70
List of limits as keyvalue pairs if requested.
def c5uu(YKHO): return YKHO._limits
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yir2(c5uu):\n return []", "def Yir2(c5uu):\n return []", "def C0LA(YKHO) -> cuzp:\n pass", "def u0K4(YKHO):\n return [YKHO._metrics[XP5J].limits for XP5J in YKHO._metrics]", "def J_5G(YKHO) -> dict:\n return YKHO._rest_client.confs['limits']['http_input'].content", "def UWjH(YKHO) -> c...
[ "0.74512583", "0.74512583", "0.73813754", "0.69516593", "0.6914151", "0.6844281", "0.6821031", "0.6807619", "0.6793745", "0.6782531", "0.67185766", "0.6702576", "0.66947913", "0.66551846", "0.66444355", "0.6642174", "0.6634564", "0.66222423", "0.65756387", "0.6574977", "0.656...
0.6843211
6
Flag (true/false) indicating whether Factory Tool is allowed to download or not.
def xIbY(YKHO): return YKHO._provisioning_allowed
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j8wt(YKHO, Vl7Q=True):\n if Vl7Q:\n fUpG = YKHO._depcache.GetCandidateVer(YKHO._pkg)\n else:\n fUpG = YKHO._pkg.CurrentVer\n if fUpG is None:\n return False\n return fUpG.Downloadable", "def JiaX(YKHO):\n return YKHO._downloadable(False)", "def zTq7(YKHO) -> bool:\n r...
[ "0.66253984", "0.65767735", "0.6545764", "0.6523215", "0.6511758", "0.64021206", "0.64021206", "0.64021206", "0.64021206", "0.6332186", "0.627185", "0.6267548", "0.6256651", "0.6233243", "0.615171", "0.612542", "0.612542", "0.612542", "0.612542", "0.6119099", "0.6106414", "...
0.0
-1
Gets the contract_number of this AccountInfo. Contract number of the customer.
def Lpu6(YKHO): return YKHO._contract_number
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pYcg(YKHO):\n return YKHO._customer_number", "def pYcg(YKHO):\n return YKHO._customer_number", "def lb7m(YKHO):\n return YKHO._account_number", "def lb7m(YKHO):\n return YKHO.__account_number", "def abpc(YKHO):\n return YKHO.__customer_account", "def m3Nh(YKHO) -> int:\n return YKHO...
[ "0.70771897", "0.70771897", "0.66077095", "0.65896213", "0.6530384", "0.6502606", "0.64515436", "0.63880175", "0.63731194", "0.63731194", "0.63731194", "0.6346097", "0.6319312", "0.62902045", "0.62902045", "0.62902045", "0.6268391", "0.62626195", "0.62483734", "0.6238842", "0...
0.7861682
0
Gets the reference_note of this AccountInfo. A reference note for updating the status of the account
def IrQf(YKHO): return YKHO._reference_note
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jmE9(YKHO):\n return YKHO.__note", "def fytP(YKHO):\n return YKHO._note", "def fytP(YKHO):\n return YKHO._note", "def fytP(YKHO):\n return YKHO._note", "def fytP(YKHO):\n return YKHO._note", "def jmE9(YKHO):\n return YKHO.note", "def jmE9(YKHO):\n return YKHO.note", "def jmE9...
[ "0.65807146", "0.6536718", "0.6536718", "0.6536718", "0.6536718", "0.6530668", "0.6530668", "0.6530668", "0.6530668", "0.6368837", "0.6350826", "0.63429964", "0.6312132", "0.6290238", "0.62722", "0.61808956", "0.61808956", "0.6166892", "0.61496216", "0.6136422", "0.6112485", ...
0.7648015
0
Gets the sales_contact_email of this AccountInfo. Email address of the sales contact.
def OXw1(YKHO): return YKHO._sales_contact_email
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aimK(YKHO):\n if YKHO.contact is None:\n return YKHO.contact_extra\n return YKHO.contact.email", "def LpCf(YKHO):\n return YKHO._contact_email", "def LpCf(YKHO) -> str:\n return YKHO._contact_email", "def dOlz(YKHO):\n return YKHO._sales_contact", "def EFZl(YKHO):\n return YKHO...
[ "0.71900564", "0.7136986", "0.69803303", "0.6768968", "0.6499114", "0.64847416", "0.63477063", "0.62773144", "0.60923356", "0.6051461", "0.6051461", "0.6051461", "0.6051393", "0.6031365", "0.6009487", "0.5998043", "0.59718865", "0.59653753", "0.5961296", "0.59569347", "0.5946...
0.8381151
0
Gets the multifactor_authentication_status of this AccountInfo. The enforcement status of the multifactor authentication, either 'enforced' or 'optional'.
def ZGWZ(YKHO): return YKHO._multifactor_authentication_status
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZHg(YKHO):\n return YKHO._mfa_status", "def iBdu(YKHO) -> 'outputs.GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfigResponse':\n return qe4Y.get(YKHO, 'mfa_config')", "def oB7S(YKHO):\n return YKHO._marital_status", "def PglL(YKHO):\n return YKHO.__authentication_indicator", "def kZHg...
[ "0.6224368", "0.55495584", "0.5464742", "0.520083", "0.5157039", "0.51389074", "0.51093394", "0.50629276", "0.50629276", "0.5034883", "0.50172234", "0.50078225", "0.49802753", "0.49802753", "0.49802753", "0.49403936", "0.48991644", "0.4859459", "0.4857782", "0.48570043", "0.4...
0.7737331
0
The password when creating a new user. It will be generated when not present in the request.
def jTXt(YKHO): return YKHO._password
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jTXt(YKHO):\n if hasattr(YKHO, '_password'):\n return YKHO._password\n raise AttributeError(\"'User' object does not have a new password\")", "def jTXt(YKHO):\n return YKHO._get('password')", "def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')", "def jTXt(YKHO) -> str:\n ret...
[ "0.8099944", "0.75800157", "0.75577056", "0.75577056", "0.75577056", "0.75577056", "0.7548922", "0.75471133", "0.75471133", "0.75471133", "0.75471133", "0.7487512", "0.7475666", "0.74480426", "0.7447422", "0.7447422", "0.7429293", "0.73970985", "0.73970985", "0.73970985", "0....
0.7328531
69
A flag indicating whether the user's email address has been verified or not.
def nxXn(YKHO): return YKHO._email_verified
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nxXn(YKHO) -> bool:\n return qe4Y.get(YKHO, 'email_verified')", "def f4as(YKHO):\n Aofo = PJfn.objects.filter(email=YKHO.user.email)\n if len(Aofo):\n return Aofo[0].verified\n return False", "def f4as(YKHO):\n Aofo = PJfn.objects.filter(email=YKHO.user.email)\n if len(Aofo):\n ...
[ "0.84892046", "0.84476346", "0.84476346", "0.8365093", "0.8240203", "0.79856163", "0.7636479", "0.74770236", "0.7423355", "0.7400328", "0.73357934", "0.73104924", "0.72862905", "0.72674656", "0.7227899", "0.72068954", "0.7195946", "0.7121867", "0.71073055", "0.70969296", "0.7...
0.7908851
6
Whether two factor authentication has been enabled for this user (readonly).
def REnQ(YKHO): return YKHO._two_factor_authentication
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xDyg(YKHO):\n return YKHO._two_factor_enabled", "async def two_factor_auth(YKHO):\n return (await YKHO.middleware.call('auth.twofactor.config'))['enabled']", "def Y18l(YKHO, CBIr):\n ksfB = getattr(CBIr, 'is_active', None)\n return ksfB or ksfB is None", "def Y18l(YKHO, CBIr):\n ksfB = get...
[ "0.8193694", "0.80508834", "0.7463029", "0.7463029", "0.7463029", "0.7463029", "0.7450577", "0.73625696", "0.7299807", "0.71191007", "0.7077799", "0.7077799", "0.7050741", "0.69786924", "0.6938764", "0.6908909", "0.6899809", "0.6899809", "0.6826159", "0.68223584", "0.6794829"...
0.6894393
18
The number of users in this group. (readonly)
def D9OE(YKHO): return YKHO._user_count
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CyiD(YKHO) -> int:\n raise NotImplementedError", "def iknV(YKHO):\n return len(YKHO.users)", "def DpyK(YKHO):\n return len(YKHO.user_data)", "def D9OE(YKHO) -> int:\n return qe4Y.get(YKHO, 'user_count')", "def Ct_R(YKHO):\n return YKHO.usersList.count()", "def UHFx(YKHO):\n return l...
[ "0.8405664", "0.809187", "0.80735433", "0.7990255", "0.78847003", "0.7834329", "0.7762759", "0.7744", "0.77330464", "0.7728957", "0.77038443", "0.7671192", "0.7599841", "0.7427565", "0.7379086", "0.7359583", "0.73373646", "0.72739565", "0.7256037", "0.72545815", "0.7186497", ...
0.7973087
4
The timestamp of the API key creation in the storage, in milliseconds. (readonly)
def bZt2(YKHO): return YKHO._creation_time
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NcD3(YKHO):\n return YKHO._ptr.contents.keytime", "def zPJh(YKHO):\n return 0", "def NQXU(YKHO):\n return gnPz.buf_to_npy(YKHO._ptr.contents.key_time, (YKHO.nkey,))", "def zPJh(YKHO):\n pass", "def E3oo():\n return qcWV.datetime.utcnow()", "def _LRs():\n return int(ITS7.time() * 100...
[ "0.7405179", "0.724752", "0.72111833", "0.7204844", "0.7191025", "0.70781076", "0.70460194", "0.70019186", "0.70019186", "0.70019186", "0.70019186", "0.698461", "0.6958507", "0.6930856", "0.6917786", "0.6917786", "0.6917786", "0.6917786", "0.69134253", "0.68836266", "0.685918...
0.66803485
96
There are 5 ways to define a component. 1. dict with "class_name" field > create an object of type "class_name" 2. dict with "type" field > lookup the `CLASS_TYPES_REGISTRY` to find the type of object and create an object of that type 3. a dict with a type that can be inferred. If the parent class's constructor has typ...
def rgCR(YKHO, H5ew, q_DO, B2fa, GPtr, Ro5k, NN4v: bool=True): if YKHO.is_object_definition_with_class_name(q_DO): q_DO[SJL8] = YKHO._merge_dicts(B2fa.get(SJL8, dict()), q_DO.get(SJL8, dict())) return YKHO.create_component(q_DO, GPtr, NN4v)() elif YKHO.is_object_definition_with_type(q_DO): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P37j(mWFP, PObu, yIhv):\n\n def FIMM(YKHO):\n yIhv.__init__(YKHO)\n KjNF = type(mWFP, (yIhv,), {'__init__': FIMM})\n KjNF.UID = PObu\n return KjNF", "def EaYZ(mWFP, gitN):\n GC3r = (HPDU,) + gitN\n\n def ncGd(YKHO, DNs0=None):\n for P8oC in GC3r:\n if hasattr(P8oC, ...
[ "0.6917185", "0.6755977", "0.67265844", "0.6538765", "0.64083517", "0.6386145", "0.62927055", "0.6241411", "0.6241411", "0.6221061", "0.6217143", "0.62050515", "0.6189865", "0.6162467", "0.61483675", "0.6119933", "0.6088378", "0.6088311", "0.60834956", "0.6044059", "0.6038065...
0.660326
3
Azure resource group name
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 TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')", "def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_group_name')", "def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'reso...
[ "0.8394411", "0.8394411", "0.8089805", "0.8089805", "0.8089805", "0.8089805", "0.8089805", "0.8089805", "0.8089805", "0.8089805", "0.8089805", "0.8089805", "0.8089805", "0.8089805", "0.8089805", "0.8089805", "0.8089805", "0.8089805", "0.8089805", "0.8089805", "0.8089805", "...
0.7904466
48
The identity of the gateway.
def nlNK(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'gateway_resource_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iczE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'gateway_id')", "def iczE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'gateway_id')", "def iczE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'gateway_id')", "def iczE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'gatewa...
[ "0.7931185", "0.7931185", "0.7931185", "0.754962", "0.754962", "0.754962", "0.7549512", "0.74143183", "0.7371944", "0.73284507", "0.7297575", "0.7249807", "0.7238317", "0.7236078", "0.7223704", "0.7211567", "0.7178875", "0.7133489", "0.7092922", "0.70572186", "0.7054314", "...
0.0
-1
This type describes a gateway resource.
def FIMM(Ro_8, kFeU: str, VKhi: Optional[pulumi.ResourceOptions]=None, JBZA: Optional[pulumi.Input[str]]=None, Yi3x: Optional[pulumi.Input[pulumi.InputType['NetworkRefArgs']]]=None, nlNK: Optional[pulumi.Input[str]]=None, Xqgu: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['HttpConfigArgs']]]]]=None, Rci...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nlNK(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'gateway_resource_name')", "def kdXA(YKHO):\n return cFlk.from_href(YKHO.data.get('gateway_ref'))", "def kdXA(YKHO):\n return YKHO._gateway", "def kdXA(YKHO):\n return YKHO._gateway", "def kdXA(YKHO):\n return YKHO.sc._gateway"...
[ "0.62227595", "0.6189288", "0.60504365", "0.60504365", "0.6003091", "0.59811836", "0.5974497", "0.59542686", "0.59542686", "0.59542686", "0.59542686", "0.59542686", "0.59542686", "0.59454995", "0.5936229", "0.5919631", "0.5890776", "0.58514535", "0.58502716", "0.58502716", "0...
0.55479825
39
This type describes a gateway resource.
def FIMM(Ro_8, kFeU: str, qIxc: GatewayArgs, VKhi: Optional[pulumi.ResourceOptions]=None): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nlNK(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'gateway_resource_name')", "def kdXA(YKHO):\n return cFlk.from_href(YKHO.data.get('gateway_ref'))", "def kdXA(YKHO):\n return YKHO._gateway", "def kdXA(YKHO):\n return YKHO._gateway", "def kdXA(YKHO):\n return YKHO.sc._gateway"...
[ "0.62227595", "0.6189288", "0.60504365", "0.60504365", "0.6003091", "0.59811836", "0.5974497", "0.59542686", "0.59542686", "0.59542686", "0.59542686", "0.59542686", "0.59542686", "0.59454995", "0.5936229", "0.5919631", "0.5890776", "0.58514535", "0.58502716", "0.58502716", "0...
0.5656778
31
The type of the resource. Ex Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
def type(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'type')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> str:\n ...
[ "0.7927503", "0.7927503", "0.7927503", "0.7927503", "0.7927503", "0.7927503", "0.7927503", "0.7927503", "0.7927503", "0.7927503", "0.7927503", "0.7927503", "0.7927503", "0.7927503", "0.77822", "0.7718237", "0.7718237", "0.7674187", "0.7674187", "0.7666367", "0.7654678", "0....
0.0
-1
Generate a random string of letters, digits and special characters
def ORGv(FVpJ=10): w5bg = vIwR.ascii_letters + vIwR.digits + vIwR.punctuation return ''.join((tuKI.choice(w5bg) for YRbF in range(FVpJ)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jv62():\n gZgG = vIwR.ascii_letters\n H0q3 = ''.join((Acvy(gZgG) for WKvO in range(ajWY(paVi, ftyj))))\n return H0q3", "def Zfgd():\n PdTY = vIwR.ascii_letters + vIwR.digits\n return ''.join((tuKI.choice(PdTY) for YRbF in range(50)))", "def Vt_K():\n\n def R71E():\n if tuKI.random(...
[ "0.79643756", "0.7814547", "0.7793576", "0.77894235", "0.77888966", "0.7723293", "0.771487", "0.7713737", "0.76931024", "0.7606124", "0.75945985", "0.7574778", "0.75683445", "0.7552706", "0.75399673", "0.7536854", "0.7536854", "0.7536854", "0.7534896", "0.7534035", "0.7532472...
0.74679494
35
Calculates the arclength along coordinates x and y. x and y must be numpy arrays.
def mpj8(WKvO, LVAh): WKvO = r1Sf.stdvec(WKvO) LVAh = r1Sf.stdvec(LVAh) Io6r = oyIN.hypot(oyIN.diff(WKvO), oyIN.diff(LVAh)) Io6r = oyIN.append(0, Io6r) Io6r = oyIN.cumsum(Io6r, dtype=float) return Io6r
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yall(YKHO):\n return epAf.sqrt(YKHO.x ** 2 + YKHO.y ** 2)", "def u54L(YKHO):\n return epAf.sqrt(YKHO.x ** 2 + YKHO.y ** 2)", "def u54L(YKHO):\n return epAf.sqrt(YKHO.x ** 2 + YKHO.y ** 2)", "def len(YKHO):\n return epAf.sqrt(YKHO.x ** 2 + YKHO.y ** 2)", "def u54L(YKHO):\n return PZyS(YKH...
[ "0.6782972", "0.6782211", "0.66780627", "0.6657286", "0.6654295", "0.663517", "0.6616305", "0.6538624", "0.65261304", "0.63730836", "0.6336686", "0.6267413", "0.6262195", "0.6251108", "0.62464327", "0.6236767", "0.6220114", "0.61909217", "0.6177745", "0.6135474", "0.6134436",...
0.77479964
0
Initializes the ContractInfoAPI object.
def FIMM(YKHO, cuiw): super(kEh1, YKHO).__init__() YKHO._session = cuiw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, nNXP: CompanionAPI) -> None:\n YKHO.api = nNXP", "def FIMM(YKHO, nNXP: CompanionAPI) -> None:\n YKHO.api = nNXP", "def FIMM(YKHO, nNXP: CompanionAPI) -> None:\n YKHO.api = nNXP", "def FIMM(YKHO, EBDb: ConnectorContract):\n super().__init__(EBDb)\n YKHO.token = YKHO._load_token()...
[ "0.6376007", "0.6376007", "0.6376007", "0.6371858", "0.63466674", "0.6209622", "0.6209256", "0.6148858", "0.6148858", "0.6148858", "0.6148858", "0.6132564", "0.60314715", "0.603011", "0.60123086", "0.5992561", "0.5975232", "0.5972642", "0.59577656", "0.59490144", "0.59379804"...
0.6941418
0
Choosing between ordinary batchnorm and conditional batchnorm; Use ordinary batch norm if not conditional; Discriminator doesn't use conditional batch norm for the time being.
def NkkI(mWFP, g4y1, vXXu, ZZcr=True, x9Fn=False): with ZylS.variable_scope(mWFP): if ZZcr: return ZylS.contrib.layers.batch_norm(g4y1, fused=True, decay=0.9, is_training=vXXu, scope='BN', reuse=ZylS.get_variable_scope().reuse, updates_collections=None) elif x9Fn: return ZylS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OzeR(input, LT6S, CkYf='instance'):\n if CkYf == 'instance':\n return abr6(input)\n elif CkYf == 'batch':\n return lS53(input, LT6S)\n else:\n return input", "def lS53():\n return _w_u(op_name='BatchNorm', transforms={'epsilon': 'eps'}, extras={'cudnn_off': 1}, ignores=['spat...
[ "0.7314536", "0.69322115", "0.6732898", "0.6690763", "0.66478777", "0.66478777", "0.66061693", "0.65900475", "0.6547129", "0.6545126", "0.64905626", "0.6485431", "0.6466616", "0.6465261", "0.6452369", "0.6448144", "0.64358217", "0.6398731", "0.6393281", "0.63875836", "0.63862...
0.5978549
65
Returns the temperature at x,y,z
def Kt_s(YKHO, WKvO, epBp, Csk6): return YKHO.temp if (WKvO - YKHO.x) ** 2 + +(epBp - YKHO.z) ** 2 < YKHO.r ** 2 else None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ttgG(YKHO, WKvO, epBp):\n return YKHO.world.getBiome(hbgm(WKvO, 0, epBp)).getTemperature()", "def diNy(nPrm):\n ITS7 = nPrm[:, 0]\n W8O1 = nPrm[:, 3]\n UsF5 = nPrm[:, 5]\n return (ITS7, W8O1, UsF5)", "def rcrL(YKHO):\n YKHO.get_reading()\n return (YKHO.temperature, 'temp', 'c')", "de...
[ "0.81184065", "0.7378274", "0.7366688", "0.72822374", "0.7131092", "0.7116278", "0.71134776", "0.70907974", "0.7048909", "0.70129687", "0.69953024", "0.69784623", "0.69596976", "0.6944875", "0.6917996", "0.6912992", "0.6902142", "0.6883372", "0.6866402", "0.68424016", "0.6840...
0.63895833
89
Returns the temperature at x,y,z
def Kt_s(YKHO, WKvO, epBp, Csk6): if YKHO.in_plate(WKvO, Csk6): return dZ7n(YKHO.plate.scene.T_surface, YKHO.plate.scene.T_mantle, Csk6, YKHO.age, YKHO.plate.scene.kappa) return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ttgG(YKHO, WKvO, epBp):\n return YKHO.world.getBiome(hbgm(WKvO, 0, epBp)).getTemperature()", "def diNy(nPrm):\n ITS7 = nPrm[:, 0]\n W8O1 = nPrm[:, 3]\n UsF5 = nPrm[:, 5]\n return (ITS7, W8O1, UsF5)", "def rcrL(YKHO):\n YKHO.get_reading()\n return (YKHO.temperature, 'temp', 'c')", "de...
[ "0.81184065", "0.7378274", "0.7366688", "0.72822374", "0.7131092", "0.7116278", "0.71134776", "0.70907974", "0.7048909", "0.70129687", "0.69953024", "0.69784623", "0.69596976", "0.6944875", "0.6917996", "0.6912992", "0.6902142", "0.6883372", "0.6866402", "0.68424016", "0.6840...
0.0
-1
Returns the temperature at x,y,z
def Kt_s(YKHO, WKvO, epBp, Csk6): if Csk6 < 0: return None if Csk6 > YKHO.r: return None if YKHO.in_plate(WKvO): vC9B = abs(WKvO - YKHO.ridge) elif YKHO.in_bend(WKvO): if YKHO.trench > YKHO.ridge: WKvO = WKvO - YKHO.trench else: WKvO = YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ttgG(YKHO, WKvO, epBp):\n return YKHO.world.getBiome(hbgm(WKvO, 0, epBp)).getTemperature()", "def diNy(nPrm):\n ITS7 = nPrm[:, 0]\n W8O1 = nPrm[:, 3]\n UsF5 = nPrm[:, 5]\n return (ITS7, W8O1, UsF5)", "def rcrL(YKHO):\n YKHO.get_reading()\n return (YKHO.temperature, 'temp', 'c')", "de...
[ "0.81184065", "0.7378274", "0.7366688", "0.72822374", "0.7131092", "0.7116278", "0.71134776", "0.70907974", "0.7048909", "0.70129687", "0.69953024", "0.69784623", "0.69596976", "0.6944875", "0.6917996", "0.6912992", "0.6902142", "0.6883372", "0.6866402", "0.68424016", "0.6840...
0.0
-1
Root resource served when a GET request is made to /v1/api/
def qhe0(YKHO): YRbF = jA2G.input() return '<p>This is be the root of our API</p>'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RVrZ(QePW, format=None):\n return oGir({'Welcome': 'Home!'})", "def RVrZ():\n return Yxsy(pz3A({'message': 'The two endpoints currently available are /api/v1/plugins and /api/v1/download'}), 200)", "def IC86(YKHO):\n return YKHO.get('/api')", "def d6pt(YKHO):\n geh0 = YKHO.client.get('/api')\...
[ "0.7645435", "0.76407033", "0.7461218", "0.73370665", "0.7246401", "0.7194324", "0.7133077", "0.7122271", "0.7113486", "0.7107606", "0.71052617", "0.7064407", "0.70286715", "0.6985394", "0.69014424", "0.68665034", "0.68460846", "0.6809675", "0.6776013", "0.6734596", "0.673299...
0.7154045
6
Get random hex color
def lzF5() -> str: d7Eb = tuple((int(qfpW) for qfpW in BKj4().split(';'))) return '#' + '%02x%02x%02x' % d7Eb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pph3():\n return int(hex(ajWY(0, 16581375)), 0)", "def MP1f():\n Mkmy = lambda: ajWY(0, 255)\n return int('%02X%02X%02X' % (Mkmy(), Mkmy(), Mkmy()), 16)", "def pph3():\n Z5Q9 = ajWY(0, 255)\n jlxe = ajWY(0, 255)\n pPPK = ajWY(0, 255)\n return vowe(Z5Q9, jlxe, pPPK)", "def rYs4():\n ...
[ "0.8865884", "0.8625011", "0.86111635", "0.85081387", "0.8506087", "0.84913164", "0.8433054", "0.83615804", "0.8353647", "0.8323468", "0.81398565", "0.8111363", "0.811119", "0.80977964", "0.8088253", "0.80203927", "0.80107296", "0.7989657", "0.7963127", "0.7951897", "0.793506...
0.8120653
11
Return whether all child ports are closed. Returns bool
def SEEh(YKHO): return all((XP5J.is_closed() for XP5J in YKHO.ports()))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def msNV(YKHO) -> bool:\n return YKHO._fd < 0", "def OIOn(YKHO):\n return len(YKHO.closed_erratum) > 0", "def SEEh(YKHO):\n return not YKHO.is_open()", "def SEEh(YKHO):\n if YKHO.is_empty():\n return False\n for D70y in YKHO.edges():\n if YKHO.is_edge_on_boundary(D70y):\n ...
[ "0.6552823", "0.64337766", "0.6423596", "0.6420879", "0.64184546", "0.6370993", "0.6338747", "0.6310532", "0.6307823", "0.6307402", "0.6284693", "0.62499577", "0.6247447", "0.6238862", "0.6238862", "0.62312967", "0.62312967", "0.62312967", "0.62312967", "0.62200165", "0.62145...
0.82133317
0
Attach a lot of summaries to a Tensor (for TensorBoard visualization).
def E7dI(SRYB): with ZylS.name_scope('validation'): with ZylS.name_scope('summaries'): JBMS = ZylS.reduce_mean(SRYB) QxIo = ZylS.summary.scalar('mean', JBMS) iMl9.append(QxIo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oxpy(YKHO):\n with ZylS.name_scope('summaries'):\n ZylS.summary.scalar('loss', YKHO.loss)\n ZylS.summary.scalar('accuracy', YKHO.accuracy)\n ZylS.summary.histogram('W', YKHO.W)\n ZylS.summary.histogram('B', YKHO.B)\n YKHO.summary = ZylS.summary.merge_all()", "def oxpy(YK...
[ "0.77372825", "0.76371294", "0.71553725", "0.70677304", "0.7010343", "0.70051324", "0.686583", "0.6790819", "0.6712101", "0.67020524", "0.6698547", "0.6653406", "0.6651963", "0.6647064", "0.66240656", "0.6604837", "0.6597623", "0.6582092", "0.6571837", "0.6538044", "0.6537941...
0.5829467
77
Attach a lot of summaries to a Tensor (for TensorBoard visualization).
def OhJP(SRYB): with ZylS.name_scope('training'): with ZylS.name_scope('summaries'): JBMS = ZylS.reduce_mean(SRYB) QxIo = ZylS.summary.scalar('mean', JBMS) iWxN.append(QxIo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oxpy(YKHO):\n with ZylS.name_scope('summaries'):\n ZylS.summary.scalar('loss', YKHO.loss)\n ZylS.summary.scalar('accuracy', YKHO.accuracy)\n ZylS.summary.histogram('W', YKHO.W)\n ZylS.summary.histogram('B', YKHO.B)\n YKHO.summary = ZylS.summary.merge_all()", "def oxpy(YK...
[ "0.77372825", "0.76371294", "0.71553725", "0.70677304", "0.7010343", "0.70051324", "0.686583", "0.6790819", "0.6712101", "0.67020524", "0.6698547", "0.6651963", "0.6647064", "0.66240656", "0.6604837", "0.6597623", "0.6582092", "0.6571837", "0.6538044", "0.65379417", "0.653694...
0.6653406
11
Normalizes chimeric junction data so that seqnames are ordered. This function normalizes a chimeric junction DataFrame so that seqname_a and seqname_b are lexically ordered (i.e., seqname_a < seqname_b). Intrachromosomal junctions (with seqname_a == seqname_b) are normalized using their location, so that location_a < l...
def mqRk(ng8y, tu8r=None): if tu8r is None: ZuaC = ng8y.seqname_a == ng8y.seqname_b Youn = ng8y.seqname_a < ng8y.seqname_b ff0w = ng8y.location_a < ng8y.location_b W5Wy = Youn | ZuaC & ff0w else: ng8y = ng8y.loc[(ng8y.seqname_a == tu8r) | (ng8y.seqname_b == tu8r)] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rOw7(wxdF, O48g, exwG, dqIl, CkYf, aDi_, yJiH=3, Z9rn=35.0, HMSV=True):\n if HMSV and 0 < abs(len(wxdF) - len(O48g)) <= yJiH:\n wxdF, O48g = map(dDGN.junction_re, mIJV.globalxx(wxdF, O48g)[0][:2])\n xn82 = iQWD([wxdF, O48g], exwG)\n xP9A = oyIN.array([YRbF for YRbF, (dg7v, iYf1) in enumerate(DM...
[ "0.505167", "0.46159238", "0.45752758", "0.45661238", "0.4536555", "0.4527874", "0.44918135", "0.44886148", "0.4474176", "0.44571537", "0.44280928", "0.44210973", "0.43893272", "0.43649325", "0.4301815", "0.4281735", "0.42460537", "0.42454344", "0.42282644", "0.42127153", "0....
0.7228522
0
Return available attributes for switch.
def TzCU(YKHO) -> dict[str, ImMB]: hkS8: dict[str, ImMB] = {} if not YKHO._state_attributes: return hkS8 nPrm = YKHO._state_attributes hkS8 = {H5ew: nPrm[H5ew] for H5ew in ('user_name', 'assigned_skill_ids', 'responded_at', 'start_time', 'status', 'reported_status', 'arrived_at_station', 'availa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NnzV(Emd4):\n return Emd4._ATTRIBUTES", "def h6gc(YKHO):\n return YKHO.__class__.ATTRIBUTES.keys()", "def h6gc(YKHO) -> x1iM[str]:\n return list(YKHO.attribute_tracker.keys())", "def HPsT(YKHO) -> x1iM[str]:\n Aofo = ['gps_position', 'vin']\n if YKHO.is_lsc_enabled:\n Aofo += YKHO.d...
[ "0.6969151", "0.69439906", "0.6923589", "0.68771434", "0.6875125", "0.6837364", "0.667846", "0.66645885", "0.6636312", "0.66329145", "0.66276944", "0.65911907", "0.6539014", "0.6537904", "0.65311193", "0.65061307", "0.650096", "0.64712816", "0.6470754", "0.6431797", "0.642767...
0.0
-1
Zesty event handler for Slack webhook events
def qQ3e(tvqc, **B2fa): l5Ny = B2fa.get('text') oUZx = B2fa.get('command') qIxc = B2fa.get('args') IZcJ = {} if oUZx == 'zesty': FbNA = tvqc['webhook_settings'] uJjO = FbNA['user'] from htk.apps.accounts.utils import get_user_by_id CBIr = get_user_by_id(uJjO) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SVwP(YKHO, QePW):\n pass", "def cfQO(tvqc, QpfX):\n nPrm = qQXR.loads(tvqc['body'])\n bo34.info(nPrm)\n if 'challenge' in nPrm:\n bo34.info('Request URL verification message received, return challenge data')\n return {'statusCode': 200, 'headers': {'Content-Type': 'application/json'...
[ "0.7211991", "0.7121425", "0.71049166", "0.70675987", "0.7046626", "0.6895789", "0.6894906", "0.6886835", "0.68674785", "0.68167025", "0.68159974", "0.6808586", "0.6798976", "0.6784508", "0.67588043", "0.67309314", "0.66977805", "0.6637493", "0.66112435", "0.6593613", "0.6554...
0.6585821
20
Convert a string of RGB values separated by comma into a list. The values in the list are clipped in the range of [0, 255].
def mV7k(KCHu): KCHu = KCHu.split(',') swaY = [] for exwG in KCHu: exwG = exwG.strip() swaY.append(int(exwG)) if swaY[-1] > 255: swaY[-1] = 255 if swaY[-1] < 0: swaY[-1] = 0 return swaY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tKzR(d7pR):\n return list(map(int, ZbWC.match('rgb\\\\((\\\\d+),\\\\s*(\\\\d+),\\\\s*(\\\\d+)\\\\)', d7pR).groups()))", "def OFQO(yNGr):\n return [int(KCHu) for KCHu in yNGr[4:-1].split(',', 3)]", "def ecw_(YKHO):\n ycBG = YKHO.color[1:-1]\n s2mk = ycBG.split(',')\n return list(map(int, s2mk...
[ "0.7492243", "0.7395792", "0.73376614", "0.7126435", "0.709382", "0.6915548", "0.6812974", "0.6759149", "0.6680117", "0.656468", "0.6513419", "0.6486711", "0.64861333", "0.64145035", "0.64060646", "0.63520604", "0.6308976", "0.6285689", "0.6266958", "0.62419534", "0.6228525",...
0.7902794
0
Unload a config entry.
async def async_unload_entry(RUgX: OpenPeerPower, bTKY: ConfigEntry): yT1k = await RUgX.config_entries.async_unload_platforms(bTKY, aprE) if yT1k: RUgX.data[Sugg][bTKY.entry_id]['stop_listener']() oimG = RUgX.data[Sugg][bTKY.entry_id][RGZf] await oimG.close() RUgX.data[Sugg].pop(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def async_unload_entry(ajET: HomeAssistant, bTKY: config_entries.ConfigEntry):\n return await ajET.config_entries.async_forward_entry_unload(bTKY, lQ1Q)", "async def async_unload_entry(ajET: HomeAssistantType, bTKY: ConfigEntry):\n nNXP = ajET.data[Sugg][bTKY.unique_id]\n await nNXP.async_unload()...
[ "0.70418245", "0.69975436", "0.69197667", "0.69024074", "0.6896897", "0.6870464", "0.6840728", "0.67911863", "0.67835754", "0.6782968", "0.6776581", "0.67688036", "0.6737991", "0.6730449", "0.6713354", "0.67085946", "0.6664857", "0.66411716", "0.6637687", "0.66157013", "0.660...
0.0
-1
add ing in ings of recipe to db.recipe
def mdi9(YKHO, WXzx, YwbY): YSCM = YKHO.find_recipe(WXzx) YSCM['ings'].append(YwbY) YKHO.replace_recipe_ings(YSCM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sbfB(YKHO, YSCM):\n pass", "def sbfB(YKHO, YSCM):\n pass", "def sbfB(YKHO, aadv, zKHR):\n mWFP = f'recipe.{aadv}'\n DNwW = f'recipe-{aadv}'\n YKHO.data['recipe_ingredients'][mWFP] = zKHR\n YKHO.data['recipes'].append((mWFP, aadv, 'Recipe', YKHO.env.docname, DNwW, 0))", "def sbfB(YKHO, Y...
[ "0.72225434", "0.6984229", "0.6847624", "0.6753654", "0.67405516", "0.66105264", "0.6587858", "0.65780205", "0.6570794", "0.6532783", "0.65170336", "0.65082633", "0.64804584", "0.64476967", "0.6435249", "0.641755", "0.6413696", "0.64073014", "0.63214207", "0.63048184", "0.630...
0.78770846
0
Retrive a list of the parents for a given commit hash.
def Sm9U(zTfP, s_jR): yvT9 = iXC1(zTfP, f'show -s --pretty=%P {s_jR}') if yvT9.returncode == TmDs: return yvT9.stdout.strip('\n').split() else: print('Git Error: ' + yvT9.stderr.strip('\n')) HwRy.exit(1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y3x8(YKHO, jSYO):\n return CD35(['git', '--no-pager', 'log', '--no-walk', '--pretty=format:%P', jSYO]).strip().split()", "def ZRe6(F0ds, xot2):\n RCmq = dTAH.urlopen('https://skia.googlesource.com/skia/+log/%s?format=json&n=%d' % (F0ds, xot2))\n QzfE = RCmq.read()[4:]\n zgjV = qQXR.loads(QzfE)\n ...
[ "0.7716919", "0.7253157", "0.7226779", "0.6848512", "0.68000424", "0.6589253", "0.65546954", "0.6542552", "0.64471996", "0.638219", "0.6379027", "0.6377204", "0.6336738", "0.63346094", "0.6278421", "0.62760764", "0.6261247", "0.6186061", "0.61740893", "0.61604947", "0.6056683...
0.64414054
9
Test that setting items raises an error
def vnKD(YKHO): nDEB = vvRl({(0, 0): '+', (1, 1): '-'}) with trZe.raises(TypeError, match='FermiWord object does not support assignment'): nDEB[2, 2] = '+'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sln0(YKHO):\n Z9rn = 'fart'\n YKHO.assertRaises(jQ3Z.dfException, YKHO.data.__setitem__, 'c', Z9rn)", "def Mb8v(YKHO):\n YKHO.assertRaises(JEUY, YKHO.atc.setValue, (['e1', 'e2'], 1))", "def CaLl(YKHO):\n with YKHO.assertRaises(gIuG):\n YKHO.run_with_args(['--set', 'some_key', 'some_value...
[ "0.74091816", "0.74010104", "0.7388451", "0.7362379", "0.7331061", "0.7328787", "0.72866607", "0.72601974", "0.72438264", "0.7241313", "0.71640664", "0.71266824", "0.70965505", "0.7093924", "0.70694536", "0.7068558", "0.70588696", "0.70447004", "0.70378864", "0.7025128", "0.7...
0.6569348
80
Test that updating items raises an error
def jJoT(YKHO): nDEB = vvRl({(0, 0): '+', (1, 1): '-'}) with trZe.raises(TypeError, match='FermiWord object does not support assignment'): nDEB.update({(2, 2): '+'}) with trZe.raises(TypeError, match='FermiWord object does not support assignment'): nDEB[1, 1] = '+'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RwOd(YKHO) -> None:\n YKHO.common_bulk_update_error(expected_count=4 + 3 + 0)", "def aUJW(YKHO) -> None:\n YKHO.common_qs_update_error(expected_count=1)", "def mJR_(YKHO):\n with YKHO.assertRaises(p8go):\n YKHO.model_with_schema.update(1, {'key': 'updated value'})", "def aYma(YKHO):\n ...
[ "0.78830814", "0.78150254", "0.7689063", "0.7637838", "0.7637327", "0.7552031", "0.75401586", "0.74729836", "0.736845", "0.73530537", "0.73391545", "0.73312306", "0.73169404", "0.72941494", "0.7288969", "0.7287572", "0.7214143", "0.7193967", "0.7190639", "0.7190639", "0.71857...
0.67649204
59
Test that a FermiWord and a FermiSentence can be multiplied together and return a new FermiSentence
def cLiJ(YKHO, nDEB, Vb5F, Aofo): assert Vb5F * nDEB == Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cLiJ(YKHO, nDEB, Vb5F, Aofo):\n assert nDEB * Vb5F == Aofo", "def CPig(YKHO, Dyub, EmyI, Icfh, V5na):\n assert Dyub * EmyI == Icfh\n assert EmyI * Dyub == V5na", "def t9ZG(YKHO, Dyub, EmyI, Aofo):\n JH75 = Dyub * EmyI\n JH75.simplify()\n assert JH75 == Aofo", "def Fcuj(YKHO, Dyub, EmyI,...
[ "0.77289826", "0.71593744", "0.7088694", "0.6574681", "0.6530523", "0.6369529", "0.6368147", "0.63311625", "0.61572856", "0.6138264", "0.5999765", "0.59088016", "0.58698833", "0.58353853", "0.57961386", "0.5770729", "0.5759261", "0.5742074", "0.56996024", "0.5685239", "0.5671...
0.772916
0
Test that the correct result of addition is produced for two FermiSentences.
def Fcuj(YKHO, Dyub, EmyI, Aofo): JH75 = Dyub + EmyI JH75.simplify() assert JH75 == Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ufHY(YKHO, Dyub, EmyI, Ylbp):\n assert Dyub + EmyI == Ylbp\n assert EmyI + Dyub == Ylbp", "def EDFY(YKHO, yzQ0, KCHu, Ylbp):\n sum = yzQ0 + KCHu\n j9tF = nGb9({G1Hx: round(Ty9i, 10) if isinstance(Ty9i, float) else Ty9i for G1Hx, Ty9i in sum.items()})\n assert j9tF == Ylbp", "def EDFY(YKHO, y...
[ "0.7896632", "0.7416253", "0.7375977", "0.6920412", "0.67570084", "0.66779274", "0.6677377", "0.6658807", "0.65242314", "0.64793026", "0.6448995", "0.63764644", "0.63730925", "0.63718957", "0.63718957", "0.6361214", "0.6336675", "0.6332537", "0.63002795", "0.62976456", "0.629...
0.80409354
0
Returns the path of the user's ToolBOS config file.
def Bp72(): pmON = Hy7s.path.join(Hy7s.path.expanduser('~'), '.HRI', 'ToolBOS', tqMU) return pmON
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HEl2():\n return Hy7s.path.expanduser('~/.HRI/ToolBOS/dtbos.cfg')", "def k_Pq():\n return Hy7s.path.join(Y6f8.get_config_dir(), 'config.py')", "def S673(YKHO):\n return Hy7s.path.expanduser(YKHO.options.config_file)", "def k_Pq() -> str:\n Mn2V = x23_.user_config_dir(rWGQ)\n Mn2V = '{}.tom...
[ "0.8639019", "0.80354995", "0.7993038", "0.7725475", "0.7719174", "0.767818", "0.7491971", "0.7430811", "0.7419374", "0.74129254", "0.7412512", "0.7395375", "0.7373899", "0.73552597", "0.7316315", "0.7314706", "0.73131347", "0.72964656", "0.7251162", "0.7247917", "0.7236866",...
0.7317619
14
Returns the path of the config file within the current working directory.
def K24y(): pmON = Hy7s.path.join(Hy7s.getcwd(), tqMU) return pmON
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RrNC():\n return Hy7s.path.join(vmiX, u8az)", "def xzSM(YKHO):\n return YKHO.abs_path(YKHO.config_dir, u8az)", "def S673(YKHO):\n return Hy7s.path.expanduser(YKHO.options.config_file)", "def wTn4(YKHO):\n if Hy7s.path.isfile(YKHO.config_path):\n return YKHO.config_path\n pmON = Hy7s...
[ "0.9153286", "0.9047485", "0.874662", "0.84343255", "0.84249073", "0.8401249", "0.83817637", "0.83673465", "0.83449215", "0.8299302", "0.82008946", "0.81997746", "0.8172728", "0.8158747", "0.8147928", "0.8135268", "0.8106981", "0.81045073", "0.8103941", "0.8068803", "0.801867...
0.0
-1
Converts bounds from longitude and latitude to native map coordinates.
def yRE3(YKHO, X7zS: T.Union[T.Sequence[float], BoundingBox], pnj8: T.Union[str, object, xr.DataArray]) -> Kt_s.Tuple[float, float, float, float]: LFlW, es2x, _tIi, tlxW = X7zS LFlW, es2x = YKHO.lonlat_to_xy(LFlW, es2x, pnj8) _tIi, tlxW = YKHO.lonlat_to_xy(LFlW, tlxW, pnj8) return (LFlW, es2x, _tIi, tlx...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MG7T(YKHO):\n WKvO, LVAh = oyIN.meshgrid(YKHO.lons, YKHO.lats)\n CAzz, Jd40 = YKHO.map(WKvO, LVAh)\n CAzz[~oyIN.isfinite(CAzz)] = -180\n Jd40[~oyIN.isfinite(Jd40)] = 0\n return (CAzz, Jd40)", "def zgcK(X7zS):\n GsVy = X7zS[1][0]\n b5if = X7zS[0][0]\n bMLW = X7zS[1][1]\n z35_ = X7zS...
[ "0.6865624", "0.6540069", "0.6529933", "0.6419169", "0.63125604", "0.62392867", "0.6208181", "0.6140447", "0.61145633", "0.6090007", "0.6051612", "0.60462016", "0.5997734", "0.59881085", "0.59771484", "0.5905216", "0.58742595", "0.5869299", "0.5862163", "0.58076704", "0.57775...
0.71522415
0
Get the queryset for the list but knowing about the form to be able to modify the queryset if needed
def STqv(YKHO, L03z): hst7 = YKHO.get_queryset(L03z) fSWM = YKHO.get_allow_empty() if not fSWM and len(hst7) == 0: raise uhgT(bGrB(u"Empty list and '%(class_name)s.allow_empty' is False.") % {'class_name': YKHO.__class__.__name__}) return hst7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UMnH(YKHO, SR0I=None):\n if SR0I is None:\n xDcj = YKHO.get_queryset()\n else:\n xDcj = SR0I\n return xDcj.filter(**YKHO.cleaned_data)", "def k66M(YKHO, L03z):\n vexM = super(K1M9, YKHO).get_queryset()\n KUnM = YKHO.get_queryset_filters()\n if KUnM:\n vexM = vexM.filter...
[ "0.72835046", "0.72301465", "0.71137124", "0.70800483", "0.7033737", "0.7003655", "0.6928628", "0.68432814", "0.6821516", "0.6759034", "0.67544746", "0.67208344", "0.6669966", "0.6669792", "0.66644937", "0.66644937", "0.6657098", "0.6655553", "0.6639153", "0.6570039", "0.6556...
0.6315064
35
Shows all questions for a quiz and lets user create a new one
def S1Da(QePW, QFPN): lvF5 = Iofl(zB5S, pk=QFPN) if QePW.method == 'POST': nPrm = QePW.POST r_n6 = dict() for H5ew, BWXx in nPrm.iteritems(): r_n6[H5ew] = BWXx r_n6['quiz'] = QFPN L03z = xuln(r_n6) if L03z.is_valid(): L03z.save() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wWM5():\n if QePW.method == 'POST':\n if not QePW.form['question'] or not QePW.form['answer']:\n Dwep('question not added, invalid question/answer', 'error')\n return vKnz(nKyW('main.add_question'))\n vexM = Y4Gy(question=QePW.form['question'], answer=QePW.form['answer'])...
[ "0.7254173", "0.716061", "0.71132153", "0.70700717", "0.7005561", "0.69673395", "0.69635326", "0.69449496", "0.6942111", "0.6930709", "0.68573916", "0.6710939", "0.6700125", "0.66396", "0.6629749", "0.65476984", "0.64613336", "0.64480996", "0.6432825", "0.6429599", "0.6422984...
0.6884288
10
Create and return an _Environment to use.
def yfwM(): kZiy = EeDH.environ['HOME'] jNha = EeDH.path.realpath(EeDH.path.join(EeDH.environ['CLOUDSDK_CONFIG'], '../..')) sHf7 = 'IPV4_ONLY' M4N3 = '/dev/fuse' pmON = '/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:.' if len(jNha) > 1 and (not jNha.startswith('/usr/local/google/'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ROSy(YKHO):\n sEAN = zAej(YKHO, YKHO._environment_counter)\n YKHO._environment_counter += 1\n return sEAN", "def I0_M(Emd4) -> zAej:\n if Emd4.__env is None:\n Emd4.__env = zAej(loader=HiME('osia.installer'))\n return Emd4.__env", "def I0_M():\n return zGKt.create_environment()", ...
[ "0.8413117", "0.79035753", "0.75197184", "0.7391423", "0.730364", "0.7159108", "0.714876", "0.7140488", "0.7113487", "0.7056322", "0.70222896", "0.70202464", "0.6999154", "0.6992487", "0.6985099", "0.6967242", "0.6964452", "0.6964452", "0.6886161", "0.6882828", "0.68361557", ...
0.7218463
5