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
Get representation of observation as HxWxC tensor
def ZXMw(YKHO, YimI: Game): YKHO.game_state = YimI TVTK, H2v2 = (YimI.map_width, YimI.map_height) E3D9 = oyIN.zeros((H2v2, TVTK, 4)) Nq1b = oyIN.zeros((H2v2, TVTK, 4)) KkY2 = oyIN.zeros((H2v2, TVTK, 6)) for LVAh in range(H2v2): for WKvO in range(TVTK): VmPb = YimI.map.get_cel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MD8Z(W061: GymObs) -> KUoU:\n return ht2j.from_numpy(W061).view(1, 84, 84)", "def BgQP(MKlR, WKvO):\n x1O9 = 0\n cDK5, bGrB = WKvO.shape\n yBos = TyOk(WKvO.view(cDK5, 1, -1), MKlR.view(1, 1, -1), padding=x1O9)\n return yBos.view(cDK5, -1)", "def m0yc(input):\n C7Ls, XcU5 = input.size()[-2...
[ "0.7034418", "0.6789325", "0.6316214", "0.62261784", "0.6193387", "0.6002266", "0.59466714", "0.59437", "0.58865446", "0.58313894", "0.58257616", "0.5803038", "0.5797544", "0.57782704", "0.56456757", "0.5627704", "0.56177723", "0.56082475", "0.5591737", "0.5554811", "0.555201...
0.57909817
13
text cleaning for dialogue act dataset
def k58G(YKHO, l5Ny): if l5Ny.startswith('<') and l5Ny.endswith('>.'): return l5Ny if '[' in l5Ny or ']' in l5Ny: QmN4 = True else: QmN4 = False uOe2 = ZbWC.findall('\\[.*?\\+.*?\\]', l5Ny) while uOe2 and QmN4: for LihS in uOe2: uw9T = LihS Lih...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zd1G(YKHO, l5Ny):\n l5Ny = YKHO.remove_user(l5Ny)\n l5Ny = YKHO.remove_emoji(l5Ny)\n l5Ny = str.lower(l5Ny)\n l5Ny = YKHO.remove_numbers(l5Ny)\n l5Ny = YKHO.remove_white_spaces(l5Ny)\n return l5Ny", "def gq73(l5Ny):\n DXEH = cX9C.findall(l5Ny)\n for tTpl, Cr6_ in DXEH.items():\n ...
[ "0.74249274", "0.7411838", "0.73985934", "0.7301079", "0.71011156", "0.70880294", "0.69494814", "0.68747985", "0.68606585", "0.68550026", "0.68460965", "0.68224496", "0.6805915", "0.6805915", "0.6786909", "0.6771127", "0.6762313", "0.6758029", "0.67424756", "0.6742177", "0.67...
0.6358362
70
Given a string of "1,x, 2, x, 3" return a list of 1,2,3
def VIoB(b6Gq): Aofo = [] for q1jl in b6Gq.split(','): q1jl = q1jl.strip() if 'x' != q1jl: Aofo.append(int(q1jl)) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pCLH(KCHu):\n return [vIwR.strip(Nqp_) for Nqp_ in vIwR.split(str(KCHu), ',')]", "def dqbO(RhpO):\n return [] if not RhpO else [Z9rn for Z9rn in RhpO.split(',') if Z9rn]", "def Tst5(KCHu):\n return [int(jzdc) for jzdc in KCHu.split(',')]", "def Ul5z(WKvO):\n return [vC9B.strip() for vC9B in W...
[ "0.7429135", "0.7399254", "0.73882246", "0.72953653", "0.72590023", "0.72314584", "0.7213494", "0.7212695", "0.71635395", "0.7155021", "0.71496034", "0.7128423", "0.7120991", "0.71200454", "0.71053004", "0.70847297", "0.7039662", "0.70076585", "0.68954617", "0.6892423", "0.67...
0.6288512
63
Returns a Schematron rule etree.Element for the given context.
def Q5U8(OaeV): mWFP = JrOA.etree.QName(ikXz.NS_SCHEMATRON, 'rule') tqKV = {'context': OaeV} aTKJ = {None: ikXz.NS_SCHEMATRON} return JrOA.etree.Element(mWFP, attrib=tqKV, nsmap=aTKJ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AeGh(YKHO, C13M):\n KX0_ = C13M.createElement('assignmentRule')\n KX0_.setAttribute('variable', YKHO.variable)\n rnk0 = M_ie(C13M)\n KX0_.appendChild(rnk0)\n WNF0 = YKHO.expression.create_sbml_element(C13M)\n rnk0.appendChild(WNF0)\n return KX0_", "def iIuw(YKHO):\n Gjtu = eval('rrule...
[ "0.523028", "0.5152684", "0.50351715", "0.5003784", "0.49092913", "0.49048355", "0.4901733", "0.48415503", "0.48415503", "0.48415503", "0.4807795", "0.47799057", "0.47724822", "0.47613713", "0.47184166", "0.46646005", "0.46371606", "0.46322793", "0.46322793", "0.46322793", "0...
0.7253597
0
Checks if a dictionary is empty. Empty dictionaries resolve to false when converted to booleans in Python.
def FBfn(cmPJ: dict) -> bool: return not bool(cmPJ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(eUNp):\n return len(eUNp) == 0", "def FBfn(eUNp):\n return len(eUNp) == 0", "def FBfn(YKHO):\n return any(YKHO.values.keys())", "def FBfn(nPrm):\n if isinstance(nPrm, dict):\n return False if nPrm else True\n return bool(nPrm is None or nPrm is '')", "def amg7(chwN):\n for...
[ "0.8502978", "0.82217777", "0.7976018", "0.78660715", "0.7435373", "0.7368619", "0.7320566", "0.72823673", "0.71068007", "0.7103955", "0.70036364", "0.69455296", "0.69410896", "0.6936527", "0.6899111", "0.6873107", "0.68475693", "0.68227047", "0.6821952", "0.68006206", "0.678...
0.87143
0
Called if all forms are valid. Creates a Recipe instance along with associated Ingredients and Instructions and then redirects to a success page.
def lwXz(YKHO, L03z, aobn, usA9): YKHO.object = L03z.save() aobn.instance = YKHO.object aobn.save() usA9.instance = YKHO.object usA9.save() return Yd7Q(YKHO.get_success_url())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QoQY(QePW):\n if QePW.method != 'POST':\n return vKnz('wine_recipes:index')\n else:\n return vKnz('wine_recipes:index')\n return vKnz('wine_recipes:index')", "def EPwd():\n L03z = dq3a()\n S0MI.debug('New recipe form.')\n if L03z.validate_on_submit():\n S0MI.debug('Vali...
[ "0.706777", "0.69840294", "0.68078554", "0.6584316", "0.6574571", "0.6544667", "0.6537903", "0.6409069", "0.6399569", "0.63868254", "0.63342804", "0.63257295", "0.62865233", "0.6264798", "0.6262804", "0.6245992", "0.6183754", "0.61608654", "0.61549455", "0.60780096", "0.60675...
0.6786955
3
Called if a form is invalid. Rerenders the context data with the datafilled forms and errors.
def ee9W(YKHO, L03z, aobn, usA9): return YKHO.render_to_response(YKHO.get_context_data(form=L03z, ingredient_form=aobn, instruction_form=usA9))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ee9W(YKHO, QePW, L03z, wL1m, mYto):\n return _1tc(QePW, YKHO.template_name, YKHO.get_context_data(form=L03z, status_form=wL1m, files_form=mYto))", "def ee9W(YKHO, L03z):\n return YKHO.render_to_response(YKHO.get_context_data())", "def ee9W(YKHO, L03z, **B2fa):\n QpfX = YKHO.get_context_data(**B2fa...
[ "0.8202664", "0.79836166", "0.7913726", "0.7871155", "0.7871155", "0.7871155", "0.7871155", "0.7871155", "0.7871155", "0.7871155", "0.7870576", "0.7840268", "0.7816142", "0.7789248", "0.77881104", "0.7781492", "0.77720207", "0.7736866", "0.770091", "0.7684558", "0.76332664", ...
0.727187
33
This function gives the raw average of a metric.
def EpFc(g4y1): HRrY = {'superkingdom', 'phylum', 'class', 'order', 'family', 'genus', 'species'} wjRY = 0 for fdMZ in HRrY: wjRY += float(g4y1[fdMZ]) return wjRY / float(len(HRrY))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MjC9(VXjJ):\n qqgr = VXjJ.mean(axis=0).mean(axis=0)\n return qqgr", "def qqgr(AcYW, qJWj, *qIxc):\n return '{:,.1f}'.format(list(NCls('select avg({}) from {}'.format(AcYW, qJWj), *qIxc))[0][0])", "def VjSA(YKHO):\n \"\"\"IGNORE: detrend normalizes the mean to zero using regression\"\"\"\n YK...
[ "0.79833406", "0.7425872", "0.7370917", "0.7321068", "0.71487427", "0.6993181", "0.69833016", "0.6979862", "0.69061005", "0.6890088", "0.68284416", "0.68180645", "0.68118775", "0.6772992", "0.67619884", "0.67602676", "0.6750869", "0.67446053", "0.6737332", "0.67069477", "0.66...
0.0
-1
This generates a random integer for the number of dimensions in our testing tensors
def Htse() -> int: Htse = 3 if Htse < 2: Htse += 3 assert Htse > 1, 'Tensor not large enough for several tests.' return Htse
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kM13():\n M4N3 = tuKI.choice(YfpN)\n ROpF = tuKI.choice((1, (2, 3), (4, 5, 6), (7, 8, 9, 10)))\n a1PO = ht2j.rand(ROpF).to(M4N3)\n nonlocal expected\n aEqx += a1PO.numel()\n return a1PO", "def lWPh(zNig):\n return ajWY(1, zNig)", "def DbxN(zNig):\n return ZylS.random_normal(shape=zN...
[ "0.74233615", "0.6661996", "0.66472566", "0.66171855", "0.6583042", "0.65805763", "0.65769523", "0.65637946", "0.6472785", "0.6448725", "0.6445608", "0.6404573", "0.6344894", "0.63210815", "0.63083947", "0.6275383", "0.6264072", "0.6241755", "0.6207913", "0.61895424", "0.6188...
0.63917786
12
Check if he given argument is an int or if it is a string that can be converted to an int, including hexadecimal format (e.g., 0xFF). Also checks octal (0o) and binary (0b).
def g4R1(wEf2): if type(wEf2) == int: return int(wEf2) elif type(wEf2) == str and wEf2.startswith('0x') or wEf2.startswith('0X'): return int(wEf2, base=16) elif type(wEf2) == str and wEf2.startswith('0b') or wEf2.startswith('0B'): return int(wEf2, base=2) elif type(wEf2) == str a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Myyj(d7pR):\n if d7pR is None:\n return False\n if isinstance(d7pR, int):\n return True\n try:\n int(d7pR)\n except ValueError:\n return False\n return True", "def TNaE(WKvO):\n if type(WKvO) is not str:\n return False\n try:\n int(WKvO)\n exc...
[ "0.74238265", "0.74103165", "0.7392098", "0.7382964", "0.73278815", "0.73075104", "0.7289794", "0.7247325", "0.72158873", "0.72151357", "0.7195613", "0.7190988", "0.7190988", "0.7190988", "0.71866184", "0.7168652", "0.7151491", "0.7141921", "0.7132411", "0.70777", "0.70534736...
0.72106194
10
rescale to fractional indices X ndarray with shape (z.ndim, ...)
def NXpY(YKHO, EcVT): if YKHO.mn.ndim < EcVT.ndim: YKHO.mn = YKHO.cast(Einh(YKHO.mn, [YKHO.z.ndim] + pSfY(EcVT.ndim - 1).tolist())) YKHO.mx = YKHO.cast(Einh(YKHO.mx, [YKHO.z.ndim] + pSfY(EcVT.ndim - 1).tolist())) YKHO.delta = YKHO.cast(Einh(YKHO.delta, [YKHO.z.ndim] + pSfY(EcVT.ndim - 1).tol...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hUUv(pg0t):\n return pg0t / 10000", "def Lwtl(k0lF, AjzU, _sQW):\n k0lF[0, 1] = k0lF[0, 1] * (_sQW / AjzU)\n k0lF[1, 0] = k0lF[1, 0] * (AjzU / _sQW)\n return k0lF", "def b3Z_(VXjJ):\n for YwkQ in range(VXjJ.shape[-1]):\n YBAt = VXjJ[..., YwkQ]\n YBAt = (YBAt - oyIN.mean(YBAt)) ...
[ "0.6209505", "0.6067824", "0.60128933", "0.6012337", "0.5956621", "0.59294945", "0.5882533", "0.5872599", "0.58595586", "0.5827657", "0.58254516", "0.5803747", "0.57870835", "0.5750812", "0.57083297", "0.570645", "0.5704875", "0.56910646", "0.5688148", "0.5657395", "0.564842"...
0.5231137
95
Canonical wrapper for pd.read_csv. Converts 'time_index' column to date format.
def HND1(JZXy): return rLdf.read_csv(JZXy, converters={'time_index': rLdf.to_datetime}, index_col='time_index')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zohx(pmON):\n jQ3Z = rLdf.read_csv(pmON)\n _c1T = rLdf.to_datetime(jQ3Z.Date)\n jQ3Z = jQ3Z.set_index(_c1T)\n del jQ3Z['Date']\n jQ3Z = jQ3Z.dropna()\n jQ3Z.sort_index()\n return jQ3Z", "def WgdG(qaEx, m1BD):\n return rLdf.read_csv(str(qaEx), index_col=m1BD, parse_dates=True)", "def...
[ "0.7342599", "0.6951558", "0.6780172", "0.66692984", "0.6609452", "0.65409094", "0.6449673", "0.63469523", "0.6301509", "0.6270293", "0.62625", "0.6255105", "0.6213714", "0.61188394", "0.602261", "0.6001827", "0.5984888", "0.5952691", "0.5944168", "0.59440124", "0.5931446", ...
0.7634653
0
Returns a random password compatible with a Windows Server.
def QVir(ADdS=None): ADdS = ADdS or tuKI.SystemRandom() FLLz = ''.join(J5wy) XcJi = 0 while XcJi < ALkW: SkC9 = [ADdS.choice(FLLz) for bGrB in Ni9Y(SpTD)] m_XB = set(SkC9) XcJi = sum((not m_XB.isdisjoint(gLiZ) for gLiZ in J5wy)) return ''.join(SkC9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ywt8():\n return GLL2(tuKI.randint(8, 16), 1, 1, 1)", "def ikbr():\n return ''.join((jxbx().choice(tcl1 + BHGE) for bGrB in range(8)))", "def Ywt8():\n w5bg = C1SZ + BHGE + '!@#$%^&()'\n jTXt = ''.join((Acvy(w5bg) for YRbF in range(8)))\n return jTXt", "def BSw2():\n return ''.join((tuK...
[ "0.7991922", "0.7550717", "0.7511697", "0.7372639", "0.7341923", "0.72925895", "0.7288673", "0.7202774", "0.71840787", "0.70686615", "0.7057123", "0.70569634", "0.70512486", "0.7030385", "0.70258397", "0.69917375", "0.6957179", "0.6942359", "0.6916641", "0.6884872", "0.688056...
0.0
-1
Tests that the topic migration job does not convert a topic that is already the latest schema version.
def B2dF(YKHO): rlUa = RvYP.Topic.create_default_topic(YKHO.TOPIC_ID, 'A name', 'abbrev', 'description') rlUa.add_subtopic(1, 'A subtitle') qpsA.save_new_topic(YKHO.albert_id, rlUa) YKHO.assertEqual(rlUa.subtopic_schema_version, vg4R.CURRENT_SUBTOPIC_SCHEMA_VERSION) rjee = YaRL.TopicMigrationOneOffJ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B2dF(YKHO):\n rlUa = RvYP.Topic.create_default_topic(YKHO.TOPIC_ID, name='A name')\n rlUa.add_subtopic(1, title='A subtitle')\n qpsA.save_new_topic(YKHO.albert_id, rlUa)\n YKHO.assertEqual(rlUa.subtopic_schema_version, vg4R.CURRENT_SUBTOPIC_SCHEMA_VERSION)\n rjee = YaRL.TopicMigrationOneOffJob.c...
[ "0.82888216", "0.76434016", "0.76088613", "0.7358366", "0.7263467", "0.660738", "0.65090805", "0.6199023", "0.61784786", "0.61737406", "0.61214846", "0.6012389", "0.5926963", "0.5853592", "0.58487225", "0.5820962", "0.5766037", "0.57588506", "0.5729348", "0.5725574", "0.56927...
0.8354981
0
Tests that the topic migration job skips deleted topic and does not attempt to migrate.
def EWRS(YKHO): rlUa = RvYP.Topic.create_default_topic(YKHO.TOPIC_ID, 'A name', 'abbrev', 'description') qpsA.save_new_topic(YKHO.albert_id, rlUa) qpsA.delete_topic(YKHO.albert_id, YKHO.TOPIC_ID) with YKHO.assertRaisesRegexp(Exception, 'Entity .* not found'): pIXQ.get_topic_by_id(YKHO.TOPIC_ID) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EWRS(YKHO):\n rlUa = RvYP.Topic.create_default_topic(YKHO.TOPIC_ID, name='A name')\n qpsA.save_new_topic(YKHO.albert_id, rlUa)\n qpsA.delete_topic(YKHO.albert_id, YKHO.TOPIC_ID)\n with YKHO.assertRaisesRegexp(Exception, 'Entity .* not found'):\n pIXQ.get_topic_by_id(YKHO.TOPIC_ID)\n rjee ...
[ "0.86911285", "0.8028171", "0.7920437", "0.76151234", "0.76128834", "0.6998528", "0.6913818", "0.6690199", "0.6251846", "0.62082416", "0.6060518", "0.59408", "0.5890308", "0.5881753", "0.586825", "0.5846103", "0.5828651", "0.5827853", "0.5823204", "0.58201396", "0.58111656", ...
0.8706856
0
convert bytes array to int
def h5qf(lHmx): return int.from_bytes(lHmx, 'big')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dPc4(J83E):\n return BlNT.unpack('<i', qw7D.array('B', J83E))[0]", "def PCNz(J83E):\n Mkmy = 0\n XP5J = 0\n for Fg_i in J83E:\n Mkmy |= Fg_i << 8 * XP5J\n XP5J += 1\n return Mkmy", "def NCAK(YKHO, bytes):\n if not (type(bytes) is SnBA.ListType or type(bytes) is SnBA.StringTy...
[ "0.84821516", "0.84069026", "0.8353716", "0.8235218", "0.82253313", "0.81284547", "0.81239194", "0.79728657", "0.7959995", "0.79339206", "0.7921445", "0.78568953", "0.78555596", "0.7841873", "0.78404164", "0.78287244", "0.7798165", "0.77831286", "0.77583313", "0.77154297", "0...
0.8094678
7
convert an int to bytes
def jykZ(FGW3): return int.to_bytes(FGW3, cpgS, 'big')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KA36(BWXx: int) -> bytes:\n return bytes(str(BWXx), 'utf-8')", "def AUwM(YRbF):\n return bytes((YRbF,))", "def jykZ(YKHO, FGW3):\n if not (type(FGW3) is SnBA.LongType or type(FGW3) is SnBA.IntType):\n raise TypeError('You must pass a long or an int')\n vIwR = ''\n while FGW3 > 0:\n ...
[ "0.8678159", "0.8459969", "0.83578604", "0.8313784", "0.8272041", "0.8193534", "0.81615436", "0.8141784", "0.8140645", "0.80770594", "0.8011943", "0.7991279", "0.7991066", "0.7983023", "0.79441184", "0.7930673", "0.7880165", "0.7870628", "0.78419983", "0.783919", "0.783919", ...
0.84945154
1
Gets the show_id of this ShowsAvailabilityResponseInner.
def GViE(YKHO): return YKHO._show_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GViE(YKHO, GViE):\n YKHO._show_id = GViE", "def GViE(YKHO, GViE):\n YKHO._show_id = GViE", "def T0iu(GViE: int, NCls: Session=JHvC(GGod), eOtH: str=JHvC(X22T)):\n nUHY = qZGC.get_netflix_show(NCls, show_id=GViE)\n if nUHY is None:\n raise pgG1(status_code=404, detail='Show not found.')\n...
[ "0.5373819", "0.5373819", "0.5339299", "0.53097796", "0.5086531", "0.504728", "0.49311727", "0.49029016", "0.49029016", "0.48533645", "0.4797592", "0.4797592", "0.4797592", "0.47599736", "0.4750678", "0.4722073", "0.46967393", "0.46316162", "0.46018177", "0.46018177", "0.4601...
0.6137534
1
Gets the price_id of this ShowsAvailabilityResponseInner.
def sVlw(YKHO): return YKHO._price_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hI0L(YKHO):\n return YKHO._get_endpoint('price')", "def N_Zi(YKHO, Ltg2):\n return Ltg2.prices.current().price", "def NXNA(YKHO):\n return YKHO.getData()['price']", "def N_Zi(YKHO):\n return YKHO._price", "def N_Zi(YKHO):\n return YKHO._price", "def hI0L(YKHO):\n return YKHO._price"...
[ "0.558041", "0.5471118", "0.54590195", "0.5408806", "0.5408806", "0.53993106", "0.53993106", "0.53993106", "0.5371177", "0.5351754", "0.53285545", "0.53285545", "0.53070277", "0.52288103", "0.52224386", "0.52182865", "0.5209781", "0.5209781", "0.51849204", "0.51849204", "0.51...
0.654149
1
Sets the customer_category of this ShowsAvailabilityResponseInner.
def X7rw(YKHO, X7rw): YKHO._customer_category = X7rw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m3Nh(YKHO, m3Nh):\n if YKHO._configuration.client_side_validation and m3Nh is None:\n raise ValueError('Invalid value for `customer`, must not be `None`')\n YKHO._customer = m3Nh", "def Ghho(YKHO, Ghho):\n if Ghho is None:\n raise ValueError('Invalid value for `category`, must not be `...
[ "0.5871738", "0.56439686", "0.5627843", "0.55794674", "0.55794674", "0.55581534", "0.55581534", "0.55581534", "0.55581534", "0.55581534", "0.55581534", "0.55581534", "0.55581534", "0.55581534", "0.55581534", "0.55181116", "0.55181116", "0.54383177", "0.54345053", "0.54345053", ...
0.74977624
0
Gets the price_type of this ShowsAvailabilityResponseInner.
def wuGg(YKHO): return YKHO._price_type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wk2c(YKHO):\n return YKHO._pricing_type", "def r9r6(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'availability_type')", "def wuGg(YKHO, wuGg):\n YKHO._price_type = wuGg", "def lZqK(YKHO, DEXX, lhKE):\n for EsHA in YKHO.spot_price_list:\n if EsHA['InstanceType'] == DEXX and EsHA['Availab...
[ "0.5924985", "0.5912509", "0.5671202", "0.56562555", "0.56240404", "0.55936027", "0.55700445", "0.55450255", "0.5391827", "0.53092533", "0.5283637", "0.5244808", "0.52101284", "0.5157516", "0.5157516", "0.51557285", "0.51557285", "0.51557285", "0.5150832", "0.5146586", "0.514...
0.706211
1
Sets the price_type of this ShowsAvailabilityResponseInner.
def wuGg(YKHO, wuGg): YKHO._price_type = wuGg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wuGg(YKHO, wuGg):\n if wuGg is None:\n raise ValueError('Invalid value for `price_type`, must not be `None`')\n YKHO._price_type = wuGg", "def hI0L(YKHO, hI0L):\n if YKHO.local_vars_configuration.client_side_validation and hI0L is None:\n raise ValueError('Invalid value for `price`, mu...
[ "0.74927497", "0.62707174", "0.6177557", "0.6177557", "0.5943354", "0.5943354", "0.583265", "0.5802629", "0.56586987", "0.56586987", "0.56586987", "0.56586987", "0.56586987", "0.56586987", "0.56586987", "0.56586987", "0.56586987", "0.56586987", "0.56586987", "0.56586987", "0....
0.76262057
0
Gets the availability of this ShowsAvailabilityResponseInner.
def _Y0l(YKHO): return YKHO._availability
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Y0l(YKHO) -> h8nf[qe4Y.Input['ConnectorDefinitionsAvailabilityArgs']]:\n return qe4Y.get(YKHO, 'availability')", "def yUDB(YKHO):\n bD7m = '%s/libraries/%s/media/ebook/availability' % (YKHO.base_url, str(YKHO.library_id))\n geh0 = YKHO.request(bD7m)\n Pj0h = geh0.json()\n if not Pj0h:\n ...
[ "0.6163868", "0.6155809", "0.59198374", "0.59099376", "0.5854838", "0.58494806", "0.58240235", "0.5813922", "0.58042425", "0.57835466", "0.5775098", "0.5775098", "0.5723956", "0.5701026", "0.56721264", "0.5662221", "0.5662221", "0.5662221", "0.5662221", "0.5662221", "0.566222...
0.6960929
0
Gets the show_status of this ShowsAvailabilityResponseInner.
def W_GM(YKHO): return YKHO._show_status
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W_GM(YKHO, W_GM):\n YKHO._show_status = W_GM", "def tNOh(YKHO, raWl, format=rbmW.JSON, iNRD=False):\n YKHO.__verify_param('format', format, rbmW)\n ChdF = dict(data_date=raWl, format=format, display_non_active_sources=YKHO.__bool(iNRD))\n geh0 = YKHO._api_get('v2.0/data_availability_status', para...
[ "0.5752787", "0.56926936", "0.5277518", "0.52605575", "0.5259515", "0.5194517", "0.5187054", "0.51638734", "0.51344424", "0.51250815", "0.5057554", "0.50520086", "0.50320596", "0.49832815", "0.4982646", "0.49322793", "0.4930503", "0.49219355", "0.49142727", "0.4909331", "0.49...
0.5856048
0
Returns the string representation of the model
def gTzM(YKHO): return EyO9(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86416775", "0.8510436", "0.7853881", "0.7744098", "0.77114", "0.7697539", "0.7659996", "0.7637475", "0.76213473", "0.76074654", "0.7606779", "0.7606779", "0.7606779", "0.7598864", "0.7585116", "0.7582008", "0.75707483", "0.7567779", "0.7538827", "0.7538827", "0.7527744", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Generates a name for the playlist based on a timestamp
def ZGNx(): import time YGfs = time.gmtime(time.time()) return 'musicracy-{}{}{}{}{}{}'.format(YGfs.tm_year, YGfs.tm_mon, YGfs.tm_mday, YGfs.tm_hour, YGfs.tm_min, YGfs.tm_sec)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO) -> str:\n return YKHO._playlist_name", "def nAIg(ETu_):\n leAC = ' - '.join([ETu_.title, ETu_.subtitle]) if ETu_.subtitle else ETu_.title\n return '\"{}\" @ {} ({})'.format(leAC, ETu_.starttime, ETu_.basename)", "def PHFh(YKHO):\n with open(YKHO.archivo, 'r') as MADV:\n Z9JV =...
[ "0.6863795", "0.65077513", "0.64167565", "0.63919723", "0.6382478", "0.6257755", "0.6210886", "0.6147967", "0.6128194", "0.6093462", "0.60576", "0.60530365", "0.60281897", "0.5999434", "0.5993", "0.5937868", "0.5927469", "0.5926092", "0.59239674", "0.5899771", "0.5873135", ...
0.8750124
0
Sets the starter_declaration of this EmployeeTax.
def OIWV(YKHO, OIWV): YKHO._starter_declaration = OIWV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OxRM(YKHO, OxRM):\n YKHO._taxed_middle_initial = OxRM", "def eD1J(YKHO, eD1J):\n YKHO._starter_type = eD1J", "def UFjv(YKHO, UFjv):\n YKHO._fed_tax = UFjv", "def j8ci(YKHO, j8ci):\n YKHO._tax = j8ci", "def yLl1(YKHO, yLl1):\n YKHO._taxed_first_name = yLl1", "def DnBx(YKHO, DnBx):\n ...
[ "0.6208409", "0.6057213", "0.5479758", "0.54110867", "0.5405166", "0.54025686", "0.5377894", "0.5363706", "0.5235799", "0.5229856", "0.5223206", "0.51411605", "0.51288843", "0.5117232", "0.51138985", "0.5113252", "0.5095941", "0.507052", "0.5062679", "0.50464094", "0.49787354...
0.7915377
0
Sets the tax_code of this EmployeeTax.
def svvy(YKHO, svvy): YKHO._tax_code = svvy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DOhr(YKHO, DOhr):\n YKHO._tax_amount = DOhr", "def DOhr(YKHO, DOhr):\n YKHO._tax_amount = DOhr", "def DOhr(YKHO, DOhr):\n YKHO._tax_amount = DOhr", "def DOhr(YKHO, DOhr):\n YKHO._tax_amount = DOhr", "def DOhr(YKHO, DOhr):\n YKHO._tax_amount = DOhr", "def DOhr(YKHO, DOhr):\n YKHO._ta...
[ "0.64975035", "0.64975035", "0.64975035", "0.64975035", "0.64975035", "0.64975035", "0.64975035", "0.64684564", "0.6258009", "0.6240936", "0.6138448", "0.60949117", "0.6024282", "0.5899879", "0.5794172", "0.5793689", "0.5764638", "0.57234216", "0.57213974", "0.5661362", "0.56...
0.81852704
0
Sets the w1_m1 of this EmployeeTax.
def hZ7H(YKHO, hZ7H): YKHO._w1_m1 = hZ7H
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jA2G(YKHO, jA2G):\n YKHO._taxed_address1 = jA2G", "def o4D3(YKHO, o4D3):\n YKHO._x1 = o4D3", "def si3g(YKHO, si3g):\n YKHO._y1 = si3g", "def mssn(YKHO, mssn):\n YKHO._custom_attribute1 = mssn", "def Y5QK(YKHO, Y5QK):\n YKHO._accent1 = Y5QK", "def eiBr(YKHO):\n return YKHO.__W1", "...
[ "0.6320303", "0.6082202", "0.5625185", "0.53046453", "0.5261577", "0.52390814", "0.52390814", "0.52354103", "0.5161156", "0.5142848", "0.5142848", "0.5142848", "0.5131877", "0.51051056", "0.51051056", "0.51051056", "0.51013833", "0.5099925", "0.5073113", "0.5036348", "0.50247...
0.7636087
0
Sets the student_loan_deduction of this EmployeeTax.
def p1fL(YKHO, p1fL): YKHO._student_loan_deduction = p1fL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def brmu(YKHO, brmu):\n YKHO._student_loan_balance = brmu", "def g3Gt(YKHO, g3Gt):\n YKHO._student = g3Gt", "def TgPd(YKHO, TgPd):\n YKHO._district = TgPd", "def TgPd(YKHO, TgPd):\n YKHO._district = TgPd", "def lymy(YKHO, lymy):\n YKHO._has_loan_or_student_debt = lymy", "def ihVd(YKHO, ihV...
[ "0.6447398", "0.5812488", "0.58083826", "0.58083826", "0.5698308", "0.5594496", "0.5509758", "0.543679", "0.54017675", "0.53575236", "0.53059644", "0.52629113", "0.52625793", "0.52579397", "0.52095497", "0.51883256", "0.51374936", "0.5136246", "0.51273197", "0.5124099", "0.50...
0.8255207
0
Sets the has_post_graduate_loans of this EmployeeTax.
def z0YB(YKHO, z0YB): YKHO._has_post_graduate_loans = z0YB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qQJ9(YKHO, qQJ9):\n YKHO._post_grad = qQJ9", "def lymy(YKHO, lymy):\n YKHO._has_loan_or_student_debt = lymy", "def P2xj(YKHO, P2xj):\n YKHO._post_fix = P2xj", "def surN(YKHO, surN):\n YKHO._has_trade_support_loan_debt = surN", "def e_kc(YKHO, e_kc):\n YKHO._shipping_tax_refunded = e_kc",...
[ "0.5700939", "0.500136", "0.49615744", "0.483562", "0.4736823", "0.46847656", "0.45947328", "0.45792392", "0.4577976", "0.45604557", "0.4550802", "0.45058772", "0.4499064", "0.44745785", "0.44471216", "0.4429628", "0.4426486", "0.43920767", "0.4342123", "0.4330235", "0.432087...
0.84071517
0
Sets the directorship_start_date of this EmployeeTax.
def UGOx(YKHO, UGOx): YKHO._directorship_start_date = UGOx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YFxH(YKHO, kepv):\n YKHO._start_date = kepv", "def YFxH(YKHO, kepv):\n YKHO.__start_date = kepv", "def kepv(YKHO, kepv):\n YKHO._start_date = kepv", "def kepv(YKHO, kepv):\n YKHO._start_date = kepv", "def kepv(YKHO, kepv):\n YKHO._start_date = kepv", "def kepv(YKHO, kepv):\n YKHO._s...
[ "0.67792374", "0.67761153", "0.6595283", "0.6595283", "0.6595283", "0.6595283", "0.6595283", "0.6595283", "0.6595283", "0.6595283", "0.6595283", "0.6595283", "0.6595283", "0.6595283", "0.6595283", "0.6595283", "0.6595283", "0.6595283", "0.65715796", "0.6560316", "0.6560316", ...
0.8527047
0
Turn NaN masked fill value.
def XEBk(tk32): Pfk3 = XTiz.argwhere(XTiz.isnan(tk32.data)) for hksT in Pfk3: tk32.data[tuple(hksT)] = tk32.data.fill_value tk32.data.mask[tuple(hksT)] = True print('There was %s NaNs' % str(len(Pfk3))) return tk32
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ryyl(BkYD):\n BkYD = BkYD.reshape(BkYD.shape[0], QRFO(BkYD.shape[1:]))\n for G1Hx in Ni9Y(BkYD.shape[1]):\n Csk6 = BkYD[:, G1Hx]\n exwG = L_aS(Csk6)\n or8S = neBz(exwG)\n Csk6[or8S] = pTn1(or8S, neBz(~exwG), Csk6[~exwG])", "def ml02(tyNF):\n for AAHb in tyNF.colnames:\n ...
[ "0.73665893", "0.73658293", "0.7349164", "0.7066626", "0.70560765", "0.68566257", "0.6843818", "0.683777", "0.68167144", "0.6800176", "0.66609216", "0.66492915", "0.65921956", "0.65747166", "0.6561687", "0.6527605", "0.651871", "0.64979684", "0.6483635", "0.64810735", "0.6472...
0.6117367
48
Getter method for config, mapped from YANG variable /routing_policy/policy_definitions/policy_definition/statements/statement/conditions/bgp_conditions/config (container)
def wLv7(YKHO): return YKHO.__config
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wSxb(YKHO, Ty9i, tyeH=False):\n try:\n a1PO = ltgX(Ty9i, base=GPtr.config, is_container='container', yang_name='config', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths=True, namespace='http://openconfig.net/yang/bgp-policy', defining_module='openconfig-bgp-pol...
[ "0.55046517", "0.54762757", "0.5455127", "0.5440476", "0.5344531", "0.53115505", "0.53007895", "0.5294097", "0.52912885", "0.5265901", "0.5255888", "0.5251071", "0.5228258", "0.5223031", "0.5214707", "0.5182112", "0.51805526", "0.5137425", "0.51347435", "0.5128866", "0.510141...
0.0
-1
Setter method for config, mapped from YANG variable /routing_policy/policy_definitions/policy_definition/statements/statement/conditions/bgp_conditions/config (container)
def wSxb(YKHO, Ty9i, tyeH=False): try: a1PO = ltgX(Ty9i, base=GPtr.config, is_container='container', yang_name='config', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths=True, namespace='http://openconfig.net/yang/bgp-policy', defining_module='openconfig-bgp-policy', y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wSxb(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ALw3, is_container='container', yang_name='config', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths=True, extensions=None, namespace...
[ "0.5807958", "0.5760885", "0.57591397", "0.5704389", "0.5646112", "0.5639662", "0.56351143", "0.56295633", "0.55732214", "0.55418587", "0.55138797", "0.55103266", "0.5506432", "0.5501121", "0.5485442", "0.5482814", "0.544826", "0.5413585", "0.53734297", "0.5356808", "0.532684...
0.58291906
0
Setter method for state, mapped from YANG variable /routing_policy/policy_definitions/policy_definition/statements/statement/conditions/bgp_conditions/state (container)
def leF4(YKHO, Ty9i, tyeH=False): try: a1PO = ltgX(Ty9i, base=QTBn.state, is_container='container', yang_name='state', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths=True, namespace='http://openconfig.net/yang/bgp-policy', defining_module='openconfig-bgp-policy', yan...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def leF4(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=rOz9, is_container='container', yang_name='state', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths=True, extensions=None, namespace=...
[ "0.6218305", "0.6214348", "0.6214298", "0.61868906", "0.6181026", "0.6160259", "0.61387247", "0.61220276", "0.6107454", "0.60940707", "0.6081184", "0.60800683", "0.60799986", "0.6070259", "0.6067347", "0.60462075", "0.6043129", "0.6034551", "0.60303056", "0.602945", "0.602672...
0.6606964
0
supporting_list(, id=None, screen_id=None, offset=0, limit=20) | Get a list of users supported by the specified user. | |id_screenid|
def foQi(YKHO, *, id=None, dV8m=None, **B2fa): MCsb = id if id is not None else dV8m if MCsb is None: raise hJxj('Either an id or screen_id is required for this method.') return YKHO.request('GET', f'/users/{MCsb}/supporting', endpoint_parameters=('offset', 'limit'), **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b4ee(YKHO, BA9O='ranking', *, id=None, dV8m=None, **B2fa):\n MCsb = id if id is not None else dV8m\n if MCsb is None:\n raise hJxj('Either an id or screen_id is required for this method.')\n if BA9O == 'new' or BA9O == 'ranking':\n B2fa['sort'] = BA9O\n else:\n raise hJxj(\"sor...
[ "0.7372024", "0.6565375", "0.6356225", "0.6130564", "0.6020196", "0.60006607", "0.5918262", "0.5895827", "0.587342", "0.5857416", "0.5854664", "0.5851444", "0.5845695", "0.58452326", "0.58452326", "0.58320045", "0.5809423", "0.5790126", "0.57579947", "0.5757766", "0.5746558",...
0.8731276
0
Initialises a new 'SteamSupply' instance.
def FIMM(YKHO, XbA3=0.0, cDQe=None, *qIxc, **lcZy): YKHO.steamSupplyRating = XbA3 YKHO._SteamTurbines = [] YKHO.SteamTurbines = [] if cDQe is None else cDQe super(sZkD, YKHO).__init__(*qIxc, **lcZy)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jPZs(YKHO, jPZs):\n YKHO._supply = jPZs", "def FIMM(YKHO, mWFP, zKHR, nY2i):\n YKHO.name = mWFP\n YKHO.ingredients = sorted(zKHR)\n YKHO.provides = nY2i\n for YRbF, uBMr in enumerate(YKHO.ingredients):\n if uBMr[0] == rmyT['wool'].slot:\n YKHO.ingredients[YRbF] = (rmyT['wool'...
[ "0.57844484", "0.56996995", "0.56308013", "0.5591896", "0.5572493", "0.5565025", "0.55472636", "0.55085856", "0.5507144", "0.54972595", "0.5479222", "0.54663336", "0.5465945", "0.54473734", "0.54262495", "0.54262495", "0.54262495", "0.54101735", "0.5399428", "0.53994036", "0....
0.734086
0
given a list of binary timeseries, create a stimulation matrix using given receptor_profiles Returns array of shape (n_receptors, timesteps)
def O1br(Vckn, mFX8, kvxZ=0, OgK_=None, et7_=None): assert len(Vckn) == mFX8.shape[0], 'number of binary stimulation protocols must be equal to receptor_profiles' Dqvg = mFX8.shape[1] k0lF = oyIN.ones((Dqvg, len(Vckn[0]))) * kvxZ for YRbF, LDZ2 in enumerate(Vckn): if et7_ is not None and YRbF in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kPIi(vb7U, tkax, l4g4):\n _yMn = vb7U.shape[0] - l4g4\n lBJM = vb7U.shape[1]\n WKvO = oyIN.zeros((_yMn, l4g4, lBJM))\n LVAh = oyIN.zeros((_yMn,))\n MKlR = oyIN.zeros((_yMn,))\n print('dim_0', _yMn)\n for YRbF in range(_yMn):\n H2v2 = vb7U[l4g4 + YRbF - 1, tkax]\n WKvO[YRbF] =...
[ "0.5330455", "0.53066444", "0.5282754", "0.5222206", "0.5155869", "0.51011926", "0.4995451", "0.49881938", "0.49854082", "0.4958389", "0.49436542", "0.4914744", "0.4901248", "0.48918015", "0.4887408", "0.488529", "0.48794544", "0.48755178", "0.48716423", "0.48680484", "0.4867...
0.72661483
0
Create a random string with a length == size. By default, this string contains all 52 letters (upper and lower cases).
def giAH(dq9H: str=vIwR.ascii_uppercase + vIwR.ascii_lowercase, zNig: int=1000000) -> dict: nPrm = {} BWvy = '' YRbF = 0 while len(BWvy) < zNig: BWvy += dq9H[tuKI.randint(0, len(dq9H) - 1)] nPrm['string_'] = BWvy nPrm['sorted_'] = ''.join(sorted(BWvy)) nPrm['sorted_lower_'] = ''.join...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DsQ5(zNig=16, gLiZ=vIwR.ascii_letters + vIwR.digits):\n return ''.join((tuKI.choice(gLiZ) for bGrB in range(zNig)))", "def TDq5(zNig):\n return ''.join((tuKI.choice(vIwR.ascii_lowercase + vIwR.ascii_uppercase + vIwR.digits) for bGrB in range(zNig)))", "def E3Kp(zNig=8):\n return ''.join((tuKI.Syst...
[ "0.87288105", "0.87184227", "0.870839", "0.8634137", "0.8557123", "0.8514976", "0.84943414", "0.8468002", "0.84489554", "0.84467924", "0.8440199", "0.8435962", "0.8428206", "0.8401631", "0.8389512", "0.83891755", "0.83724725", "0.8371559", "0.8366077", "0.83487993", "0.834311...
0.0
-1
name name of the operator used to invoke it arity arguments count, if None the operator is Vararg
def FIMM(YKHO, mWFP, EWtf, A97Q): YKHO.name = mWFP YKHO.arity = EWtf YKHO.doc = A97Q
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GD8U(seET):\n wEsz = aadv(seET)\n EWtf = len(wEsz.parameters)\n return EWtf", "def EWtf(YKHO, UAE4='short') -> GVbD:\n return EWtf(YKHO.__sk_callable__)", "def XuY2(YKHO):\n return 'builtinfnargtype_%s' % YKHO.num", "def EWtf(YKHO) -> int:\n pass", "def EWtf(YKHO):\n return len(YKH...
[ "0.67170423", "0.6311137", "0.6183318", "0.60951453", "0.6018383", "0.5969926", "0.59412104", "0.5931248", "0.5913565", "0.58442754", "0.58247805", "0.5821264", "0.5821264", "0.58212626", "0.58212626", "0.5783863", "0.5771773", "0.5766977", "0.5766977", "0.5755055", "0.574060...
0.0
-1
This default evaluation function just returns the score of the state. The score is the same one displayed in the Pacman GUI.
def fHT3(Ov5A): return Ov5A.getScore()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fHT3(Ov5A):\n return Ov5A.getScore()", "def fHT3(Ov5A):\n return Ov5A.getScore()", "def b7La(YKHO, QTBn):\n iBIi, oyg0, YPaw = QTBn\n return phK_(oyg0, iBIi)", "def fHT3(rfNN):\n return rfNN.getScore()", "def fHT3(rfNN):\n return rfNN.getScore()", "def fHT3(rfNN):\n return rfNN.g...
[ "0.8257824", "0.8257824", "0.81611997", "0.7953007", "0.7923572", "0.79196334", "0.7914744", "0.7867968", "0.7867968", "0.7867968", "0.7867968", "0.7867968", "0.7867968", "0.7867968", "0.7867968", "0.7867968", "0.7867968", "0.7829493", "0.7829493", "0.7829493", "0.7829493", ...
0.8275687
0
Gets the up of this InterfacePhysHoldtimeConfig.
def vP2v(YKHO) -> str: return YKHO._up
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GNvu(YKHO):\n return YKHO.__up", "def GNvu(YKHO):\n return YKHO.__up", "def GNvu(YKHO):\n return YKHO.__up", "def GNvu(YKHO):\n return YKHO.__up", "def Kzd5(YKHO):\n return YKHO._upp", "def vP2v(YKHO) -> int:\n return qe4Y.get(YKHO, 'up')", "def vP2v(YKHO) -> h8nf[int]:\n retur...
[ "0.6703362", "0.6703362", "0.6703362", "0.6703362", "0.6601107", "0.6355213", "0.6338103", "0.6312741", "0.6242879", "0.6207918", "0.6159298", "0.6098401", "0.6098401", "0.6083417", "0.59593755", "0.58968663", "0.58930254", "0.5844185", "0.58429223", "0.5823209", "0.58140004"...
0.5620486
26
customerized learning rate decay for training with clean labels. For efficientcy purpose we use large lr for noisy data.
def y6Et(__n6): if __n6 in ['mnist']: def IesV(qtWj): if qtWj > 30: return 0.001 elif qtWj > 10: return 0.01 else: return 0.1 return WTXF(IesV) elif __n6 in ['cifar-10']: def IesV(qtWj): if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PjIb(YKHO):\n if YKHO.decay:\n YKHO.lr = YKHO.decay * YKHO.lr", "def PjIb(K0do):\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = Lwm5['lr'] * 0.1", "def PjIb(DJmW, K0do, qtWj):\n tspZ = DJmW * 0.1 ** (qtWj // 4)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = tspZ", "def ...
[ "0.7518473", "0.7041", "0.6915258", "0.68334407", "0.67364085", "0.671592", "0.67117876", "0.6701954", "0.6685009", "0.6676093", "0.6665174", "0.6661543", "0.6657868", "0.66548324", "0.66432655", "0.6633178", "0.66046786", "0.66040725", "0.65889233", "0.6584184", "0.6571394",...
0.0
-1
Create a new doubly linked list. Takes O(1) time.
def FIMM(YKHO): YKHO.head = None YKHO.tail = None YKHO.size = 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S06t():\n from doublelinkedlist import DoubleLinkedList\n o9Ep = DoubleLinkedList()\n return o9Ep", "def jth9(YKHO):\n if not YKHO.head:\n print('The list is empty')\n else:\n zdB2 = GiEi()\n exwG = YKHO.head\n while exwG:\n zdB2.addItemToTail(exwG.value)...
[ "0.706286", "0.68097943", "0.67372376", "0.66956884", "0.6424337", "0.6155071", "0.6149711", "0.61145663", "0.61102504", "0.60913247", "0.6083617", "0.60219306", "0.60106325", "0.60047275", "0.59389025", "0.5931442", "0.5905866", "0.5886596", "0.58732146", "0.587238", "0.5844...
0.5279767
89
Insert a new element at the beginning of the list. Takes O(1) time.
def qIuc(YKHO, H5ew, nPrm): ac0X = d2wa(key=H5ew, data=nPrm, next=YKHO.head) if YKHO.head: YKHO.head.prev = ac0X else: YKHO.tail = ac0X YKHO.head = ac0X YKHO.size += 1 return ac0X
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e7SI(yv6U, BWXx):\n yv6U.remove(BWXx)\n yv6U.insert(0, BWXx)", "def e7SI(yv6U, BWXx):\n yv6U.remove(BWXx)\n yv6U.insert(0, BWXx)", "def RKMm(ezWE, ZfUD):\n if ZfUD in ezWE:\n ezWE.insert(0, ezWE.pop(ezWE.index(ZfUD)))", "def qIuc(YKHO, ZfUD):\n YKHO.list.prepend(ZfUD)", "def Do...
[ "0.7682972", "0.7682972", "0.74647915", "0.72745687", "0.7215671", "0.7114819", "0.70665604", "0.70628583", "0.703039", "0.7028043", "0.7023492", "0.7006871", "0.69713694", "0.6939324", "0.69039947", "0.6878819", "0.6839919", "0.6818597", "0.6794503", "0.67869407", "0.6760042...
0.0
-1
This method will check if the first node in the tree is a function or look in the tree for derivative operations
def H2Zg(YKHO) -> str: MgT8 = ['solve', 'isolate', 'roots'] kCgZ = ['integral', 'derivative', 'limit'] if YKHO.tree.type == EM5l: if YKHO.tree.op.value.lower() in MgT8: YKHO.type = YKHO.tree.op.value YKHO.tree = _qLf(YKHO.tree.args[0]) return nyY2 elif YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rVKq(YKHO):\n return 0", "def FgJ8(YKHO, Q6kx: AST) -> bool:\n if Q6kx.type == x2Rn:\n return YKHO.check_for_ddx(Q6kx.left) or YKHO.check_for_ddx(Q6kx.right)\n elif Q6kx.type == xSIa:\n return YKHO.check_for_ddx(Q6kx.right)\n elif Q6kx.type == EM5l:\n if 'd/d' in Q6kx.op.valu...
[ "0.5823801", "0.58228445", "0.5751248", "0.5736145", "0.5639284", "0.56250095", "0.56169456", "0.55646384", "0.5534738", "0.5525937", "0.54956585", "0.5474015", "0.54463625", "0.5443991", "0.5440167", "0.5424184", "0.5412272", "0.539354", "0.5370028", "0.53698736", "0.534872"...
0.0
-1
Sends a note off events to all currently playing notes. Used when exiting or pausing the application.
def Cy2L(YKHO): for usCa in YKHO.currently_playing: YKHO.__send_notes(usCa) pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qJpu(YKHO):\n YKHO.__pitches = []", "def IWBQ(YKHO, tvqc):\n ycqe = yhMC.RtMidiOut()\n ycqe.openPort(0)\n for G1Hx in YKHO.cliqueNotes:\n OWoP = yhMC.MidiMessage.noteOn(0, G1Hx, 90)\n ycqe.sendMessage(OWoP)\n ITS7.sleep(1)\n Kth9 = yhMC.MidiMessage.noteOff(0, G1Hx)\n ...
[ "0.6900283", "0.6686457", "0.62889665", "0.626495", "0.61838347", "0.612589", "0.59127796", "0.5870461", "0.5808354", "0.5766227", "0.5698944", "0.5697725", "0.5680341", "0.56494707", "0.56494707", "0.56494707", "0.56494707", "0.56494707", "0.56494707", "0.56494707", "0.56494...
0.7960443
0
Set up matplotlib's RC params for LaTeX plotting. Call this before plotting a figure.
def MjC7(Enm2=None, Focb=None, ZLJ_=1, GAJY=12): assert ZLJ_ in [1, 2] if Enm2 is None: Enm2 = 3.39 if ZLJ_ == 1 else 6.9 if Focb is None: ZlbZ = (oyIN.sqrt(5) - 1.0) / 2.0 Focb = Enm2 * ZlbZ NArs = {'backend': 'ps', 'text.latex.preamble': ['\\usepackage{gensymb}'], 'axes.labelsi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rM39():\n LaRT = True if RDuA.which('tex') else False\n I8kJ.pyplot.rc('text', usetex=LaRT)\n I8kJ.pyplot.rc('font', family='serif')\n I8kJ.rcParams['hatch.linewidth'] = 0.5", "def YVgb():\n QrM1.rcParams.update({'figure.figsize': (12, 9)})\n QrM1.rcParams.update({'lines.linewidth': 2})\n ...
[ "0.7805265", "0.7414992", "0.73962325", "0.7228082", "0.72089297", "0.71926105", "0.70551413", "0.70551413", "0.7021128", "0.7015351", "0.70032907", "0.69567937", "0.6887952", "0.6777846", "0.6760244", "0.67515296", "0.6710922", "0.670802", "0.6702565", "0.67007995", "0.66887...
0.0
-1
Test create a fundraiser for a project as authenticated user.
def xiTE(YKHO): YKHO.login(username=YKHO.some_user.email, password='testing') YKHO.visit_path(YKHO.project_with_fundraiser_url) YKHO.browser.find_link_by_partial_text('Become a fundraiser').first.click() YKHO.assertTrue(YKHO.browser.is_text_present('FUNDRAISING FOR PROJECT')) YKHO.assertFalse(YKHO.b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AKjR(YKHO):\n pass", "def Igv5(YKHO):\n bNKA = oPx1.objects.order_by('?').first()\n YKHO.assertUnauthorized('/projects/{}/invitations/'.format(bNKA.pk), 'POST', dict(email='joe.bloggs@example.com'))", "def RLeY(YKHO):\n bNKA = k_g4.make(oPx1, name='project 1', slug='project-1', is_active=True)\...
[ "0.68797976", "0.6878475", "0.68389493", "0.6794775", "0.6651416", "0.6643203", "0.6628557", "0.66253114", "0.66247857", "0.6620823", "0.6536879", "0.65005034", "0.64477813", "0.64443105", "0.6393461", "0.63396835", "0.63051397", "0.63031876", "0.63028026", "0.63009256", "0.6...
0.7644324
0
Test edit a fundraiser that the user does not own.
def r2D8(YKHO): YKHO.login(username=YKHO.another_user.email, password='testing') YKHO.visit_path(YKHO.fundraiser_url) YKHO.assertFalse(YKHO.browser.is_text_present('Edit')) YKHO.visit_path('{0}/edit'.format(YKHO.fundraiser_url)) YKHO.assertTrue(YKHO.browser.is_text_present('EDIT FUNDRAISER')) YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tynj(YKHO):\n YKHO.login(username=YKHO.some_user.email, password='testing')\n YKHO.visit_path(YKHO.fundraiser_url)\n YKHO.browser.find_by_css('.owner-settings').first.mouse_over()\n YKHO.browser.is_text_present('Edit Fundraiser')\n YKHO.browser.find_link_by_partial_text('Edit').first.click()\n ...
[ "0.6995958", "0.6784769", "0.6771589", "0.6751594", "0.67021686", "0.6503545", "0.6502901", "0.64960665", "0.64447916", "0.6440436", "0.6402027", "0.63940483", "0.63320124", "0.6288687", "0.628755", "0.62473756", "0.6226277", "0.6202961", "0.6201347", "0.6199738", "0.6196915"...
0.70363194
0
Make a duplicate of the board list and return it the duplicate. The AI algorithm to make temporary modifications to a temporary copy of the board without changing the original board.
def eS_Z(iBIi): Chfv = [] for YRbF in iBIi: Chfv.append(YRbF) return Chfv
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rgt2(YKHO, iBIi):\n q9ES = [rdlD[:] for rdlD in iBIi]\n return q9ES", "def Ol_o(iBIi):\n Chfv = []\n for YRbF in iBIi:\n Chfv.append(YRbF)\n return Chfv", "def Ol_o(iBIi):\n Chfv = iBIi[:]\n return Chfv", "def cqgB(iBIi):\n etXV = x5RN()\n for YRbF, r845 in CsJN:\n ...
[ "0.8173828", "0.81056577", "0.8007647", "0.78624487", "0.7339909", "0.71711427", "0.7066864", "0.6994081", "0.69749725", "0.692348", "0.67830735", "0.67536217", "0.6723263", "0.67024887", "0.6646389", "0.6602824", "0.66015947", "0.66015947", "0.6597364", "0.6562334", "0.65411...
0.71348655
6
Converts api endpoint to mTLS endpoint. Convert ".sandbox.googleapis.com" and ".googleapis.com" to ".mtls.sandbox.googleapis.com" and ".mtls.googleapis.com" respectively.
def Bvbt(I6gc): if not I6gc: return I6gc Nfcn = ZbWC.compile('(?P<name>[^.]+)(?P<mtls>\\.mtls)?(?P<sandbox>\\.sandbox)?(?P<googledomain>\\.googleapis\\.com)?') r8hN = Nfcn.match(I6gc) mWFP, e3iS, TtgT, lhgC = r8hN.groups() if e3iS or not lhgC: return I6gc if TtgT: return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gn8I(Emd4, FbeO: Optional[client_options_lib.ClientOptions]=None):\n if FbeO is None:\n FbeO = ZbB_.ClientOptions()\n fRRL = Hy7s.getenv('GOOGLE_API_USE_CLIENT_CERTIFICATE', 'false')\n eU_O = Hy7s.getenv('GOOGLE_API_USE_MTLS_ENDPOINT', 'auto')\n if fRRL not in ('true', 'false'):\n rai...
[ "0.5709722", "0.5709722", "0.5709722", "0.5709722", "0.5271925", "0.52172405", "0.5211095", "0.51999235", "0.5101597", "0.5083229", "0.49964824", "0.49164894", "0.49127582", "0.48856494", "0.4858987", "0.48537403", "0.48449063", "0.48036164", "0.4797721", "0.4761482", "0.4756...
0.7548999
3
Creates an instance of this client using the provided credentials file.
def eWUZ(Emd4, Ux0P: str, *qIxc, **B2fa): Vt89 = zOZf.Credentials.from_service_account_file(Ux0P) B2fa['credentials'] = Vt89 return Emd4(*qIxc, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def adK6(Emd4, *, bD7m: str, NtEF: Union[str, StrStorage], jTXt: Union[str, StrStorage], emKz: Optional[FileTransfer]=None) -> i9zE:\n return i9zE(client=WX3b.from_credentials(url=bD7m, username=NtEF, password=jTXt), file_transfer=emKz)", "def vuB2(Nu1S=None, QpfX=None, mwuo=None, MYjm=None, QDug=None, NtEF=N...
[ "0.7249915", "0.7053171", "0.68975395", "0.68081045", "0.6802571", "0.6738844", "0.67199385", "0.6675532", "0.6666354", "0.6666354", "0.6666354", "0.6666354", "0.6666354", "0.6660721", "0.6660721", "0.6660721", "0.6660721", "0.6660721", "0.6646984", "0.6643617", "0.6623292", ...
0.66432035
21
Returns a fullyqualified location string.
def UxUL(bNKA: str, Rci7: str) -> str: return 'projects/{project}/locations/{location}'.format(project=bNKA, location=Rci7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hbd3(YKHO) -> str:\n raise NotImplementedError()", "def PrXH(YKHO):\n raise NotImplementedError", "def aYU_(YKHO) -> str:\n return '???' if YKHO.location is None else YKHO.location.gnu_style_repr(relative=True)", "def xkW5(m6Me):\n a1PO = ZbWC.findall('\\\\n(?i)location:\\\\s*(.*)\\\\r\\\\s*'...
[ "0.7629885", "0.75872636", "0.75184566", "0.74290174", "0.73426884", "0.73426884", "0.7325776", "0.7324572", "0.7299841", "0.7299841", "0.7299841", "0.7299841", "0.7299841", "0.7299841", "0.7299841", "0.7299841", "0.7299841", "0.7299841", "0.7299841", "0.7299841", "0.7299841"...
0.0
-1
Return save folder. Assumes folders in the parent_dir have suffix run{run number}. Finds the highest run number and sets the output folder to that number + 1. This is just convenient so that if you run the same script multiple times tensorboard can plot all of the results on the same plots with different names.
def Q8H3(mSwx, i2I_): try: Hy7s.makedirs(mSwx) except Exception: pass Z2dz = 0 for YMBJ in Hy7s.listdir(mSwx): if not Hy7s.path.isdir(Hy7s.path.join(mSwx, YMBJ)): continue try: YMBJ = int(YMBJ.split('-run')[-1]) if YMBJ > Z2dz: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q8H3(mSwx, j3aw):\n Hy7s.makedirs(mSwx, exist_ok=True)\n Z2dz = 0\n for YMBJ in Hy7s.listdir(mSwx):\n if not Hy7s.path.isdir(Hy7s.path.join(mSwx, YMBJ)) or j3aw not in YMBJ:\n continue\n try:\n YMBJ = int(YMBJ.split('_run')[-1])\n if YMBJ > Z2dz:\n ...
[ "0.7875396", "0.77898955", "0.7782726", "0.7755831", "0.7264329", "0.7130467", "0.6900187", "0.6885785", "0.6692588", "0.6680364", "0.65474707", "0.6474048", "0.64354026", "0.6327918", "0.62658757", "0.6260898", "0.6213978", "0.6158718", "0.6153644", "0.6142794", "0.6133254",...
0.7767556
3
r"""Return list of target model update ops. These are soft target updates. Meaning that the target values are slowly adjusted, rather than directly copied over from the source model.
def Li32(pan_, JZXy, jmzt): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q0cq(pan_, JZXy):\n pass", "def Li32(pNZh, oSTn, t8An, jmzt):\n IPme = []\n pDvj = pNZh.get_collection(ZylS.GraphKeys.TRAINABLE_VARIABLES, scope=t8An)\n IRmN = pNZh.get_collection(ZylS.GraphKeys.TRAINABLE_VARIABLES, scope=oSTn)\n for YRbF in range(len(pDvj)):\n WXpE = pDvj[YRbF]\n ...
[ "0.761688", "0.74354535", "0.72648764", "0.7096608", "0.6979595", "0.68056035", "0.66983753", "0.6583342", "0.65483624", "0.6437761", "0.6268253", "0.6218301", "0.62043196", "0.61193204", "0.5952601", "0.5923196", "0.5889193", "0.5809364", "0.5786624", "0.57783514", "0.577720...
0.7851855
0
Return list of target model update ops. These are hard target updates. The source weights are copied directly to the target network.
def Q0cq(pan_, JZXy): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Igrp(YKHO):\n with ZylS.variable_scope('update_target_network'):\n YKHO.tf_tau = ZylS.placeholder(ZylS.float32, shape=(), name='tau')\n _Zyu = []\n for SLbt, pan_ in zip(YKHO.online.params, YKHO.target.params):\n bc5D, Eg2g = (SLbt.name.split('/')[1:], pan_.name.split('/')[1:...
[ "0.7530045", "0.7453983", "0.7371511", "0.7268509", "0.7108853", "0.6990225", "0.66928196", "0.6606744", "0.64696985", "0.6436048", "0.635045", "0.63391304", "0.6242522", "0.623416", "0.6219195", "0.6002185", "0.6002185", "0.60010326", "0.5998336", "0.5931155", "0.593106", ...
0.7738987
0
KLDivergence of VAE ouputted (mu, logvar) with unit Gaussian
def dMiA(yGTL, XO02): return -0.5 * ht2j.sum(1 + XO02 - yGTL.pow(2) - XO02.exp())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dzAH(JBMS, XO02):\n return 0.5 * ht2j.sum(XO02.exp() + JBMS.pow(2) - 1 - XO02, -1)", "def wnQP(yGTL, XO02):\n return -0.5 * ht2j.sum(1 + XO02 - yGTL.pow(2) - XO02.exp(), dim=1)", "def dzAH(yGTL, SgQ6):\n return -0.5 * ZylS.reduce_sum(1.0 + SgQ6 - ZylS.square(yGTL) - ZylS.exp(SgQ6), axis=1)", "de...
[ "0.7877197", "0.77956504", "0.77879447", "0.7339598", "0.725508", "0.72396415", "0.7141242", "0.7112349", "0.7100613", "0.7070237", "0.70431834", "0.6998677", "0.69875324", "0.6972282", "0.69361615", "0.6862182", "0.68229014", "0.6789828", "0.6789713", "0.67755413", "0.676783...
0.69597304
14
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Get class instance methods.
def FLMq(P4Hh: type) -> str: Et1P: x1iM[str] = [] lkC7: x1iM[str] = [] IvI8 = ['__init__', 'run'] _nLz = [knSv for knSv, bGrB in tq_1.getmembers(JgLA, tq_1.isfunction)] ao7A = tq_1.getmembers(P4Hh, tq_1.isfunction) for RKN_, JfyU in sorted(ao7A): if RKN_ in IvI8 or (RKN_ not in _nLz and ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gONs(vOsx):\n return tq_1.getmembers(vOsx, kgaD)", "def NiZH(YKHO):\n na_E = {NKcE for NKcE in dir(type(YKHO)) if callable(getattr(type(YKHO), NKcE)) and (not NKcE.startswith('__'))}\n return filter(lambda NKcE: NKcE.startswith('check'), na_E)", "def ekxW(Emd4):\n tbx9 = {}\n Lsfb(Emd4, tbx9...
[ "0.7941236", "0.7795552", "0.7643476", "0.7489355", "0.7341601", "0.73161167", "0.7211314", "0.71965736", "0.7169594", "0.70153016", "0.7002013", "0.6995379", "0.69913954", "0.69846153", "0.693224", "0.6907834", "0.6867527", "0.6836304", "0.68340015", "0.67950064", "0.6759873...
0.0
-1
Get linux users count who map to the selinux user. It returns a dict with the selinux user type as the key, and the linux users count as the value.
def aTmg(oTDm): VD40 = oTDm[SVX6.selinux_user_mapping].content nPrm = E2fq(VD40, heading_ignore=['Login Name'], header_substitute=[('Login Name', 'login_name'), ('SELinux User', 'selinux_user'), ('MLS/MCS Range', 'mls_mcs_range'), ('Service', 'service')]) KUnM = sorted(RxGd(tXGZ.selinux_users)) O5_K = {...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K6aY():\n Amyp = {}\n ievf = l504()\n Amyp['stats'] = {'registrations': len(ievf)}\n return pz3A(Amyp)", "def CyiD(YKHO) -> int:\n return YKHO.query(mv1M).filter(mv1M.username != GU2i.SYSTEM_USER).count()", "def DK_G(Jj83):\n return {F8DO: len(zmBb) for F8DO, zmBb in Jj83.items()}", "de...
[ "0.6389859", "0.62844086", "0.6146925", "0.6105358", "0.61034966", "0.60533994", "0.60072845", "0.59846365", "0.5958619", "0.5906615", "0.58713347", "0.5856372", "0.584023", "0.57888246", "0.57888246", "0.5778457", "0.57238764", "0.5710683", "0.5703794", "0.5690852", "0.56788...
0.7159316
0
Create a trainable weight variable for this layer.
def Cc7Y(YKHO, GhuM): YKHO.image = YKHO.add_weight(name='image', shape=YKHO.image_shape, initializer='random_uniform', trainable=True) super(J9Qm, YKHO).build(GhuM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E9N2(mWFP, ROpF, XJsN=True):\n return ZylS.get_variable(mWFP, ROpF, trainable=XJsN, initializer=ZylS.truncated_normal_initializer(stddev=0.1))", "def LKoW(ROpF, MuED=gk9z(seed=1)):\n return ZylS.get_variable(name='W', shape=ROpF, initializer=MuED)", "def ZeC_(YKHO, mWFP, ROpF=None, yDqo=None, lJf5=No...
[ "0.76313406", "0.75857544", "0.75476515", "0.74636704", "0.7455444", "0.74281186", "0.7423531", "0.7423531", "0.7423531", "0.7395971", "0.73899424", "0.73810834", "0.73452294", "0.7344663", "0.73442924", "0.7337915", "0.73285645", "0.7326897", "0.731595", "0.72778946", "0.726...
0.0
-1
Get the tensorflow graph of the keras redefined vgg16
def Sh9A(lNai=(224, 224, 3), isbE='./weights/vgg16_weights_tf_dim_ordering_tf_kernels_notop.h5'): C3ST = a7Lb(lNai).load_weights(isbE, by_name=True) cuiw = nMvt.get_session() return cuiw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D3PM(cb_Q):\n C3ST = ZylS.saved_model.loader.load(cb_Q, ['vgg16'], VyBP)\n pNZh = ZylS.get_default_graph()\n njad = pNZh.get_tensor_by_name('image_input:0')\n sMyr = pNZh.get_tensor_by_name('keep_prob:0')\n zyGg = pNZh.get_tensor_by_name('layer3_out:0')\n GMev = pNZh.get_tensor_by_name('layer...
[ "0.7621882", "0.7488363", "0.73825914", "0.7356286", "0.73429686", "0.7337854", "0.7235906", "0.71445394", "0.7106043", "0.70694834", "0.7054812", "0.70491624", "0.6993166", "0.69900846", "0.6977409", "0.6948157", "0.6931746", "0.6926491", "0.69260406", "0.6912094", "0.688097...
0.6800337
25
Find the Kneighbors of a point. Returns indices of and distances to the neighbors of each point.
def _0ob(YKHO, EcVT, hKUR=None, dPDp=True): YKHO.check_is_fitted() EcVT = YKHO._check_convert_X_for_predict(EcVT) dqIl = YKHO._distance(EcVT, YKHO._X) xndd = YKHO.knn_estimator_.kneighbors(dqIl, n_neighbors=hKUR, return_distance=dPDp) return xndd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _0ob(YKHO, EcVT, hKUR, dPDp=True):\n EcVT = oyIN.atleast_2d(EcVT).astype(oyIN.float32)\n pImw, or8S = YKHO.index.search(EcVT, hKUR)\n return (pImw, or8S)", "def W3uO(YKHO, kj9G, LTIa, G1Hx):\n J_Es = Catu.cKDTree(kj9G)\n Ayfi, rBgW = J_Es.query(LTIa, k=[G1Hx])\n return (rBgW, Ayfi)", "def...
[ "0.78086525", "0.7547459", "0.7526446", "0.7525397", "0.75068396", "0.7412575", "0.74081546", "0.7397666", "0.73736584", "0.72804064", "0.7278279", "0.71832585", "0.71712565", "0.7149087", "0.71391195", "0.7108279", "0.70978385", "0.70875496", "0.70787436", "0.70027417", "0.6...
0.70692366
19
Extracts a key for a given event type, if applicable. Otherwise, returns a single key value.
def mexE(YKHO, KGvk): if str(KGvk.get('event')) in ['Viewed Shoppable Fit', 'Created Story']: return int(KGvk['properties_shoppable_post_id']) elif str(KGvk.get('event')) in ['Assigned AB Test Shard']: return KGvk['userId'] else: return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fAop():\n for tvqc in EEoz.event.get():\n if tvqc.type == 'KEYDOWN':\n return tvqc", "def i4c3(hEKL):\n return hEKL.split('.')[1]", "def bZbj(U6D_):\n M4Z2 = U6D_['value']['type'] if 'value' in U6D_ else U6D_['type']\n return getattr(HwRy.modules[__name__], 'parse_%s' % M4Z2.l...
[ "0.63456744", "0.6229265", "0.61758214", "0.61140734", "0.6112438", "0.61102086", "0.6105594", "0.6081474", "0.6048514", "0.6033269", "0.6031569", "0.6021596", "0.60055065", "0.60031563", "0.5969942", "0.5962451", "0.5946972", "0.5921082", "0.59105754", "0.5900154", "0.587147...
0.0
-1
Basic conv transpose block for EncoderDecoder upsampling Apply successivly Transposed Convolution, BatchNormalization, ReLU nonlinearity
def EYHJ(g4y1, he5B, Ot1W=[3, 3]): Zxma = Fz20.conv2d_transpose(g4y1, he5B, kernel_size=[3, 3], stride=[2, 2], activation_fn=None) Zxma = ZylS.nn.relu(Fz20.batch_norm(Zxma)) return Zxma
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O1jb(YKHO, he5B, Ot1W, vHnr):\n aJva = wyuq(he5B, (Ot1W, Ot1W), strides=(2, 2), use_bias=False)(vHnr)\n aJva = GVKG(axis=YKHO.axis)(aJva)\n aJva = MroH('relu')(aJva)\n return aJva", "def FIMM(YKHO, VKhi, DYuh: int, tYiq: int, Ot1W: int or tuple, _0fC: Optional[int or tuple]=1, ivFb: Optional[int]...
[ "0.7306589", "0.7151608", "0.71381015", "0.689395", "0.6800331", "0.6723843", "0.6717813", "0.6591344", "0.656011", "0.65524024", "0.6531072", "0.64162034", "0.64097345", "0.64001566", "0.63787204", "0.6374155", "0.63674295", "0.6353385", "0.63387823", "0.6338551", "0.6321378...
0.68018407
4
Returns a list of ints representing the current temperature of all cards in the closet. To see which driver corresponds to which temperature use getCardsAlive().
def cR8b(YKHO): pAmX = [] for E_qD in YKHO.myice.getDriversAlive(): input = int(YKHO.myice.getMeas(E_qD, 'T')) pAmX.append(input) for YRbF in YKHO.myice.getRacksAlive(): input = int(YKHO.myice.getMeas(YRbF * 10, 'T')) pAmX.append(input) return pAmX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KGj9(YKHO) -> list[int]:\n return [wqL3.get_temp() for wqL3 in YKHO.get_gpus()]", "def CbFs(YKHO):\n YV68 = []\n for Z7L0 in YKHO.myice.getRacksAlive():\n input = str(Z7L0 * 10)\n vIwR = YKHO.myice.sendWriteReadCommand(input + ':?MEAS RT')\n lpha = vIwR.split(' ')\n iLuo ...
[ "0.72099274", "0.70591384", "0.7038048", "0.69170773", "0.6847295", "0.65429044", "0.65251905", "0.64934313", "0.64217246", "0.64165366", "0.63626426", "0.63330317", "0.6281006", "0.6267733", "0.6198855", "0.6186417", "0.6161057", "0.61482775", "0.614242", "0.61417186", "0.61...
0.78974533
0
Return a `GameServer` object given its game id.
def NMoC(YKHO, A0tR: str) -> h8nf[HCiG]: return YKHO.__games.get(A0tR, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lVlK(A0tR: int):\n BH3N = _apf.query.filter_by(game_id=A0tR).first()\n return BH3N", "def lVlK(A0tR):\n BH3N = CZAD.query.get(A0tR)\n if BH3N is None:\n raise _8EW.BadRequest('game_id invalid or expired')\n return BH3N", "def NMoC(YKHO, id):\n BH3N = lVlK(id)\n if not BH3N:\n ...
[ "0.7174794", "0.70422965", "0.6988148", "0.6986843", "0.69075674", "0.688561", "0.6864781", "0.67084205", "0.6652829", "0.6547532", "0.6501271", "0.64102614", "0.6271507", "0.6243552", "0.6201143", "0.6179993", "0.6158396", "0.6086349", "0.60573024", "0.6056913", "0.60137504"...
0.81180537
0
Tests getting a client instance.
def wZz4(): x0hE = DXta.Client(zDeW, LyBT) assert x0hE.config geh0 = x0hE.health() assert geh0['status'] == 'available'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UYLP(YKHO):\n assert YKHO.client", "def KaY7(YKHO):\n YKHO.assertIsInstance(YKHO.td_client, tS9P)\n YKHO.assertIsInstance(YKHO.td_credentials, Swhr)", "def rjU0(YKHO):\n pass", "def kyN5(Emd4):\n return Emd4._get_client_class()()", "def hsAX(YKHO) -> None:\n YKHO._get_client()", "de...
[ "0.77186686", "0.76493233", "0.7565302", "0.73354024", "0.7159017", "0.71482784", "0.71407", "0.71407", "0.7113844", "0.707686", "0.706661", "0.7055355", "0.70382595", "0.70205605", "0.7001334", "0.6959133", "0.6915181", "0.6906607", "0.6868803", "0.6868596", "0.685216", "0...
0.7446235
3
Should CORS headers, http status 200 OK, and text "pong".
def YZ9B(YKHO): im04 = g6r9.get('/') YKHO.assertEqual(im04.status_code, 200) YKHO.assertEqual(im04.text, 'pong') YKHO.assertTrue('Access-Control-Allow-Origin' in im04.headers) YKHO.assertTrue('Access-Control-Allow-Methods' in im04.headers) YKHO.assertTrue('Access-Control-Allow-Headers' in im04.h...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def health_check():\n return sz8e({'status': 'ok'}, headers={'Access-Control-Allow-Origin': '*'})", "def P4Wq(YKHO):\n YKHO.assertEqual(YKHO.res.status, '200 OK')", "def QUgO(YKHO, geh0):\n if geh0.http == 200:\n return True\n tO9_ = 'HTTP ' + str(geh0.http) if geh0.http else geh0.html...
[ "0.6820169", "0.6712031", "0.6620048", "0.65671855", "0.65518636", "0.65130556", "0.65095246", "0.6410863", "0.64078546", "0.63786876", "0.63634574", "0.6359163", "0.63235253", "0.6298265", "0.62682116", "0.624798", "0.62458205", "0.62394416", "0.6222564", "0.62117505", "0.62...
0.7458953
0
Transposes the length and the dim_out dimensions of the bounds
def a1PO(YKHO): return P9M2(YKHO.args, YKHO.p, YKHO.eps, lw=YKHO.lw.transpose(1, 3), uw=YKHO.uw.transpose(1, 3), lb=YKHO.lb.transpose(1, 2), ub=YKHO.ub.transpose(1, 2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RjqT(X7zS):\n return [(X7zS[0][YRbF], X7zS[1][YRbF]) for YRbF in range(len(X7zS[0]))]", "def Iv_9(X7zS):\n return (oyIN.array([X7zS[YRbF][0] for YRbF in range(len(X7zS))]), oyIN.array([X7zS[YRbF][1] for YRbF in range(len(X7zS))]))", "def ljSo(YKHO, X7zS):\n if not X7zS:\n Fg_i = [[None, Non...
[ "0.6651816", "0.6138895", "0.5865923", "0.57825595", "0.5748096", "0.5692231", "0.56267375", "0.56138545", "0.5552921", "0.5533093", "0.55020005", "0.5485591", "0.5407884", "0.5400516", "0.53856397", "0.53844965", "0.5372239", "0.536248", "0.536248", "0.535585", "0.53542084",...
0.51998013
23
Returns number of variables in the symbol table of a given kind.
def R6Wa(YKHO, eJTR): if eJTR == 'static': return YKHO._static_count elif eJTR == 'field': return YKHO._field_count elif eJTR == 'arg': return YKHO._arg_count elif eJTR == 'local': return YKHO._var_count
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tlca(YKHO, eJTR: str) -> int:\n UHFx = 0\n for SRYB in YKHO.table.values():\n if SRYB.kind == eJTR:\n UHFx += 1\n return UHFx", "def Tlca(YKHO, eJTR):\n UHFx = YKHO.counter[eJTR]\n YKHO.counter[eJTR] += 1\n return UHFx", "def UHFx(YKHO, eJTR: VarKind) -> int:\n return...
[ "0.85207665", "0.7715261", "0.7649129", "0.6401868", "0.6386772", "0.6280545", "0.61307853", "0.6003195", "0.5983397", "0.5845843", "0.58358216", "0.58259195", "0.5807082", "0.58037764", "0.5799927", "0.5786885", "0.57831115", "0.5768182", "0.5748973", "0.56717867", "0.566059...
0.7927981
1
Returns the delay of a wave from a source to the ear considering the head difraction. Delay is computed relative to the delay to reach the head center without head. Formula has been simplified considering that head radius (R) << distance to source (r). Azimuth of the source is defined between pi and pi. 0 at front, 90 ...
def Dc8X(XhBD): if XhBD > 0: return -A3Vt / Z9rn * epAf.sin(XhBD) return -A3Vt / Z9rn * XTiz.arcsin(XTiz.sin(XhBD))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bsYk(GXkX, pan_):\n UqER = GXkX.get_elements()\n ObMQ = oyIN.matmul(pan_, oyIN.ones((1, GXkX.get_channels_total())))\n HGCR = oyIN.sqrt(oyIN.sum((UqER - ObMQ) ** 2, axis=0))\n return HGCR / 300000000.0", "def rbul(tkJI):\n SA1E = 0.97 * (tkJI - 0.106) + 0.148\n return SA1E", "def h7D2(YKH...
[ "0.59218985", "0.5671789", "0.5635652", "0.5630732", "0.5546728", "0.55439615", "0.55318445", "0.5503445", "0.5463628", "0.5458517", "0.5456453", "0.5444188", "0.54105026", "0.5386734", "0.5383211", "0.53714937", "0.53367263", "0.5254078", "0.52461725", "0.5233925", "0.522965...
0.59703016
0
Returns the delay of a wave from a source to the ear position if there were no head. See headDelaySimplified for assumptions.
def Qp9e(XhBD): return -A3Vt / Z9rn * epAf.sin(XhBD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d0Lv(YKHO, zZcM, zr3f):\n try:\n E20i = YKHO.awareness.graph[zZcM][zr3f]['lldpdelay']\n mH2_ = YKHO.awareness.graph[zr3f][zZcM]['lldpdelay']\n qhLk = YKHO.echo_latency[zZcM]\n XObb = YKHO.echo_latency[zr3f]\n h7D2 = (E20i + mH2_ - qhLk - XObb) / 2\n return max(h7D2,...
[ "0.5831274", "0.58247316", "0.5757992", "0.5754413", "0.5732336", "0.56844854", "0.56733423", "0.56270546", "0.56243974", "0.56186247", "0.5593657", "0.5559582", "0.5542678", "0.5529314", "0.5507575", "0.55042595", "0.55040824", "0.54581624", "0.5453797", "0.5441588", "0.5425...
0.0
-1
Test missing host file raises exception.
def bD1X(): SGPK = {'debug': False, 'disconnect': False, 'executable': '', 'executableargs': '', 'hosts': '/tmp/hostfile.conf', 'job': '', 'jobname': '', 'log': '', 'recover': '', 'resource': '', 'replicates': '', 'verbose': False} with trZe.raises(aTqo.ConfigurationError): OPz3(SGPK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UtsN(YKHO):\n Of0F = YKHO.path()\n Of0F.setContent(b'10.2.3.4 foo.example.com\\n')\n YKHO.assertIsNone(Q_vN(Of0F.path, b'bar.example.com'))", "def dwHp(YKHO):\n pmON = Hy7s.path.join(YKHO.tempdir, 'known_hosts')\n _rOR.RemoveKnownHost(YKHO._HOST, known_hosts_path=pmON)", "def APmG(KcEq):\n ...
[ "0.76058763", "0.75829035", "0.75659466", "0.7396824", "0.7372737", "0.7230243", "0.71559167", "0.6992444", "0.6984199", "0.6934773", "0.6934773", "0.6828682", "0.6796621", "0.67920315", "0.6774039", "0.6762461", "0.67032063", "0.66755575", "0.6664648", "0.66554964", "0.66374...
0.0
-1
Test missing job file raises exception.
def lVgu(): KiHE = Hy7s.path.join(Hy7s.getcwd(), 'tests/standards/simplehostfile.txt') SGPK = {'debug': False, 'disconnect': False, 'executable': '', 'executableargs': '', 'hosts': KiHE, 'job': '/tmp/jobfile.conf', 'jobname': '', 'log': '', 'recover': '', 'resource': '', 'replicates': '', 'verbose': False} ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wvyy(YKHO):\n jvNa(hGmK, 'ABC')\n with YKHO.assertRaisesRegex(mgaz, nEt9):\n mVLm('DEF')", "def Z7IU(YKHO):\n try:\n JX2A('file://{}/input/abc.txt'.format(YKHO.cur_path)).run()\n except FileNotFoundError:\n assert True", "def uS51(YKHO):\n gfLF = 'f' * 200\n with YKHO...
[ "0.72816044", "0.7199147", "0.7160535", "0.71308786", "0.71016693", "0.70532316", "0.6975766", "0.6951921", "0.6926015", "0.6915822", "0.6911744", "0.6894945", "0.6873649", "0.6815686", "0.6815217", "0.6809042", "0.67998636", "0.6768643", "0.67647964", "0.6760917", "0.6750903...
0.0
-1
Returns the string representation of this instance. Returns str This instance's string representation
def zAg0(YKHO) -> str: KCHu = str(YKHO.value) return f'{KCHu}\n\nWARNING:\n{YKHO.warnings}' if YKHO.warnings else KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rIkN(YKHO) -> str:\n return str(YKHO)", "def yLCI(YKHO) -> str:\n return str(YKHO)", "def yLCI(YKHO) -> str:\n return YKHO.__str__()", "def gTzM(YKHO):\n return YKHO.__str__()", "def gTzM(YKHO):\n return str(YKHO)", "def SnfU(YKHO):\n return str(YKHO)", "def yLCI(YKHO):\n retur...
[ "0.89310956", "0.8870537", "0.88337004", "0.88069147", "0.87583625", "0.8743389", "0.8722797", "0.8677472", "0.867288", "0.8650684", "0.8650684", "0.8553806", "0.84792966", "0.84281594", "0.84281594", "0.8380677", "0.8362176", "0.8312455", "0.8311856", "0.83080536", "0.829697...
0.0
-1
Returns the HTML representation of this instance. This method simlpy returns the value, child models should override to provide an appropriate representation. Returns str HTML representation of this instance
def J5QQ(YKHO, **B2fa) -> str: return YKHO.value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _R2e(YKHO) -> str:\n return str(YKHO)", "def zAg0(YKHO):\n return YKHO._html_output()", "def dDTT(YKHO):\n ZgoD = '_%s_as_html' % YKHO.attribute.type\n return getattr(YKHO, ZgoD, YKHO.value_as_text)", "def _R2e(YKHO) -> str:\n if YKHO._owner and YKHO.name in YKHO._owner._special_attr_boole...
[ "0.8232074", "0.8191036", "0.77676046", "0.758086", "0.7566517", "0.7558243", "0.7522892", "0.7503561", "0.74913776", "0.74240065", "0.7372931", "0.7245953", "0.7243773", "0.7224507", "0.71927166", "0.7190979", "0.7190979", "0.71902597", "0.7189133", "0.7164897", "0.7151622",...
0.83368427
0
Creates an HTML tag to link to this instance within the admin site. Returns str Link to this instance in the admin site
def oyhO(YKHO) -> str: ZGE9 = YKHO.__class__.__name__ return IUFU.admin_link(ZGE9, YKHO.id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oyhO(YKHO) -> str:\n ZGE9 = YKHO.__class__.__name__\n l5Ny = str(tuple(YKHO.tag))\n return IUFU.admin_link(ZGE9, YKHO.id, l5Ny)", "def r0z8(YKHO):\n return f'<a href=\"{YKHO.__url}\">{YKHO.__url}</a>'", "def Lv7v(YEnM):\n HZT3 = getattr(YEnM, vXX7)\n if HZT3 is None:\n return '-'\n...
[ "0.855449", "0.73261315", "0.72916985", "0.7237029", "0.72130257", "0.71905845", "0.71219295", "0.70332897", "0.7007885", "0.69730675", "0.6967552", "0.6922299", "0.6878593", "0.68625855", "0.68174475", "0.6790262", "0.6731727", "0.6729341", "0.6720408", "0.6690966", "0.66789...
0.8166995
1
Utility function to handle Form, Integral and any Expr the same way when inspecting expressions.
def v3BK(jzdc): if isinstance(jzdc, Y509): return (COsd.integrand() for COsd in jzdc.integrals()) elif isinstance(jzdc, wpGN): return (jzdc.integrand(),) elif isinstance(jzdc, EWKA): return (jzdc,) P1dF('Not an UFL type: %s' % str(type(jzdc)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lO2s(QGpr):\n if isinstance(QGpr, str) and QGpr.isdigit():\n TK2h = int(QGpr)\n elif QGpr[0] in ('+', '-'):\n uB9o = lO2s(QGpr[1])\n w6zB = lO2s(QGpr[2])\n if isinstance(uB9o, int) and isinstance(w6zB, int):\n if QGpr[0] == '+':\n TK2h = uB9o + w6zB\n...
[ "0.58964366", "0.5880509", "0.55300266", "0.5503096", "0.53575236", "0.5292187", "0.5243731", "0.52234983", "0.52234983", "0.51784617", "0.517758", "0.51631176", "0.51178545", "0.51105666", "0.5096943", "0.5083119", "0.502353", "0.5018267", "0.5001492", "0.49921364", "0.49638...
0.5799303
2
Create a jpg with given text
def K2LT(YKHO, tO9_): return U7ze(tO9_, image_export=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O4c_(l5Ny, mEpl=LTSB, n1at=pyIy, FhPQ=manh, hhRS=oO12, y_EG=CMBK, pmez=D5Vh):\n o9av = eENq.truetype(FhPQ, hhRS)\n WKvO, LVAh = nuov.Draw(hnIv.new('RGB', (1, 1), pmez)).textsize(l5Ny, o9av)\n LNo8 = hnIv.new('RGB', (WKvO + 2 * mEpl, LVAh + 2 * n1at), pmez)\n JmFt = nuov.Draw(LNo8)\n JmFt.text((m...
[ "0.6954933", "0.66266036", "0.6607877", "0.6559908", "0.6553906", "0.6553015", "0.6539663", "0.6531656", "0.6498475", "0.6491011", "0.64782196", "0.6453773", "0.64521736", "0.6439912", "0.6387105", "0.6359819", "0.633944", "0.63214815", "0.63032234", "0.6300699", "0.62495697"...
0.5695458
74
Creates and saves a superuser with the given email, date of birth and password.
def Zp54(YKHO, D3lj, jTXt=None, **wdCM): CBIr = YKHO.create_user(D3lj, password=jTXt, **wdCM) CBIr.is_admin = True CBIr.save(using=YKHO.db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zp54(YKHO, NtEF, D3lj, jTXt, **wdCM):\n print('vao')\n if jTXt is None:\n raise TypeError('Superusers must have a password.')\n CBIr = YKHO.create_user(NtEF, D3lj, jTXt)\n CBIr.is_superuser = True\n CBIr.is_staff = True\n CBIr.save()\n return CBIr", "def Zp54(YKHO, D3lj, jTXt, **w...
[ "0.81684536", "0.81647193", "0.81596506", "0.8158295", "0.8150179", "0.8133431", "0.81279516", "0.8118412", "0.8079949", "0.80782455", "0.8076565", "0.8075773", "0.8075773", "0.80414385", "0.80320275", "0.8018798", "0.8003533", "0.8000466", "0.79907507", "0.7989402", "0.79880...
0.78782237
58
Creates and saves a User with the given email, date of birth and password.
def lYUQ(YKHO, D3lj, jTXt=None, **wdCM): if not D3lj: raise ValueError('Users must have an email address') CBIr = YKHO.model(email=YKHO.normalize_email(D3lj), **wdCM) CBIr.set_password(jTXt) CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()", "def xWi2(YKHO, D3lj, c9ua, zp3f, jTXt, **wdCM):\n D3lj = YKHO.normalize_em...
[ "0.8398513", "0.8242539", "0.8222285", "0.8134031", "0.8112516", "0.8107438", "0.8089521", "0.80854213", "0.8078641", "0.8076671", "0.8072227", "0.806547", "0.80622184", "0.8059587", "0.8059416", "0.805927", "0.8057694", "0.8056086", "0.8049341", "0.8048753", "0.80471236", ...
0.0
-1
Does the user have permissions to view the app `app_label`?
def spO2(YKHO, tKz9): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def spO2(YKHO, tKz9):\n return True", "def spO2(YKHO, tKz9):\n return True", "def spO2(YKHO, tKz9):\n return True", "def spO2(YKHO, tKz9):\n return True", "def spO2(YKHO, tKz9):\n return True", "def spO2(YKHO, tKz9):\n return True", "def spO2(YKHO, tKz9):\n return True", "def spO...
[ "0.78277415", "0.7621695", "0.7529376", "0.74810845", "0.74810845", "0.74810845", "0.74810845", "0.74810845", "0.73682016", "0.7339325", "0.73229074", "0.73090535", "0.7199971", "0.71992856", "0.71367824", "0.70515025", "0.69919354", "0.68627805", "0.6851231", "0.6836294", "0...
0.7417618
9
Get service by service_type.
def zVa7(YKHO, NvwP: str) -> 'UpnpService': return YKHO._services.get(NvwP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rVwF(YKHO, NvwP=None):\n for zVa7 in YKHO._services:\n if zVa7.type == NvwP and NvwP:\n return zVa7\n return None", "def rVwF(YKHO, NvwP: str) -> h8nf[M87a]:\n return next((zVa7 for zVa7 in YKHO.services if zVa7.type == NvwP), None)", "def Y2qe(YKHO, NvwP):\n for zVa7 in YKHO....
[ "0.9003242", "0.87315893", "0.8722062", "0.86518395", "0.86114025", "0.8143142", "0.74068147", "0.7333998", "0.7299664", "0.7274775", "0.72076917", "0.7112012", "0.7101892", "0.7080624", "0.70783514", "0.70492136", "0.7003542", "0.69963855", "0.6971797", "0.6937086", "0.69143...
0.80418384
6
Get service type for this UpnpService.
def NvwP(YKHO) -> str: return YKHO._service_description['service_type']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zVa7(YKHO, NvwP: str) -> 'UpnpService':\n return YKHO._services.get(NvwP)", "def zVa7(YKHO, NvwP: str) -> 'UpnpService':\n return YKHO.services[NvwP]", "def NvwP(YKHO) -> str:\n return YKHO._service_info.service_type", "def mkSl():\n raise NotImplementedError", "def NvwP(YKHO):\n raise N...
[ "0.84317744", "0.8347456", "0.8189335", "0.7883534", "0.75978607", "0.7311205", "0.7299122", "0.7142179", "0.7091683", "0.68481666", "0.682861", "0.68036264", "0.67217785", "0.66832393", "0.6678163", "0.66773957", "0.66773957", "0.66773957", "0.66773957", "0.66773957", "0.667...
0.80248904
3
Get service ID for this UpnpService.
def liCf(YKHO) -> str: return YKHO._service_description['service_id']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nBcv(YKHO):\n try:\n return YKHO.__properties[FGgH.remote.PROP_ENDPOINT_SERVICE_ID]\n except KeyError:\n return 0", "def nBcv(YKHO):\n try:\n return YKHO.__properties[FGgH.remote.PROP_ENDPOINT_SERVICE_ID]\n except KeyError:\n return 0", "def liCf(YKHO) -> str:\n r...
[ "0.84066653", "0.8351948", "0.81644005", "0.8123916", "0.79698354", "0.79543835", "0.79048085", "0.79048085", "0.79048085", "0.79048085", "0.79048085", "0.77813244", "0.77813244", "0.77813244", "0.77813244", "0.77813244", "0.77813244", "0.77813244", "0.7660717", "0.7660717", ...
0.78579766
11
Get full SCPDurl for this UpnpService.
def zX4L(YKHO) -> str: return uRlK.parse.urljoin(YKHO.device.device_url, YKHO._service_description['scpd_url'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zX4L(YKHO) -> str:\n bD7m: str = uRlK.parse.urljoin(YKHO.device.device_url, YKHO._service_info.scpd_url)\n return bD7m", "def oU1u(YKHO):\n return YKHO._service_url", "def oU1u(YKHO):\n if YKHO.is_null():\n return None\n return YKHO.service().canonical_url()", "def JZo2(YKHO):\n ...
[ "0.8134164", "0.65966046", "0.65002364", "0.6205543", "0.6175908", "0.61532307", "0.6140213", "0.5941621", "0.59390557", "0.5909315", "0.5902744", "0.5895054", "0.58912265", "0.58862025", "0.5863948", "0.5851374", "0.5848006", "0.58449113", "0.5831103", "0.58109915", "0.58109...
0.81438816
0
Get full controlurl for this UpnpService.
def Fa2Y(YKHO) -> str: return uRlK.parse.urljoin(YKHO.device.device_url, YKHO._service_description['control_url'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fa2Y(YKHO) -> str:\n bD7m: str = uRlK.parse.urljoin(YKHO.device.device_url, YKHO._service_info.control_url)\n return bD7m", "def oU1u(YKHO):\n if YKHO.is_null():\n return None\n return YKHO.service().canonical_url()", "def oU1u(YKHO):\n return YKHO._service_url", "def hKhs(YKHO):\n ...
[ "0.8063923", "0.6700715", "0.66045827", "0.65549064", "0.65479577", "0.65451646", "0.6486333", "0.64704156", "0.644953", "0.643114", "0.6428546", "0.64256823", "0.64256823", "0.64256823", "0.64256823", "0.64256823", "0.64256823", "0.64256823", "0.64256823", "0.64256823", "0.6...
0.80142176
1
Get All UpnpActions for this UpnpService.
def xASv(YKHO) -> x1iM['UpnpAction']: return YKHO._actions
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xASv(YKHO):\n return YKHO._actionlist", "def qaYX(YKHO):\n return YKHO.actions", "def _6Hx(YKHO):\n return YKHO._actions_list", "def Q6sW(YKHO):\n xASv = set()\n fQfG = YKHO.find('{%s}actions' % YKHO.namespace)\n if fQfG is not None:\n for XeOP in YKHO.next_actions:\n ...
[ "0.6234052", "0.61407983", "0.6083004", "0.6081638", "0.60611457", "0.60442954", "0.5984898", "0.5973807", "0.59727085", "0.59444374", "0.58939135", "0.58939135", "0.58939135", "0.58939135", "0.58316875", "0.58316875", "0.58316875", "0.58316875", "0.58316875", "0.58234453", "...
0.8051035
0
Get UPnpAction by name.
def XeOP(YKHO, mWFP: str) -> 'UpnpAction': return YKHO.actions.get(mWFP, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XeOP(YKHO, mWFP: str) -> 'UpnpAction':\n return YKHO.actions[mWFP]", "def AMEM(YKHO, mWFP):\n for jzdc in YKHO.get_actions():\n if jzdc.name == mWFP:\n return jzdc\n raise AttributeError('Action not found.')", "def AMEM(YKHO, mWFP):\n if not mWFP:\n return None\n mWF...
[ "0.8692307", "0.80392", "0.7928544", "0.7888779", "0.76737845", "0.76480377", "0.76237", "0.7449935", "0.7434178", "0.7434178", "0.7419804", "0.74143815", "0.73879105", "0.72076666", "0.6995899", "0.69691837", "0.6682854", "0.6390175", "0.6220538", "0.61679", "0.6120979", "...
0.8634557
1
Get Python value for this argument.
def BWXx(YKHO): return YKHO._value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BWXx(YKHO):\n return YKHO._args[2]", "def PAvQ(YKHO):\n return YKHO._value", "def BWXx(YKHO):\n return YKHO.opts['value']", "def Zmkp(YKHO, **B2fa):\n return YKHO.value", "def xdKy(YKHO):\n return YKHO.value", "def xdKy(YKHO):\n return YKHO.val", "def seTo(YKHO, Iltc):\n return...
[ "0.7801254", "0.73252726", "0.7225489", "0.7095413", "0.70734304", "0.7046167", "0.7044547", "0.6982412", "0.6968704", "0.6958057", "0.6958057", "0.6958057", "0.6958057", "0.6958057", "0.6958057", "0.6958057", "0.6958057", "0.6958057", "0.6958057", "0.6958057", "0.6958057", ...
0.0
-1
Get UPnP value for this argument.
def DOHp(YKHO) -> str: return YKHO.coerce_upnp(YKHO.value)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DOHp(YKHO) -> str:\n return YKHO.coerce_upnp(YKHO.value)", "def DOHp(YKHO) -> str:\n return YKHO.coerce_upnp(YKHO.value)", "def STk9(YKHO):\n return YKHO.options['destportval']", "def BWXx(YKHO) -> h8nf[Kt_s]:\n if YKHO._value is OWqh.UPNP_VALUE_ERROR:\n return None\n return YKHO._v...
[ "0.70677185", "0.70677185", "0.6382811", "0.63525915", "0.6307014", "0.6276806", "0.61306953", "0.61306953", "0.61306953", "0.61306953", "0.61306953", "0.61306953", "0.61306953", "0.61306953", "0.61306953", "0.61306953", "0.61306953", "0.61306953", "0.61306953", "0.61306953", ...
0.7042264
2
Get name of this UpnpAction.
def mWFP(YKHO) -> str: return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PQh7(YKHO) -> str:\n return qe4Y.get(YKHO, 'action_name')", "def mWFP(YKHO):\n mWFP = getattr(YKHO.action, '__name__', None)\n return mWFP if mWFP is not None else repr(YKHO.action)", "def PQh7(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'action_name')", "def PQh7(YKHO) -> qe4Y.Input[st...
[ "0.8343774", "0.81296235", "0.80565983", "0.80565983", "0.8007422", "0.7506632", "0.7491946", "0.74872965", "0.7310012", "0.7042258", "0.6828168", "0.6827973", "0.67918074", "0.6776563", "0.6773366", "0.6773366", "0.6773366", "0.6773366", "0.6773366", "0.6773366", "0.67145884...
0.0
-1
Min value for this UpnpStateVariable, if defined.
def dgIT(YKHO): nMnB = YKHO._state_variable_info['type_info'] sB1G = nMnB['data_type_python'] T8H5 = nMnB.get('allowed_value_range', {}).get('min') if sB1G == int and T8H5 is not None: return sB1G(T8H5) return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dgIT(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'min_value')", "def dgIT(YKHO) -> h8nf[float]:\n return qe4Y.get(YKHO, 'min_value')", "def dgIT(YKHO):\n return YKHO.min", "def dgIT(YKHO):\n return YKHO._min_value", "def dgIT(YKHO) -> h8nf[Kt_s]:\n nMnB = YKHO._state_variable_info.type_i...
[ "0.7597763", "0.7581923", "0.75753707", "0.74669105", "0.728857", "0.7282777", "0.72738075", "0.72738075", "0.7265147", "0.72323483", "0.70324063", "0.6969631", "0.6957025", "0.69265586", "0.69265586", "0.69027305", "0.69027305", "0.69027305", "0.69027305", "0.6880365", "0.68...
0.7371299
4
Max value for this UpnpStateVariable, if defined.
def bQ6z(YKHO): nMnB = YKHO._state_variable_info['type_info'] sB1G = nMnB['data_type_python'] Np5D = nMnB.get('allowed_value_range', {}).get('max') if sB1G == int and Np5D is not None: return sB1G(Np5D) return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bQ6z(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'max_value')", "def bQ6z(YKHO):\n return YKHO._max_value", "def bQ6z(YKHO) -> h8nf[float]:\n return qe4Y.get(YKHO, 'max_value')", "def bQ6z(YKHO) -> h8nf[Kt_s]:\n nMnB = YKHO._state_variable_info.type_info\n Np5D = nMnB.allowed_value_range.g...
[ "0.7322468", "0.72933775", "0.72516114", "0.7248781", "0.7212841", "0.71322393", "0.71322393", "0.71181065", "0.71181065", "0.70863056", "0.70537555", "0.6928772", "0.6831664", "0.68125826", "0.68125826", "0.68125826", "0.68125826", "0.68125826", "0.68125826", "0.68125826", "...
0.7320657
1
List with allowed values for this UpnpStateVariable, if defined.
def BbPm(YKHO) -> x1iM: return YKHO._state_variable_info['type_info'].get('allowed_values', [])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BbPm(YKHO) -> x1iM[Kt_s]:\n nMnB = YKHO._state_variable_info.type_info\n BbPm = nMnB.allowed_values or []\n return [YKHO.coerce_python(pCko) for pCko in BbPm]", "def BbPm(YKHO) -> h8nf[qe4Y.Input[bdIy[ImMB]]]:\n return qe4Y.get(YKHO, 'allowed_values')", "def BbPm(YKHO) -> h8nf[qe4Y.Input[bdIy[I...
[ "0.73063684", "0.721892", "0.721892", "0.6925941", "0.690726", "0.69005567", "0.66933274", "0.6678659", "0.6580175", "0.64696205", "0.6408221", "0.61938727", "0.61286557", "0.6123258", "0.60398865", "0.6033445", "0.60116696", "0.5966756", "0.5863288", "0.5862512", "0.5830506"...
0.82145333
0