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
Ensure the client is authorized to use the grant type requested. It will allow any of the four grant types (`authorization_code`, `password`, `client_credentials`, `refresh_token`) by default. Implemented `allowed_grant_types` for client object to authorize the request. It is suggested that `allowed_grant_types` should...
def KsZ6(YKHO, zb3C, Gdqg, x0hE, QePW, *qIxc, **B2fa): if YKHO._usergetter is None and Gdqg == 'password': RKD7.debug('Password credential authorization is disabled.') return False lMCL = ('authorization_code', 'password', 'client_credentials', 'refresh_token') if hasattr(x0hE, 'allowed_gran...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XBJG(YKHO):\n return ['authorization_code', 'implicit', 'password', 'client_credentials', 'refresh_token']", "def pMXa(YKHO, QePW, *qIxc, **B2fa):\n if QePW.grant_type == 'password':\n x0hE = YKHO._clientgetter(QePW.client_id)\n return not x0hE or x0hE.client_type == 'confidential' or x0h...
[ "0.745238", "0.6576533", "0.6502792", "0.6370241", "0.62872404", "0.6151221", "0.577233", "0.5751498", "0.57352394", "0.5733579", "0.5722159", "0.5720734", "0.5693377", "0.565943", "0.56394255", "0.5605096", "0.5585128", "0.55732614", "0.5561852", "0.5553588", "0.554979", "...
0.7331455
1
Finalize all values that are the only choice for a unit. Go through all the units, and whenever there is a unit with a value that only fits in one box, assign the value to this box.
def rIvV(hkxX): for PXGI in dzni: for Ko6S in '123456789': S5Zo = [FlUN for FlUN in PXGI if Ko6S in hkxX[FlUN]] if len(S5Zo) == 1: hkxX[S5Zo[0]] = Ko6S return hkxX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rIvV(hkxX):\n for PXGI in dzni:\n oaZA = list(PXGI)\n for FlUN in PXGI:\n oaZA.remove(FlUN)\n Bk8B = []\n for Fg_i in oaZA:\n Bk8B += hkxX[Fg_i]\n Bk8B = list(set(Bk8B))\n for BWXx in hkxX[FlUN]:\n if BWXx not...
[ "0.6150231", "0.5738263", "0.5612684", "0.55671245", "0.55313694", "0.55124116", "0.5460923", "0.5458567", "0.5450281", "0.54491603", "0.54196334", "0.5417317", "0.5387141", "0.53616154", "0.5312416", "0.5276738", "0.5255516", "0.52453786", "0.52410394", "0.5200773", "0.51741...
0.5256388
17
Calculate area of triangle with sides a, b, and c.
def brsj(jzdc, Fg_i, Z9rn): print('sqrt(s*(s-a)*(s-b)*(s-c)) with s = (a + b + c)/2') KCHu = (jzdc + Fg_i + Z9rn) / 2 return epAf.sqrt(KCHu * (KCHu - jzdc) * (KCHu - Fg_i) * (KCHu - Z9rn))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E8vm(jzdc, Fg_i, Z9rn):\n bBVO = oyIN.sqrt(((jzdc - Fg_i) ** 2).sum())\n _P6x = oyIN.sqrt(((jzdc - Z9rn) ** 2).sum())\n P9SZ = oyIN.sqrt(((Fg_i - Z9rn) ** 2).sum())\n KCHu = (bBVO + _P6x + P9SZ) / 2\n f0tD = oyIN.sqrt(KCHu * (KCHu - bBVO) * (KCHu - P9SZ) * (KCHu - _P6x))\n return f0tD", "de...
[ "0.8707014", "0.8446816", "0.84040123", "0.83360595", "0.80462134", "0.79517245", "0.7889585", "0.7841665", "0.783617", "0.7832635", "0.7754367", "0.7746417", "0.7578557", "0.7559723", "0.7534772", "0.74892944", "0.7450029", "0.7432971", "0.737474", "0.7364372", "0.7356242", ...
0.0
-1
Area of equilateral triangle.
def Kkb2(HEZd): return HEZd / 2 * epAf.sqrt(HEZd ** 2 - (HEZd / 2) ** 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x5JU(yzQ0, MKlR):\n return yzQ0 * MKlR / 2", "def cGOR(P8oC, H2v2):\n return P8oC * H2v2 / 2", "def x5JU(tXIo):\n return 0.5 * L3jt(En6R(tXIo, False))", "def cGOR(zPAF: number, BsXG: number, t_of: number) -> FGW3:\n KCHu = (zPAF + BsXG + t_of) / 2\n f0tD = PZyS(KCHu * (KCHu - zPAF) * (KCHu...
[ "0.8302037", "0.776063", "0.77455914", "0.76391226", "0.75598156", "0.75291485", "0.7506781", "0.74642456", "0.7459708", "0.7405107", "0.7384183", "0.73796403", "0.7336258", "0.730668", "0.7265377", "0.7238968", "0.72369176", "0.7202182", "0.71670985", "0.7164735", "0.7097452...
0.7484318
7
Method to construct a Fraction object
def FIMM(YKHO, exwG, Csk6): if type(exwG) != int or type(Csk6) != int: raise ValueError('requires type int') if Csk6 == 0: raise ZeroDivisionError('requires non-zero denominator') YKHO.num = exwG YKHO.denom = Csk6 YKHO.reduce()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *d7pR):\n if len(d7pR) == 2:\n if type(YKHO) in (type(d7pR[0]), type(d7pR[1])):\n if type(YKHO) == type(d7pR[0]) == type(d7pR[1]):\n YKHO.numerator = d7pR[0].numerator * d7pR[1].denominator\n YKHO.denominator = d7pR[0].denominator * d7pR[1].numerato...
[ "0.7901632", "0.7786098", "0.7696744", "0.7402292", "0.73904914", "0.72636247", "0.7200349", "0.7002542", "0.6868905", "0.6861123", "0.6796404", "0.66952467", "0.6583011", "0.65698177", "0.6533053", "0.6511377", "0.6495087", "0.6458756", "0.64302367", "0.64014834", "0.63651",...
0.7033577
7
Returns a string representation of the fraction object (self)
def zAg0(YKHO): return str(YKHO.num) + '/' + str(YKHO.denom)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO) -> str:\n return str(YKHO._numerator) + '/' + str(YKHO._denominator)", "def wHJl(YKHO):\n return '%s/%s' % (YKHO.numerator, YKHO.denominator)", "def wHJl(YKHO):\n return str(YKHO.numerator) + '/' + str(YKHO.denominator)", "def zAg0(YKHO):\n if YKHO.denominator == 1:\n str = ...
[ "0.83075756", "0.80808526", "0.7942937", "0.7827898", "0.7768366", "0.7708409", "0.760703", "0.76025724", "0.753252", "0.7486484", "0.74396133", "0.7428725", "0.7073817", "0.68771744", "0.68412226", "0.6716249", "0.67055494", "0.6670884", "0.6598366", "0.6540925", "0.65391463...
0.7710733
5
Returns new Fraction representing self other
def E_tF(YKHO, Elif): g9xt = YKHO.num * Elif.num B4ns = YKHO.denom * Elif.denom return kteF(g9xt, B4ns)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qjfR(YKHO, Elif):\n Jw7X = Elif\n if type(Elif) is float:\n Jw7X = FBYd(Elif)\n return kteF(YKHO.numerator * Jw7X.denominator - YKHO.denominator * Jw7X.numerator, YKHO.denominator * Jw7X.denominator)", "def FOdN(YKHO, Elif):\n g9xt = YKHO.num * Elif.denom + Elif.num * YKHO.denom\n B4ns ...
[ "0.7831241", "0.75289005", "0.7511988", "0.7479586", "0.7475998", "0.7384123", "0.7350274", "0.733086", "0.7296599", "0.7295542", "0.72864217", "0.7259906", "0.716091", "0.7151089", "0.71311355", "0.7082944", "0.6973155", "0.6969914", "0.69401383", "0.6921401", "0.68968135", ...
0.7491739
3
Return an intermediate color. Fraction can be any rational number, but only the 01 range produces gradients.
def plrN(H5WY, t7N8, oXaw): if oXaw < 0: oXaw = 0 if oXaw >= 1.0: oXaw = 1.0 Sa_m = MYn5(H5WY) Vq3K = MYn5(t7N8) bykQ = Vq3K[0] - Sa_m[0] BWaL = Vq3K[1] - Sa_m[1] CMy4 = Vq3K[2] - Sa_m[2] A3Vt = Sa_m[0] + bykQ * oXaw yvY1 = Sa_m[1] + BWaL * oXaw tjUW = Sa_m[2] + C...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M9fH(YKHO, FGW3):\n Mkmy = YKHO.r / FGW3\n Oa1e = YKHO.g / FGW3\n Fg_i = YKHO.b / FGW3\n return HRmL(Mkmy, Oa1e, Fg_i)", "def KGGj(YKHO, FGW3):\n if FGW3 >= 0:\n U5bT = gtI8.hsv_to_rgb(0, 0, 1 - abs(FGW3 / YKHO.maxp))\n else:\n U5bT = gtI8.hsv_to_rgb(0, abs(FGW3 / YKHO.maxn), ...
[ "0.5833291", "0.5552239", "0.53860223", "0.53849834", "0.53825516", "0.5352407", "0.53093183", "0.52881867", "0.52496135", "0.52286565", "0.5213995", "0.5176316", "0.5176063", "0.5169203", "0.51677614", "0.51584524", "0.51574683", "0.5100809", "0.5077907", "0.50718504", "0.50...
0.68814224
0
Test the basic funcitonality of the Product's models.
def E93z(YKHO): YKHO.assertEqual(YKHO.cat1.name, 'meat') YKHO.assertEqual(YKHO.cat1.slug, 'meat') YKHO.assertEqual(YKHO.cat1.description, 'The meat category.') YKHO.assertIsNone(YKHO.cat1.parent) YKHO.assertEqual(len(YKHO.product1.categories.all()), 1) YKHO.assertEqual(YKHO.product1.categories.a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PSBn(YKHO):\n YKHO.assertEquals(YKHO.prod_1.pk, 1)\n YKHO.assertEquals(YKHO.prod_1.ean, '3350033118072')\n YKHO.assertEquals(YKHO.prod_1.name, 'test 1')\n YKHO.assertEquals(YKHO.prod_1.nutriscore, 'u')\n YKHO.assertEquals(YKHO.prod_1.category, 'cat 1')", "def aeVF(YKHO):\n YKHO.assertEqual(...
[ "0.7642455", "0.7505372", "0.74464047", "0.72802496", "0.71165633", "0.7100682", "0.70702803", "0.7066337", "0.6856038", "0.6855514", "0.6820375", "0.6761214", "0.67492986", "0.6743371", "0.6724428", "0.671036", "0.66997254", "0.6699382", "0.6658594", "0.6651892", "0.6651892"...
0.66491926
30
Test various helper methods of the Product model.
def NLQl(YKHO): Yw_3 = YKHO.product1.get_all_images() YKHO.assertGreater(len(Yw_3), 0, 'Image list is empty') YKHO.assertEqual(len(Yw_3), 2) YKHO.assertIn(YKHO.another_product_image, Yw_3) YKHO.assertIn(YKHO.prod_img, Yw_3) YKHO.assertEqual(len(YKHO.product2.get_all_images()), 0) Yw_3 = YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aeVF(YKHO):\n YKHO.assertEqual(YKHO.test_product.name, YKHO.test_product_name)\n YKHO.assertEqual(YKHO.test_product.price, YKHO.test_product_price)", "def PSBn(YKHO):\n YKHO.assertEquals(YKHO.prod_1.pk, 1)\n YKHO.assertEquals(YKHO.prod_1.ean, '3350033118072')\n YKHO.assertEquals(YKHO.prod_1.na...
[ "0.80607295", "0.7791203", "0.73878694", "0.735065", "0.7333988", "0.72442627", "0.7178971", "0.7140733", "0.70073634", "0.7001393", "0.6985354", "0.6983885", "0.6983885", "0.6983885", "0.6983885", "0.6983885", "0.6983885", "0.6983885", "0.6983885", "0.6983885", "0.6983885", ...
0.73489344
4
Attach the model to GPUs
def Mdze(YKHO, EpYW): if hasattr(YKHO, 'agent'): YKHO.agent.attachToGPUs(EpYW) if hasattr(YKHO, 'mutate') and YKHO.mutate: YKHO.mutate.attachToGPUs(EpYW) if hasattr(YKHO, 'crover') and YKHO.crover: YKHO.crover.attachToGPUs(EpYW) YKHO.gpus = EpYW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iVHi(YKHO):\n if YKHO.device_ids is not None and len(YKHO.device_ids) > 1:\n if not isinstance(YKHO.model, ht2j.nn.DataParallel):\n YKHO.model = ht2j.nn.DataParallel(YKHO.model, YKHO.device_ids)\n YKHO.model = YKHO.model.to(YKHO.device)\n YKHO.criterion = YKHO.criterion.to(YKHO.devic...
[ "0.6876537", "0.65696925", "0.6548642", "0.6482636", "0.64282715", "0.64139986", "0.62929046", "0.62711996", "0.6268525", "0.62641346", "0.6253802", "0.6249486", "0.6166706", "0.61333823", "0.6132139", "0.61159354", "0.6101927", "0.6034017", "0.6034017", "0.60139996", "0.6007...
0.66027933
1
Returns the current state of the agent Returns torch.nn.Module The current state of the agent
def LClM(YKHO): return _qLf(YKHO.agent.state_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OCvi(YKHO):\n return YKHO.world_state", "def ja6o(YKHO):\n return YKHO.env.sim.get_state()", "def YWSi(YKHO):\n return YKHO.__agent", "def Co6P(YKHO):\n return YKHO.data.agentStates[0].copy()", "def ja6o(YKHO):\n return list(Yrqk.mod_state_optimizer_state_get(YKHO._modpt))", "def YWSi(...
[ "0.71958417", "0.66712666", "0.6558878", "0.6302177", "0.6298521", "0.6172331", "0.6171939", "0.6171939", "0.6171939", "0.60555655", "0.6050613", "0.59588134", "0.59569836", "0.5915228", "0.5879314", "0.58714974", "0.58668995", "0.5850756", "0.58201134", "0.58201134", "0.5820...
0.6041406
11
Sets the id of this CrfItemRpc.
def id(YKHO, id): YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ekm0(YKHO, id):\n YKHO._id = id\n return YKHO.callRemote('setID', id)", "def V_9M(YKHO, id):\n YKHO.data['id'] = id", "def V_9M(YKHO, id):\n YKHO.__id = id", "def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX", "def id(YKHO, id):\n YKHO._id = id", "def id(YKHO, id):\n YKHO._id = id", "de...
[ "0.6911864", "0.6909904", "0.6811842", "0.6787368", "0.66714025", "0.66714025", "0.66714025", "0.66714025", "0.66714025", "0.6631745", "0.6631745", "0.6631745", "0.6631745", "0.6631745", "0.6631745", "0.6631745", "0.6631745", "0.6631745", "0.6631745", "0.6631745", "0.6631745"...
0.0
-1
Sets the study_id of this CrfItemRpc.
def V6BW(YKHO, V6BW): YKHO._study_id = V6BW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KgVA(YKHO, KgVA):\n YKHO.logger.debug(\"In 'study' setter.\")\n YKHO._study = KgVA", "def KVin(YKHO, KVin):\n YKHO._study_code = KVin", "def Y7rP(YKHO, DCKO):\n YKHO._student_id = DCKO", "def t6c9(YKHO, V6BW: int, H5ew: str, BWXx: Any) -> None:\n raise NotImplementedError", "def V_9M(YKH...
[ "0.63807076", "0.59472966", "0.5872104", "0.58435434", "0.5735083", "0.5629751", "0.5616284", "0.55533546", "0.5472447", "0.5427948", "0.53395945", "0.53395945", "0.53333676", "0.52422816", "0.5195198", "0.5140106", "0.5117407", "0.506955", "0.50130934", "0.49262726", "0.4921...
0.77889985
2
Sets the crf_id of this CrfItemRpc.
def jEZ0(YKHO, jEZ0): YKHO._crf_id = jEZ0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SZuP(YKHO, SZuP):\n YKHO._event_crf_id = SZuP", "def wzyv(YKHO, wzyv):\n YKHO._crf_version_id = wzyv", "def wzyv(YKHO, wzyv):\n YKHO._crf_version_id = wzyv", "def ekm0(YKHO, quXY):\n YKHO.id = quXY", "def pXRJ(YKHO, iIih):\n YKHO.__cid = iIih", "def pXRJ(YKHO, iIih):\n YKHO.__cid = ...
[ "0.6356794", "0.6255529", "0.6255529", "0.5820464", "0.57493466", "0.57493466", "0.56965256", "0.56921816", "0.5678255", "0.5638115", "0.55864465", "0.5538089", "0.5516851", "0.5511642", "0.5488604", "0.54884267", "0.54238987", "0.53729045", "0.53578365", "0.53578365", "0.535...
0.7801135
1
Sets the variable_name of this CrfItemRpc.
def M_u8(YKHO, M_u8): YKHO._variable_name = M_u8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tGmI(YKHO, tbkh):\n YKHO._name = tbkh\n return YKHO", "def WZrJ(YKHO, zDRZ):\n YKHO.name = zDRZ", "def iEcC(YKHO, mWFP, d6pt):\n assert d6pt <= YKHO._f.dimensions['num_nod_var']\n YKHO._f.variables['name_nod_var'][d6pt - 1] = b''\n YKHO._f.variables['name_nod_var'][d6pt - 1, :len(mWFP)] =...
[ "0.6548444", "0.62853295", "0.617554", "0.6129973", "0.6129973", "0.6079619", "0.60313314", "0.59095305", "0.59087133", "0.5906855", "0.587623", "0.587623", "0.587623", "0.587623", "0.587623", "0.587623", "0.587623", "0.587623", "0.587623", "0.587623", "0.587623", "0.587623...
0.7012576
1
Sets the ad_lookup_code_by_item_data_type_id of this CrfItemRpc.
def fs4_(YKHO, fs4_): YKHO._ad_lookup_code_by_item_data_type_id = fs4_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Neuf(YKHO, Neuf):\n YKHO._item_data_type = Neuf", "def wile(YKHO, id, Wxnj):\n YKHO.codes[id] = Wxnj", "def rOns(YKHO, ZfUD, YsUp):\n ZfUD.SetType(YsUp)\n YKHO.CalculatePositions()\n YKHO.Refresh()", "def Hmsj(YKHO, Hmsj):\n YKHO._data_type_id = Hmsj", "def o6OS(YKHO, o6OS):\n YKHO...
[ "0.54274464", "0.50521946", "0.4994738", "0.4810951", "0.47869876", "0.4734086", "0.46980342", "0.4626301", "0.45758647", "0.4565225", "0.4557128", "0.4537789", "0.45164058", "0.45164058", "0.45164058", "0.4473355", "0.44600686", "0.44580275", "0.44397393", "0.4434796", "0.44...
0.83074796
0
Sets the data_type_id of this CrfItemRpc.
def Hmsj(YKHO, Hmsj): YKHO._data_type_id = Hmsj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Neuf(YKHO, Neuf):\n YKHO._item_data_type = Neuf", "def Hmsj(YKHO, BWXx: str):\n YKHO._data_type_id = BWXx", "def T48E(sB1G):\n R5T5 = euVB.getDtypeFromContext(sB1G)\n euVB.setDTypeForContext(R5T5)", "def o6OS(YKHO, o6OS):\n YKHO._id_type = o6OS", "def oq00(YKHO, type):\n YKHO.__data_s...
[ "0.72723645", "0.7078575", "0.67569816", "0.66312945", "0.65267724", "0.6373302", "0.6240512", "0.60841703", "0.60716516", "0.60530573", "0.60190254", "0.5869092", "0.57710564", "0.5678447", "0.5678447", "0.5619083", "0.56178635", "0.5606965", "0.55656075", "0.55539507", "0.5...
0.7684608
0
Sets the data_type_string of this CrfItemRpc.
def T2ZJ(YKHO, T2ZJ): YKHO._data_type_string = T2ZJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Neuf(YKHO, Neuf):\n YKHO._item_data_type = Neuf", "def T48E(sB1G):\n R5T5 = euVB.getDtypeFromContext(sB1G)\n euVB.setDTypeForContext(R5T5)", "def type(YKHO, vIwR):\n YKHO._interface.type(vIwR)", "def Hmsj(YKHO, BWXx: str):\n YKHO._data_type_id = BWXx", "def oq00(YKHO, type):\n YKHO.__...
[ "0.71118796", "0.6589961", "0.6464009", "0.6399756", "0.63436127", "0.6314165", "0.6298145", "0.6297469", "0.61214966", "0.6028082", "0.60236156", "0.5888019", "0.58589035", "0.5858658", "0.5836808", "0.57976294", "0.57976294", "0.57624316", "0.5760694", "0.56875175", "0.5657...
0.83396924
0
Sets the label_plain_text of this CrfItemRpc.
def xDV2(YKHO, xDV2): YKHO._label_plain_text = xDV2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mLog(YKHO, l5Ny):\n if l5Ny:\n YKHO.label.set_label(l5Ny)", "def mLog(YKHO, l5Ny: str) -> None:\n YKHO._label_text.set(l5Ny)\n YKHO.update_label_text()", "def NCMF(YKHO, l5Ny):\n YKHO._label = l5Ny", "def KfYz(YKHO, l5Ny):\n assert YKHO.isLabel(l5Ny)\n YKHO._text = l5Ny", "def ...
[ "0.6851019", "0.68392956", "0.6787444", "0.66226286", "0.65382075", "0.6460145", "0.62413436", "0.6084049", "0.60085934", "0.59952736", "0.59930325", "0.59860396", "0.59771776", "0.59534377", "0.59521174", "0.59521174", "0.5931614", "0.58719736", "0.58561003", "0.5852327", "0...
0.81519586
1
Sets the rc_oid of this CrfItemRpc.
def KW35(YKHO, KW35): YKHO._rc_oid = KW35
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ys88(YKHO, ys88):\n YKHO._crf_version_oid = ys88", "def pXRJ(YKHO, iIih):\n YKHO.__cid = iIih", "def pXRJ(YKHO, iIih):\n YKHO.__cid = iIih", "def U6yv(YKHO, U6yv):\n YKHO._iccid = U6yv", "def jEZ0(YKHO, jEZ0):\n YKHO._crf_id = jEZ0", "def jEZ0(YKHO, jEZ0):\n YKHO._crf_id = jEZ0", ...
[ "0.6007159", "0.5636485", "0.5636485", "0.56305575", "0.55835646", "0.55835646", "0.55415916", "0.5469513", "0.52852285", "0.5249084", "0.5214636", "0.511817", "0.5108705", "0.5076036", "0.5056598", "0.50301063", "0.5027331", "0.5007495", "0.49467227", "0.491437", "0.48587614...
0.79975885
0
Sets the default_value of this CrfItemRpc.
def HyJ9(YKHO, HyJ9): YKHO._default_value = HyJ9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WmM4(YKHO, WmM4):\n YKHO._set_field('value', WmM4)", "def UXGE(YKHO):\n YKHO.setValue(YKHO.default_value)", "def HyJ9(YKHO, BWXx: Any) -> None:\n YKHO.sdc_resource.set_input_default_value(YKHO, BWXx)\n YKHO._default_value = BWXx", "def WmM4(YKHO, BWXx):\n YKHO._default = BWXx\n return",...
[ "0.71896154", "0.70259583", "0.7019124", "0.69738114", "0.6879283", "0.67939246", "0.67191625", "0.6638264", "0.66231376", "0.65814316", "0.65693367", "0.65622616", "0.65382713", "0.64609945", "0.64391345", "0.64168626", "0.6411277", "0.6378181", "0.6378181", "0.62938476", "0...
0.7148724
3
Sets the left_alignment of this CrfItemRpc.
def EMoC(YKHO, EMoC): YKHO._left_alignment = EMoC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bFb7(YKHO, LFlW):\n YKHO.left = LFlW", "def LFlW(YKHO, LFlW):\n YKHO._left = LFlW", "def LFlW(YKHO, LFlW):\n YKHO._left = LFlW", "def Y4Jf(YKHO, *qIxc, **B2fa):\n pass", "def VbzC(YKHO, vC9B):\n YKHO.alignment = vC9B", "def pf6j(YKHO, pf6j=10):\n if not 0 <= pf6j <= 65535 or type(pf...
[ "0.66617054", "0.65751326", "0.65751326", "0.650113", "0.6469978", "0.6222979", "0.6205633", "0.6200068", "0.616866", "0.60980946", "0.6025313", "0.5990549", "0.5952081", "0.5935559", "0.58997107", "0.5855069", "0.5841286", "0.5817101", "0.5790614", "0.5765689", "0.57304657",...
0.8502322
1
Sets the soft_validation of this CrfItemRpc.
def b_st(YKHO, b_st): YKHO._soft_validation = b_st
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dfVZ(YKHO, deVW):\n YKHO._valid = deVW", "def dfVZ(YKHO, deVW):\n YKHO._valid = deVW", "def EMtR(YKHO):\n YKHO.valid = True", "def ehcZ(YKHO):\n YKHO.is_validation = ZylS.placeholder_with_default(False, [], 'is_validation')", "def set(YKHO, _J6_):\n YKHO._val = _J6_", "def TvxA(YKHO, W...
[ "0.5569359", "0.5569359", "0.5355849", "0.51938117", "0.47854725", "0.47718513", "0.4768643", "0.47646073", "0.47646073", "0.47646073", "0.47646073", "0.4745074", "0.47241434", "0.46101728", "0.45964906", "0.45442423", "0.4537055", "0.4537055", "0.45145965", "0.44930062", "0....
0.8213891
1
Sets the calc_field_equation of this CrfItemRpc.
def tQWC(YKHO, tQWC): YKHO._calc_field_equation = tQWC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KjR8(YKHO, JSKu):\n YKHO.calc_diff_eqn = JSKu", "def I3gs(YKHO, Jyyj):\n YKHO.calc_level = min(YKHO.calc_level, PxDa - 1)\n return YKHO.solenoid.setCathodeField(Jyyj)", "def lADG(YKHO, aotE=None, pmsH=None):\n aotE = YKHO.getnodenamed(aotE)\n tgT5.SetNodeEquation_bn.argtypes = [ojiJ, TO1V]\n...
[ "0.5986817", "0.54941064", "0.5185355", "0.51526856", "0.51470023", "0.5018794", "0.4937843", "0.49082237", "0.48269215", "0.47911897", "0.47718498", "0.47511774", "0.46386972", "0.45983073", "0.45698503", "0.4542221", "0.45315984", "0.44926414", "0.44925195", "0.44865978", "...
0.8604317
1
Sets the group_id of this CrfItemRpc.
def hE03(YKHO, hE03): YKHO._group_id = hE03
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def scR9(YKHO, uOe2):\n YKHO._group = uOe2", "def scR9(YKHO, uOe2: str) -> None:\n YKHO.group = uOe2", "def hE03(YKHO, hE03: int):\n if hE03 is None:\n raise ValueError('Invalid value for `group_id`, must not be `None`')\n YKHO._group_id = hE03", "def hE03(YKHO, hE03):\n if hE03 is not ...
[ "0.70160383", "0.69628024", "0.6946824", "0.6810983", "0.6760174", "0.67245066", "0.67065126", "0.6705655", "0.66906995", "0.66906995", "0.66906995", "0.664391", "0.65100795", "0.64564383", "0.6456075", "0.6305166", "0.62262404", "0.62043995", "0.6168643", "0.6094413", "0.609...
0.77553326
5
Sets the item_form_metadata_id of this CrfItemRpc.
def BFKs(YKHO, BFKs): YKHO._item_form_metadata_id = BFKs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T3ct(YKHO, T3ct):\n YKHO._item_metadata_oid = T3ct", "def _gHB(YKHO, _gHB):\n YKHO._form_id = _gHB", "def rlNY(YKHO, rlNY):\n YKHO._content_metadata_id = rlNY", "def GuW9(YKHO, TY0P, yIVm):\n pmON = 'item/' + TY0P + '/metadata'\n YEnM = G4JS.put(YKHO.urlBase + pmON, params={'token': YKHO.t...
[ "0.6074369", "0.58157575", "0.533627", "0.52323186", "0.5148497", "0.5148497", "0.5148497", "0.5114203", "0.5043071", "0.5022942", "0.5022942", "0.50081176", "0.5005859", "0.49673423", "0.49554864", "0.4884898", "0.4878688", "0.48538136", "0.48457968", "0.48377246", "0.478013...
0.84816015
0
Sets the measurement_unit of this CrfItemRpc.
def UnF5(YKHO, UnF5): YKHO._measurement_unit = UnF5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Htgf(YKHO, Htgf):\n YKHO._measurement_unit_string = Htgf", "def Giyk(YKHO, PXGI):\n YKHO.unit = PXGI", "def Pa0r(YKHO, Pa0r):\n YKHO._measurement_unit_name = Pa0r", "def PXGI(YKHO, PXGI):\n if PXGI is None:\n raise ValueError('Invalid value for `unit`, must not be `None`')\n YKHO._u...
[ "0.6934508", "0.68823713", "0.653158", "0.63187003", "0.6187228", "0.6078049", "0.6078049", "0.606968", "0.6032217", "0.5872297", "0.58709675", "0.5853942", "0.5847092", "0.57580173", "0.56787544", "0.5669761", "0.5668834", "0.56567985", "0.5651917", "0.5651917", "0.5651917",...
0.7638329
0
Sets the measurement_unit_string of this CrfItemRpc.
def Htgf(YKHO, Htgf): YKHO._measurement_unit_string = Htgf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UnF5(YKHO, UnF5):\n YKHO._measurement_unit = UnF5", "def Pa0r(YKHO, Pa0r):\n YKHO._measurement_unit_name = Pa0r", "def Giyk(YKHO, PXGI):\n YKHO.unit = PXGI", "def PXGI(YKHO, vQCx, mJaN):\n YKHO.units[vQCx] = mJaN\n return YKHO", "def Giyk(YKHO, d2X0, J6My):\n raise Bx6I.UnitError(f'Ca...
[ "0.69342524", "0.6766529", "0.618177", "0.5950563", "0.5881299", "0.5649154", "0.5590759", "0.55730164", "0.55730164", "0.55730164", "0.54654497", "0.54591984", "0.54122525", "0.5395756", "0.5375829", "0.5375829", "0.5371614", "0.53650004", "0.5358523", "0.5346713", "0.530544...
0.8108998
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, wVa1): return False return YKHO.to_dict() == Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, wVa1): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", ...
0.0
-1
Resets game stats for a user.
def m8z6(YKHO, QePW): CBIr = FMoS.validate_user(QePW.user.id) if CBIr is None: return jnRN({'message': 'Invalid credentials.'}, status=400) try: TBsA = QePW.POST.dict() TgRR = TBsA['game'].lower() if TgRR == 'all': eN17 = [Oa1e.name for Oa1e in _apf] else:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r0Qt(YKHO, CBIr):\n YKHO.set_user_module_score(CBIr, None, None)", "def BJld(YKHO):\n print('Reseting stats')\n YKHO.player_lives = YKHO.ai_stts.player_lives\n YKHO.score = 0\n YKHO.level = 1", "def BJld(YKHO):\n YKHO.lives_left = YKHO.game_settings.lives\n YKHO.score = 0\n YKHO.lev...
[ "0.73424584", "0.7254314", "0.7055046", "0.6924792", "0.69240695", "0.69219595", "0.68962747", "0.68628097", "0.6854392", "0.6842977", "0.67965555", "0.67965555", "0.6786569", "0.675496", "0.6624978", "0.65335876", "0.65319127", "0.64257956", "0.6368572", "0.6346359", "0.6346...
0.0
-1
Retrieves a scoreboard from the database for all users.
def NMoC(YKHO, QePW): l633 = QePW.GET.dict() CBIr = FMoS.validate_user(QePW.user.id) if CBIr is None: return jnRN({'message': 'Invalid credentials.'}, status=400) if CBIr is None: return jnRN({'message': 'Invalid credentials.'}, status=400) try: BH3N = _apf.value_of(l633['gam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rFRb(YKHO):\n N1p7 = YKHO._connection.cursor()\n N1p7.execute('SELECT * FROM scores ORDER BY level')\n JBss = N1p7.fetchall()\n return JBss", "def t5On(YKHO, QePW):\n CBIr = mv1M.query(mv1M.name == QePW.user_name).get()\n if not CBIr:\n raise wnQ_.NotFoundException('A User with that ...
[ "0.68092585", "0.64024997", "0.64024997", "0.6362251", "0.6313973", "0.6241851", "0.60268027", "0.60023355", "0.5988399", "0.5982592", "0.5973822", "0.5959069", "0.5931531", "0.5922311", "0.59027916", "0.5896153", "0.58547866", "0.5821343", "0.5743743", "0.56955147", "0.56940...
0.5977742
10
Function that returns an array of dicitionaries that contain hourly precipitation.
def kq9B(YKHO, peBr): nxS9 = YKHO.getHourlyWeatherFromCSV(peBr, 'f', 'precipitation') yRzZ = [] OrBu = {} for nPrm in nxS9: OrBu['x'] = YKHO.helper.getDateInEpoch(nPrm['date']) OrBu['y'] = float(nPrm['precipitation'][:-1]) / 100 yRzZ.append(OrBu) OrBu = {} return yRzZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Oo51(YKHO):\n oBkD = [0 for YRbF in range(24)]\n for YRbF in range(YKHO.dataset.shape[0]):\n hUoD = ITS7.localtime(oyIN.int32(YKHO.dataset[YRbF][2]))\n s6G1 = hUoD[3]\n oBkD[s6G1] += 1\n return oBkD", "def VuPh(xLSl: Dict) -> x1iM[cuzp]:\n uDvo = ['Kd', 'Km', 'Kq']\n NaDD ...
[ "0.6463559", "0.613909", "0.6093991", "0.6042487", "0.5925016", "0.59128934", "0.5906665", "0.58405197", "0.5784834", "0.57635444", "0.57629764", "0.57609385", "0.57319915", "0.5725505", "0.5692133", "0.5651405", "0.5644695", "0.56426203", "0.56286174", "0.56097394", "0.55815...
0.6634811
0
Function that returns an array of dicitionaries that contain hourly humidity.
def gkb9(YKHO, peBr): nxS9 = YKHO.getHourlyWeatherFromCSV(peBr, 'f', 'humidity') c3h6 = [] fbvf = {} for nPrm in nxS9: fbvf['x'] = YKHO.helper.getDateInEpoch(nPrm['date']) fbvf['y'] = float(nPrm['humidity'][:-1]) / 100 c3h6.append(fbvf) fbvf = {} return c3h6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Oo51(YKHO):\n oBkD = [0 for YRbF in range(24)]\n for YRbF in range(YKHO.dataset.shape[0]):\n hUoD = ITS7.localtime(oyIN.int32(YKHO.dataset[YRbF][2]))\n s6G1 = hUoD[3]\n oBkD[s6G1] += 1\n return oBkD", "def DVV5():\n hM_e = dy_x(Rci7.get('zakopane', ''))\n gw1g = hM_e.get_h...
[ "0.69876075", "0.6550981", "0.6545936", "0.64920527", "0.6491686", "0.6342034", "0.6323228", "0.621158", "0.6209409", "0.61248916", "0.6116892", "0.6090638", "0.6089367", "0.58852756", "0.5849867", "0.58365566", "0.58288854", "0.5820347", "0.57117563", "0.57063645", "0.567520...
0.7200092
0
called by the UserPassesTestMixin to verify the user has permissions to use this view
def Iw6c(YKHO): YKHO.rol_nu, YKHO.functie_nu = sznc(YKHO.request) return YKHO.rol_nu == zDcu.ROL_RKO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KKMP(YKHO, CBIr):\n return True", "def xiUU(YKHO) -> None:\n YKHO.assertTrue(YKHO.action.should_render(context=YKHO._create_request_context(user=YKHO.create_user())))", "def Iw6c(YKHO):\n return YKHO.request.user.has_permission('core.view_staffer')", "def qHTF(YKHO, QePW, tTee):\n return True...
[ "0.7965206", "0.76659435", "0.76298976", "0.7598314", "0.75752974", "0.75072837", "0.74036145", "0.7306036", "0.7242765", "0.7231282", "0.7213383", "0.71765584", "0.71753776", "0.7168052", "0.71354675", "0.71217483", "0.7111363", "0.70701325", "0.7055857", "0.7005347", "0.699...
0.0
-1
Create an Nbin discrete colormap from the specified input map
def HX90(ywwl, j9kp=None): P8oC = QrM1.cm.get_cmap(j9kp) F4JO = P8oC(oyIN.linspace(0, 1, ywwl)) em8M = P8oC.name + str(ywwl) return P8oC.from_list(em8M, F4JO, ywwl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HX90(ywwl, j9kp=None):\n P8oC = QrM1.get_cmap(j9kp)\n F4JO = P8oC(oyIN.linspace(0, 1, ywwl))\n em8M = P8oC.name + str(ywwl)\n return P8oC.from_list(em8M, F4JO, ywwl)", "def HX90(ywwl, j9kp=None):\n P8oC = QrM1.cm.get_cmap(j9kp)\n F4JO = P8oC(oyIN.linspace(0, 1, ywwl))\n em8M = P8oC.name ...
[ "0.7242805", "0.71656674", "0.68781185", "0.68781185", "0.68781185", "0.6861819", "0.6861819", "0.6861819", "0.6861819", "0.6861682", "0.6854892", "0.684856", "0.67342144", "0.66580445", "0.6597808", "0.65941465", "0.65885794", "0.6582792", "0.6508348", "0.64398456", "0.64053...
0.6901114
2
Reutrn square magnitude of distance between two vectors using cubic periodic boundry conditions
def I3zU(j1X4, piRa, VaBp): y27J = bWI1(j1X4, piRa, VaBp) nAAB = oyIN.dot(y27J, y27J) return nAAB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ayfi(hQHm, jlSq):\n return YXbZ(*wncN(jlSq, hQHm))", "def Q1Zj(YKHO, lSjb, v8Fa):\n return PZyS(sum([(float(hQHm) - float(jlSq)) ** 2 for hQHm, jlSq in zip(lSjb, v8Fa)]))", "def pImw(hQHm: vect2d, jlSq: vect2d) -> float:\n Csk6 = ((jlSq.x - hQHm.x) ** 2 + (jlSq.y - hQHm.y) ** 2) ** 0.5\n return...
[ "0.7170656", "0.69511014", "0.67425454", "0.6718942", "0.66979134", "0.6645551", "0.6612918", "0.65757054", "0.6573481", "0.6559422", "0.65465415", "0.65376735", "0.6466167", "0.64429617", "0.6439637", "0.642974", "0.64206535", "0.6398421", "0.63980985", "0.6396248", "0.63950...
0.0
-1
Get the object as a dictionary for backwards compatibility. This method does not make a deep copy of the objects.
def _fYl(YKHO, H5ew: str, nSMW=ht2j.Tensor, yDqo=None) -> dict: if nSMW not in (ht2j.Tensor, oyIN.ndarray): raise ValueError(f'output_type must be torch.Tensor or np.ndarray, got {nSMW}.') return {H5ew: YKHO.get_array(output_type=nSMW, dtype=yDqo), vtG7.meta(H5ew): YKHO.meta, vtG7.transforms(H5ew): YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dict(YKHO):\n return WL7B(YKHO)", "def f_A6(YKHO):\n return dict()", "def MNRr(YKHO) -> dict:\n return YKHO.__dict__.copy()", "def U1Nh(YKHO):\n Aofo = {'Object': True}\n for H5ew in YKHO.__dict__:\n if isinstance(YKHO.__dict__[H5ew], xBeT):\n Aofo[H5ew] = YKHO.__dict__[H...
[ "0.80097765", "0.78671485", "0.78469497", "0.7836796", "0.77461374", "0.7720491", "0.76937306", "0.76652414", "0.7660919", "0.75706804", "0.754214", "0.75160575", "0.74929184", "0.7490038", "0.7486664", "0.74120426", "0.7409967", "0.7409967", "0.7409967", "0.7409967", "0.7409...
0.0
-1
Get the affine. Defaults to ``torch.eye(4, dtype=torch.float64)``
def rnv5(YKHO) -> ht2j.Tensor: return YKHO.meta.get(_syk.AFFINE, YKHO.get_default_affine())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rnv5(YKHO):\n return YKHO._affine", "def rnv5(YKHO):\n return YKHO._affine", "def VKM_(YKHO) -> oyIN.ndarray:\n return YKHO._forward_link._inverse_tf_matrix", "def VKM_(YKHO) -> oyIN.ndarray:\n return YKHO._tf_matrix", "def _E99(YKHO):\n return y6O1(1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0...
[ "0.73244977", "0.73244977", "0.7034071", "0.6716834", "0.6285688", "0.61694545", "0.60546416", "0.6044253", "0.6030682", "0.60299814", "0.60090077", "0.5996965", "0.5986905", "0.5977513", "0.5952649", "0.58663064", "0.5840154", "0.5812988", "0.57664084", "0.5730047", "0.56989...
0.8271803
0
Get the currently expected spatial shape as if all the pending operations are executed. For tensors that have more than 3 spatial dimensions, only the shapes of the top 3 dimensions will be returned.
def Zm1x(YKHO): Ylbp = None if YKHO.pending_operations: Ylbp = YKHO.pending_operations[-1].get(xOAB.SHAPE, None) return tuple(HXuo(YKHO.shape, wrap_sequence=True).tolist()[1:]) if Ylbp is None else Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ROpF(YKHO) -> h8nf[tuple]:\n return YKHO._shape", "def ROpF(YKHO):\n for UksD in ('x', 'y', 'z', 'r', 't'):\n ezWE = getattr(YKHO, UksD)\n if ezWE is not None:\n return ezWE.shape\n return ()", "def kbUw(vhpA):\n return vhpA.get_shape().as_list()", "def o7eb(YKHO):\n ...
[ "0.65158755", "0.6501008", "0.63225687", "0.62908447", "0.6276678", "0.6248002", "0.6236132", "0.619782", "0.6171303", "0.61683255", "0.6165676", "0.6165676", "0.61600304", "0.61270195", "0.61270195", "0.6123402", "0.611571", "0.6104924", "0.6095529", "0.60923743", "0.6088928...
0.76483154
0
Returns a copy of the MetaTensor instance.
def i3ak(YKHO, **B2fa): zZYk = RAVs(YKHO.as_tensor().clone(**B2fa)) zZYk.__dict__ = _qLf(YKHO.__dict__) return zZYk
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO, **B2fa):\n return llWB(YKHO.data, **B2fa)", "def jth9(YKHO) -> 'SampleMetadata':\n return type(YKHO)(samples=YKHO.__internal_samples.copy(), axis=0, metadata=YKHO.metadata, name=YKHO.name)", "def ih8o(YKHO):\n Aofo = reUQ([])\n Aofo._tensor = YKHO._tensor\n Aofo.ptype = YKHO.ptype...
[ "0.7466796", "0.6973937", "0.68706995", "0.68373454", "0.6730053", "0.6699722", "0.63855034", "0.62816685", "0.6239763", "0.6237276", "0.6225124", "0.6209906", "0.61651164", "0.61292535", "0.60899", "0.6055746", "0.6036911", "0.6025888", "0.6019292", "0.6019292", "0.5975815",...
0.7911877
0
Invokes the patch function code.
def iyvc(YKHO, eJh7, *qIxc, **B2fa): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Po4F(YKHO, *qIxc, **B2fa):\n return YKHO.handle_patch_request()", "def Po4F(YKHO, *qIxc, **B2fa):\n YKHO.request('patch', *qIxc, **B2fa)", "def u3_X():\n A2P3('package_to_be_patched.foobar.target_function2', RuhK)", "def quGx(P4t4, pmON, **B2fa) -> lm55:\n return f3q3(P4t4, 'PATCH', pmON, **B...
[ "0.7181833", "0.6972852", "0.69465077", "0.69131327", "0.67479265", "0.6711913", "0.6524039", "0.6466874", "0.64268315", "0.6370807", "0.6356285", "0.6292822", "0.62594974", "0.6226834", "0.62267226", "0.6209166", "0.620355", "0.6179677", "0.61324805", "0.61216265", "0.605775...
0.59173274
24
Return a list of mats that do not contain K4.
def RMU7(kcYq, exwG): khU1 = list(Hs6x.combinations([YRbF for YRbF in range(exwG)], 4)) Zc0b = [list(Hs6x.combinations(N2Og, 2)) for N2Og in khU1] iolo = [] for PziD in kcYq: I1mm = 0 for ZMlM in Zc0b: if sum([PziD[YJko[0]][YJko[1]] for YJko in ZMlM]) == 6: I1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VOaG(cuiw, oyg0):\n Z92s = set(cuiw.taken.keys())\n for ZDAZ in cuiw.exclusives:\n if oyg0.sets.intersection(ZDAZ):\n Z92s.update(ZDAZ)\n return [KCHu for KCHu in cuiw.sets if KCHu not in Z92s]", "def ETF3(Sei_):\n cz7L = mJw7(Sei_)\n jyVw = PrLR(Sei_)\n v3uw = {}\n for...
[ "0.60540164", "0.60038203", "0.60009027", "0.5851803", "0.5758202", "0.567645", "0.56455743", "0.5608117", "0.5584816", "0.5528558", "0.5528176", "0.54567647", "0.5434467", "0.5423819", "0.54065424", "0.539741", "0.53750074", "0.53735214", "0.53254944", "0.53253543", "0.53239...
0.54695964
11
Generate a single batch from the current cursor position in the data.
def ZQUf(YKHO): Wc9F = oyIN.zeros(shape=(YKHO._batch_size, bV1g), dtype=oyIN.float) for Fg_i in range(YKHO._batch_size): Wc9F[Fg_i, iOM2(YKHO._text[YKHO._cursor[Fg_i]])] = 1.0 YKHO._cursor[Fg_i] = (YKHO._cursor[Fg_i] + 1) % YKHO._text_size return Wc9F
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZQUf(YKHO):\n Wc9F = oyIN.zeros(shape=(YKHO._batch_size, bV1g), dtype=oyIN.float)\n for Fg_i in range(YKHO._batch_size):\n Wc9F[Fg_i, iOM2(YKHO._text[YKHO._cursor[Fg_i]])] = 1.0\n YKHO._cursor[Fg_i] = (YKHO._cursor[Fg_i] + 1) % YKHO._text_size\n return Wc9F", "def ZQUf(YKHO):\n Wc9F...
[ "0.66667616", "0.66667616", "0.6660024", "0.65867865", "0.658619", "0.65626955", "0.6516139", "0.64412314", "0.64412314", "0.63997316", "0.63963693", "0.6388216", "0.6380586", "0.6371006", "0.6334705", "0.63271517", "0.6289895", "0.6276686", "0.6248467", "0.6226875", "0.62233...
0.67493474
0
Turn a 1hot encoding or a probability distribution over the possible characters back into its (most likely) character representation.
def SIyd(WErR): return [n_cI(Z9rn) for Z9rn in oyIN.argmax(WErR, 1)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HxvO(YKHO, UMda):\n WnI7 = [oyIN.where(Mkmy == 1)[0][0] for Mkmy in UMda]\n KCkV = YKHO.int_to_char(WnI7)\n return KCkV", "def pIdT(YKHO, UMda):\n WnI7 = [oyIN.where(Mkmy == 1)[0][0] for Mkmy in UMda]\n JhNv = YKHO.int_to_char(WnI7)\n S6jZ = ''.join(JhNv)\n return S6jZ", "def dPWx(YKHO...
[ "0.7793053", "0.73569626", "0.72267234", "0.71690375", "0.7035013", "0.6954102", "0.6875", "0.6755982", "0.6725703", "0.67028934", "0.6617573", "0.65835214", "0.64702904", "0.64271295", "0.64073384", "0.6341615", "0.6338018", "0.6328194", "0.63187355", "0.6297755", "0.6252730...
0.58290714
48
Sample one element from a distribution assumed to be an array of normalized probabilities.
def OSdm(IZxK): Mkmy = tuKI.uniform(0, 1) KCHu = 0 for YRbF in range(len(IZxK)): KCHu += IZxK[YRbF] if KCHu >= Mkmy: return YRbF return len(IZxK) - 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dfyx(YKHO):\n WKvO = YKHO.dist.sample(1)\n return WKvO", "def mvm2(YKHO, WErR):\n return YKHO.sample_bernoulli(WErR)", "def mvm2(BFeB):\n BFeB = BFeB / BFeB.sum()\n return oyIN.random.choice(oyIN.arange(len(BFeB)), p=BFeB.flatten())", "def wL7C(WKvO):\n return oyIN.random.choice(WKvO)",...
[ "0.7231382", "0.69920933", "0.686515", "0.6848672", "0.6785502", "0.6785502", "0.6785502", "0.65051377", "0.6477911", "0.6473931", "0.64216405", "0.64014477", "0.6375856", "0.63238806", "0.6275407", "0.6253217", "0.6243228", "0.6218153", "0.6218153", "0.62175065", "0.6217285"...
0.57278574
81
Turn a (column) prediction into 1hot encoded samples.
def mvm2(o3Uj): XP5J = oyIN.zeros(shape=[1, bV1g], dtype=oyIN.float) XP5J[0, OSdm(o3Uj[0])] = 1.0 return XP5J
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mQin(jzdc):\n jzdc = jzdc[:, 0]\n jzdc = jzdc.astype(int)\n k0lF = oyIN.zeros((len(jzdc), GPtr.num_classes))\n k0lF[oyIN.arange(len(jzdc)), jzdc] = 1\n return k0lF", "def zGX0(jQ3Z, fvDH):\n return rLdf.get_dummies(jQ3Z, columns=[fvDH], drop_first=True)", "def xiBs(iVRZ):\n MnDN = nu0g...
[ "0.7741421", "0.77376133", "0.77311134", "0.7605853", "0.7539538", "0.7496446", "0.7495923", "0.74907154", "0.74843967", "0.7442956", "0.7310723", "0.7310169", "0.7302923", "0.72990006", "0.72776663", "0.72555137", "0.72271734", "0.7222733", "0.72105426", "0.7184412", "0.7152...
0.0
-1
Generate a random column of probabilities.
def DhET(): Fg_i = oyIN.random.uniform(0.0, 1.0, size=[1, bV1g]) return Fg_i / oyIN.sum(Fg_i, 1)[:, None]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mvm2(YKHO, WErR):\n return YKHO.sample_bernoulli(WErR)", "def mvm2(BFeB):\n BFeB = BFeB / BFeB.sum()\n return oyIN.random.choice(oyIN.arange(len(BFeB)), p=BFeB.flatten())", "def DhET():\n Fg_i = oyIN.random.uniform(0.0, 1.0, size=[1, bV1g])\n return Fg_i / oyIN.sum(Fg_i, 1)[:, None]", "def...
[ "0.6374406", "0.6367189", "0.62448347", "0.62448347", "0.6099934", "0.60623235", "0.6043567", "0.6032514", "0.60292464", "0.6012624", "0.5984736", "0.59398454", "0.59206384", "0.58835787", "0.5838801", "0.5838801", "0.5836376", "0.57978", "0.5753392", "0.57325506", "0.5689183...
0.621208
4
Asks user to specify a city, month, and day to analyze.
def RxGd(): print("Hello! Let's explore some US bikeshare data!\n") j5sA = () akm7 = ['chicago', 'new york city', 'washington'] while j5sA == (): Vvdx = input('\nFor which city would you like to view data: Chicago, New York City, or Washington?\n').lower() while Vvdx not in akm7: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NoUH(j5sA, x0eS, CjKC):\n print('The city you have entered is: ', j5sA)\n print('The month you have entered is: ', x0eS)\n print('The day you have entered is: ', CjKC)", "def RxGd():\n j5sA = None\n x0eS = None\n CjKC = None\n while CjKC == None:\n j5sA = input('Please enter a cit...
[ "0.667024", "0.65349954", "0.6459213", "0.6374199", "0.63475233", "0.6309238", "0.6286008", "0.625863", "0.62317747", "0.6213412", "0.6204763", "0.61802983", "0.6172001", "0.6167731", "0.61582506", "0.6157104", "0.61433566", "0.6129859", "0.6104191", "0.6102047", "0.609084", ...
0.61526835
16
Loads data for the specified city and filters by month and day if applicable.
def UlWi(j5sA, x0eS, CjKC): jQ3Z = rLdf.read_csv(OerS[j5sA]) jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time']) jQ3Z['month'] = jQ3Z['Start Time'].dt.month jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.day_name() if x0eS != 'all': X_bn = ['january', 'february', 'march', 'april', 'may', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlWi(j5sA, x0eS, CjKC):\n jQ3Z = rLdf.read_csv(OerS[j5sA])\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour\n jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name\n if x0eS == 0 and CjKC =...
[ "0.81320685", "0.8108889", "0.8045821", "0.8042514", "0.80090284", "0.80071104", "0.79991937", "0.7998333", "0.7988789", "0.797905", "0.79737365", "0.79610896", "0.7956163", "0.7947432", "0.79463065", "0.7908287", "0.7908229", "0.7904569", "0.7900715", "0.78930074", "0.788921...
0.7537176
85
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z): print('\nCalculating The Most Frequent Times of Travel...\n') SWox = ITS7.time() jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time']) print(jQ3Z['month']) sve5 = jQ3Z['month'].mode()[0] print('after pop month', jQ3Z['month']) print('\nMost common month:\n', int(sve5)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWJR(jQ3Z):\n print('\\nDisplaying the statistics on the most frequent times of travel...\\n')\n SWox = ITS7.time()\n hFPs = jQ3Z['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' + str(X_bn[hFPs - 1]).title() + '.')\n DSEJ = jQ3Z['Weekday'].mode()[0]\n ...
[ "0.80247396", "0.80233026", "0.7915788", "0.78266186", "0.7822246", "0.78143597", "0.77659196", "0.7740343", "0.773628", "0.77344066", "0.76867086", "0.7668633", "0.7651731", "0.7644636", "0.76399267", "0.76367253", "0.7625196", "0.7623158", "0.7612803", "0.76002145", "0.7583...
0.0
-1
Displays statistics on the most popular stations and trip.
def Huc_(jQ3Z): print('\nCalculating The Most Popular Stations and Trip...\n') SWox = ITS7.time() _8rG = jQ3Z['Start Station'].mode()[0] print('\nMost popular start station:\n', _8rG) oFx8 = jQ3Z['End Station'].mode()[0] print('\nMost popular end station:\n', oFx8) jQ3Z['Station Pair'] = jQ3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n print(_8rG(jQ3Z))\n print(oFx8(jQ3Z))\n print(_Ek3(jQ3Z))\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)", "def Huc_(nPrm):\n print('\\nCalculating The M...
[ "0.7815675", "0.7662213", "0.7553417", "0.74914914", "0.74748665", "0.7446617", "0.7428588", "0.74237514", "0.74177027", "0.7400495", "0.7387161", "0.7385634", "0.73647535", "0.735934", "0.73566747", "0.73548365", "0.7351854", "0.7351274", "0.735057", "0.73421645", "0.7340198...
0.7021536
73
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z): print('\nCalculating Trip Duration...\n') SWox = ITS7.time() crdY = jQ3Z['Trip Duration'].sum() / 60 print('\nTotal travel time: {} minutes\n'.format(crdY)) E_Jj = jQ3Z['Trip Duration'].mean() / 60 print('\nMean travel time: {} minutes\n'.format(E_Jj)) print('\nThis took %s s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDMA(nPrm):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n DbBi = nPrm['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'.format(DbBi / 3600))\n IEfE = nPrm['Trip Duration'].mean()\n print('The Average Travel Time is {} Minutes'.format(IEfE / 60))\n pr...
[ "0.814274", "0.8025143", "0.80041367", "0.79496753", "0.7937415", "0.79312176", "0.7926815", "0.7915187", "0.79142886", "0.7908032", "0.79055744", "0.7900715", "0.7891682", "0.78894734", "0.7886722", "0.78851086", "0.7884266", "0.7882474", "0.78738385", "0.78686154", "0.78664...
0.7664856
76
Converts dataframe entries into a list of lists, to maintain consistency with the format of other data used in the analysis
def nD5y(L_J_): qN87 = [] XdMZ = L_J_.head(len(L_J_)).index.strftime('%Y-%m-%d').tolist() vhYV = L_J_.tolist() for YRbF in range(len(vhYV)): qN87.append([XdMZ[YRbF], vhYV[YRbF]]) return qN87
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pfsR(jQ3Z: pandas.DataFrame) -> list:\n return qQXR.loads(jQ3Z.to_json(orient='records'))", "def eK7y(jQ3Z: pandas.DataFrame, rdlD=-1) -> list:\n if jQ3Z is None:\n return []\n if rdlD >= 0:\n ETu_ = []\n for fvDH in range(0, 13):\n ETu_.append(jQ3Z.iat[rdlD, fvDH])\n...
[ "0.730984", "0.72403586", "0.6837504", "0.67379206", "0.67332923", "0.67246866", "0.65977573", "0.6580051", "0.65614426", "0.6543524", "0.6418984", "0.6390095", "0.62969214", "0.6269897", "0.62307125", "0.6204004", "0.6198425", "0.6192114", "0.6180179", "0.6166215", "0.615152...
0.679799
3
Wraps the original decoder helper function to append the attention context.
def RSrg(ITS7, o4Jx, QTBn, uXsA, mWFP=None): Pt1K, Os_u, rxHc = B0gN.next_inputs(time=ITS7, outputs=o4Jx, state=QTBn, sample_ids=uXsA, name=mWFP) Os_u = ZylS.concat([Os_u, o4Jx.context_vector], axis=1) return (Pt1K, Os_u, rxHc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, A83q, QpfX, RFPK):\n Fw3A = YKHO.attention(QpfX, A83q.squeeze(0), RFPK)\n return Fw3A", "def IVLu(YKHO, ZDDV: torch.Tensor, QTBn: Dict[str, torch.Tensor]) -> ht2j.Tensor:\n p83V = QTBn['encoder_outputs']\n BDAO = QTBn['source_mask']\n dIhC = QTBn['attention']\n zHZm = QTBn['att_k...
[ "0.6490527", "0.5778334", "0.5678051", "0.56027395", "0.5542547", "0.54593205", "0.54099184", "0.5336561", "0.5321487", "0.5320484", "0.5295615", "0.52940625", "0.5289901", "0.5288307", "0.527136", "0.52188194", "0.52167493", "0.5197112", "0.51877797", "0.5174573", "0.5137656...
0.0
-1
Plot a confusion matrix of the predicted labels and the true labels for the test set species. The export is probably better for viewing than the matplotlib view.
def LwSz(ly9N, oljl, GPtr, HOVt=None, WwuE=None, leAC='Confusion matrix', iMGt=None, NkkI=False, cCrA=False, xCht=12, xkzz=None): dlsb = list(eNCK.from_iterable(((oljl[YRbF] + Csk6 for Csk6 in range(1, yk4i)) for YRbF, yk4i in enumerate(map(finE, oljl[1:], oljl)) if yk4i > 1))) HOVt = list(HOVt) qVbN = [] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kXdH(LVAh, nvEb, leAC, Crrw, _RR0, iMGt=QrM1.cm.Blues):\n Bcwd = YsYU(LVAh, nvEb)\n DnoE = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n vjyh = aFTQ(LVAh, nvEb)\n LZpg = QrM1.figure(figsize=(10, 10))\n QrM1.imshow(DnoE, interpolation='nearest', cmap=iMGt, vmin=0, vmax=1)\n QrM1.t...
[ "0.75911516", "0.74269354", "0.72838706", "0.7277989", "0.71897584", "0.7164294", "0.71596324", "0.7126898", "0.7112279", "0.70958483", "0.7089717", "0.70813483", "0.70667386", "0.7041925", "0.70248234", "0.70126534", "0.69977295", "0.6988617", "0.69840145", "0.69784576", "0....
0.7191913
4
r"""Default weight initializer for all generator models. Models that require custom weight initialization can override this method
def vTXJ(YKHO): for r8hN in YKHO.modules(): if isinstance(r8hN, U78l.ConvTranspose2d): U78l.init.kaiming_normal_(r8hN.weight) elif isinstance(r8hN, U78l.BatchNorm2d): U78l.init.constant_(r8hN.weight, 1.0) U78l.init.constant_(r8hN.bias, 0.0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XXxF(YKHO):\n YKHO.biases = [oyIN.random.randn(LVAh, 1) for LVAh in YKHO.sizes[1:]]\n YKHO.weights = [oyIN.random.randn(LVAh, WKvO) / oyIN.sqrt(WKvO) for WKvO, LVAh in zip(YKHO.sizes[:-1], YKHO.sizes[1:])]", "def vJuA(YKHO):\n raise NotImplementedError", "def vB93(C3ST):\n ...", "def C0Lv(YKH...
[ "0.79438937", "0.78011465", "0.7741538", "0.7670633", "0.7603961", "0.75709236", "0.7519254", "0.74756426", "0.7462055", "0.7427889", "0.7386948", "0.72429323", "0.71512026", "0.7125343", "0.702615", "0.70235306", "0.6980606", "0.69723755", "0.6955039", "0.69512033", "0.69388...
0.75409186
6
r"""Default weight initializer for all disciminator models. Models that require custom weight initialization can override this method
def vTXJ(YKHO): for r8hN in YKHO.modules(): if isinstance(r8hN, U78l.Conv2d): U78l.init.kaiming_normal_(r8hN.weight) elif isinstance(r8hN, U78l.BatchNorm2d): U78l.init.constant_(r8hN.weight, 1.0) U78l.init.constant_(r8hN.bias, 0.0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XXxF(YKHO):\n YKHO.biases = [oyIN.random.randn(LVAh, 1) for LVAh in YKHO.sizes[1:]]\n YKHO.weights = [oyIN.random.randn(LVAh, WKvO) / oyIN.sqrt(WKvO) for WKvO, LVAh in zip(YKHO.sizes[:-1], YKHO.sizes[1:])]", "def vTXJ(YKHO):\n for r8hN in YKHO.modules():\n if isinstance(r8hN, U78l.ConvTranspo...
[ "0.7866824", "0.7774491", "0.7758249", "0.7671128", "0.7610582", "0.76029897", "0.74462485", "0.7385242", "0.7379879", "0.7360368", "0.7357841", "0.7272886", "0.72396696", "0.72342914", "0.71598744", "0.713976", "0.71141", "0.7112334", "0.7097547", "0.7054244", "0.70178837", ...
0.7860829
1
Test to make sure a ticket which has already been sold can't be resold unless the owner marks it for sale
def ilmk(): assert not epM3.buyTicket(FyyE) assert FyyE in ifM1.inventory assert FyyE not in epM3.inventory assert not FyyE.for_sale assert epM3.wallet == 500
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lkv6():\n a6XI = nvSS.wallet\n assert not epM3.buyTicket(uDq1)\n assert uDq1 not in epM3.inventory\n assert not FyyE.for_sale\n assert epM3.wallet == 500\n assert nvSS.wallet == a6XI", "def HD2h(YKHO):\n aevO = BJER()\n with YKHO.assertRaises(G5k6):\n IP75.objects.validate_tick...
[ "0.7288074", "0.6752858", "0.6630722", "0.65845925", "0.6513129", "0.650699", "0.6440309", "0.642398", "0.6413303", "0.63476056", "0.6291786", "0.62573767", "0.6256726", "0.6212813", "0.6209236", "0.6204787", "0.6172133", "0.61710596", "0.61401135", "0.6136614", "0.61074334",...
0.7809714
0
Test to make sure you can't purchase a ticket not for sale
def Lkv6(): a6XI = nvSS.wallet assert not epM3.buyTicket(uDq1) assert uDq1 not in epM3.inventory assert not FyyE.for_sale assert epM3.wallet == 500 assert nvSS.wallet == a6XI
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xSHc():\n assert ifM1.buyTicket(None) == False", "def ilmk():\n assert not epM3.buyTicket(FyyE)\n assert FyyE in ifM1.inventory\n assert FyyE not in epM3.inventory\n assert not FyyE.for_sale\n assert epM3.wallet == 500", "def WzDy():\n a6XI = nvSS.wallet\n assert cMCW.buyTicket(t6dE...
[ "0.77117753", "0.7637331", "0.7400361", "0.72487754", "0.7203155", "0.7156651", "0.71263564", "0.7095128", "0.7088714", "0.7087936", "0.70712763", "0.70455307", "0.7027923", "0.690337", "0.6882359", "0.68524826", "0.68398476", "0.6835652", "0.68294644", "0.6769182", "0.676878...
0.78358793
0
Ensure that the creation of a new movie object is not allowed for not authenticated users.
def IlZT(YKHO): nPrm = {'title': 'The Mask', 'release_year': 1994} geh0 = YKHO.client.post(YKHO.url, nPrm, format='json') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_403_FORBIDDEN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oA7j(YKHO):\n geh0 = YKHO.client.post('/api/videos/')\n YKHO.assertEqual(geh0.status_code, 401)\n YKHO.assertFalse(FYrf.Video.objects.exists())", "def A2Xp(YKHO):\n N8Bo = BfDw.create_user_and_authenticate(YKHO)\n YKHO.group.users.add(N8Bo)\n NRhD = gxEw('my_groups_view')\n BfDw.test_can...
[ "0.671903", "0.6286038", "0.6188675", "0.6176152", "0.6167834", "0.6139604", "0.6135774", "0.6106595", "0.6097984", "0.6072456", "0.60644823", "0.60622823", "0.6036793", "0.6016531", "0.5973718", "0.59700394", "0.59597915", "0.5955421", "0.5908756", "0.5898483", "0.58813095",...
0.73922145
0
Ensure that the update of a movie object is not allowed for not authenticated users.
def j6nj(YKHO): nPrm = {'title': 'The Mask 2'} geh0 = YKHO.client.patch(YKHO.url, nPrm, format='json') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_403_FORBIDDEN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CqkI(YKHO):\n geh0 = YKHO.client.put(YKHO.get_url(), {})\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_405_METHOD_NOT_ALLOWED)", "def bjk5(YKHO):\n bD7m = gxEw('post-detail', kwargs={'pk': YKHO.post.id})\n ZmQk = gxEw('user-detail', kwargs={'pk': YKHO.superuser.id})\n leAC = 'Random New Title...
[ "0.6605428", "0.64377487", "0.64276636", "0.6374926", "0.6316321", "0.62332815", "0.621346", "0.6212316", "0.62085897", "0.6121107", "0.6072681", "0.60704005", "0.60604197", "0.60599035", "0.60375136", "0.6014261", "0.600959", "0.5995299", "0.59438574", "0.5876327", "0.585679...
0.7432093
0
Attempts to convert the given date string to a datetime.datetime object otherwise returns the input `date_string`
def w5Jl(JvEs: str) -> uLKX[qcWV.datetime, str]: for x8us in wIvL: try: _c1T = qcWV.datetime.strptime(JvEs, x8us) return _c1T except ValueError: continue return JvEs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HJff(JvEs):\n try:\n return qcWV.datetime.strptime(JvEs, x8us)\n except Exception as e:\n print('Got exception parsing date {} with format {} {}'.format(JvEs, x8us, tTpl))", "def z3Lu(_c1T):\n Hghu = type(_c1T)\n try:\n if Hghu == qcWV.date:\n return _c1T\n ...
[ "0.8281641", "0.8183171", "0.8109039", "0.8007696", "0.80035657", "0.7994572", "0.7939067", "0.7914784", "0.7907773", "0.7888757", "0.77592826", "0.77592826", "0.7715171", "0.76996195", "0.7666756", "0.7662666", "0.7651084", "0.7646723", "0.7614165", "0.7609397", "0.75867504"...
0.80035734
4
Returns the message that we map into the GA4GH protocol message. For many exceptions we can simply set the message statically for a given class, and this message will be returned by default. For more elaborate messages that must be contructed at run time, we can override this method and use state held in instance varia...
def dL4c(YKHO): return YKHO.message
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S_Qd(YKHO):\n return YKHO.__message", "def Ol8d(YKHO):\n if not VYWi.is_string(YKHO._message):\n raise NotImplementedError('self.message must be assigned a value in __init__')\n return YKHO._message", "def Eair(YKHO):\n return YKHO.message", "def Eair(YKHO):\n return YKHO.message", ...
[ "0.6827955", "0.67246217", "0.665366", "0.665366", "0.6646244", "0.6520563", "0.6517846", "0.6485652", "0.6443103", "0.63925076", "0.6273588", "0.6273272", "0.6273272", "0.6273272", "0.6273272", "0.6273272", "0.6273272", "0.6199023", "0.61701936", "0.615498", "0.61398077", ...
0.61779916
19
Split a Path2D into multiple Path2D objects where each one has exactly one root curve.
def lpha(pmON): FzyD = type(pmON) lpha = [] ckRy = pmON.paths IZG9 = pmON.discrete IqNq = pmON.polygons_closed xtCW = pmON.enclosure_directed for uGqx, tk5Y in enumerate(pmON.root): gela = list(xtCW[tk5Y].keys()) gela.append(tk5Y) ggRF = [] bgTp = [] f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KkWy(YKHO, pmON):\n if len(pmON) < 2:\n return [pmON]\n ckRy = [[pmON[0]]]\n for YRbF in range(1, len(pmON) - 1):\n y4fz = pmON[YRbF - 1]\n EBgd = pmON[YRbF]\n HpuQ = pmON[YRbF + 1]\n hQHm = y4fz - EBgd\n jlSq = HpuQ - EBgd\n Csk6 = oyIN.sum(hQHm * jlSq...
[ "0.6195983", "0.565036", "0.5556326", "0.553719", "0.54967225", "0.54963195", "0.5379182", "0.525305", "0.5249551", "0.5211067", "0.5206247", "0.5139166", "0.51292324", "0.51076293", "0.5085478", "0.50777566", "0.50749373", "0.50722826", "0.5064399", "0.5063709", "0.50508505"...
0.7682899
0
Gets the default Y range values according to the transform param
def F7LC(YKHO, SZFh): return YKHO._handlers_by_class[SZFh.__class__].get_y_default(SZFh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EMsU(YKHO, SZFh):\n return YKHO._handlers_by_class[SZFh.__class__].get_y_limits(SZFh)", "def M65t(YKHO):\n if isinstance(YKHO._frame, tk5Y.TH1F):\n return (YKHO._frame.GetMinimum(), YKHO._frame.GetMaximum())\n else:\n return (YKHO._frame.GetYaxis().GetXmin(), YKHO._frame.GetYaxis().Get...
[ "0.6880868", "0.65471107", "0.64696336", "0.6431864", "0.6316628", "0.6307572", "0.6288991", "0.61986685", "0.61986685", "0.6146175", "0.60902715", "0.60775876", "0.59848", "0.5938091", "0.5913424", "0.58769774", "0.5853324", "0.5829609", "0.58284444", "0.58262676", "0.582459...
0.7613629
0
Gets the Y axis limits values of the corresponding transform
def EMsU(YKHO, SZFh): return YKHO._handlers_by_class[SZFh.__class__].get_y_limits(SZFh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M65t(YKHO):\n if isinstance(YKHO._frame, tk5Y.TH1F):\n return (YKHO._frame.GetMinimum(), YKHO._frame.GetMaximum())\n else:\n return (YKHO._frame.GetYaxis().GetXmin(), YKHO._frame.GetYaxis().GetXmax())", "def tXvl(YKHO):\n return YKHO.axes.get_ylim()", "def rTQi(YKHO):\n Xk2t = [aN...
[ "0.7892102", "0.78365016", "0.7468317", "0.6990941", "0.6933403", "0.6882724", "0.6799309", "0.678695", "0.678695", "0.67554957", "0.66665363", "0.6513531", "0.6502306", "0.6496561", "0.64958876", "0.6466566", "0.6449399", "0.6446912", "0.6425134", "0.637918", "0.63652426", ...
0.83933055
0
Gets the axis labels information of the corresponding transform to show it when graphing
def bkcc(YKHO, SZFh): return YKHO._handlers_by_class[SZFh.__class__].get_axis_labels()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def psCe(YKHO, nPrm, U34r):\n return []", "def u4sQ(YKHO, tpio=0):\n return YKHO.__axis_labels__[tpio]", "def oD7d(YKHO):\n return YKHO._axesnames", "def Crrw(YKHO):\n return YKHO.label(YKHO.p_y_given_x)", "def ZWCE(YKHO):\n Crrw = ['$X_{%i}$' % YRbF if Csk6.name is None else Csk6.name for Y...
[ "0.64331275", "0.64320606", "0.6318705", "0.630041", "0.62415504", "0.61871034", "0.6155055", "0.6092563", "0.6073711", "0.60591954", "0.6030437", "0.6008552", "0.5996544", "0.5972787", "0.59502023", "0.5930357", "0.5930357", "0.5873515", "0.58603597", "0.584908", "0.57713145...
0.8094402
0
Returns string with spaces replaced by underscores
def gclR(str): return str.replace(' ', '_')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QoZA(l5Ny):\n return l5Ny.replace(' ', '__')", "def QTiK(KCHu):\n return KCHu.replace('_', ' ')", "def bOQt(KCHu):\n return KCHu.replace(' ', '_')", "def aSeI(KCHu):\n KCHu = KCHu.replace('_', '\\\\_')\n return KCHu", "def A5d0(l5Ny):\n return f'__{l5Ny}__'", "def QoZA(vIwR):\n v...
[ "0.85036457", "0.82173324", "0.79002523", "0.7712458", "0.76904744", "0.7670745", "0.7524853", "0.7523088", "0.7348006", "0.7331303", "0.7300442", "0.7252202", "0.7251133", "0.7204409", "0.7146332", "0.713771", "0.7123947", "0.710754", "0.7098836", "0.70323837", "0.699316", ...
0.64406925
56
Draw a number of images and their predictions
def WA36(ichU, Yw_3, KndY, olTx=4): LZpg = QrM1.figure() aUKP = len(Yw_3) / olTx if len(Yw_3) % olTx > 0: aUKP = aUKP + 1 def JmFt(YRbF): QrM1.subplot(aUKP, olTx, YRbF) QrM1.imshow(Yw_3[YRbF].reshape(28, 28), cmap='gray', interpolation='none') QrM1.title('Predicted: %s' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UtJ2(YKHO, Yw_3, aTLP, x6A0):\n tGDF = ['angry', 'happy', 'sad']\n Yw_3 = Yw_3[:8]\n aTLP = aTLP[:8]\n x6A0 = x6A0[:8]\n NwL4 = int(ht2j.tensor(len(Yw_3)).float().sqrt().floor())\n LZpg = QrM1.figure(figsize=(7, 7))\n for YRbF in range(len(Yw_3)):\n QrM1.subplot(NwL4, len(Yw_3) // N...
[ "0.7453203", "0.73096824", "0.71576315", "0.7115452", "0.7062802", "0.70624876", "0.7032798", "0.6975675", "0.6972506", "0.69536066", "0.69395304", "0.6914672", "0.68592745", "0.68427026", "0.68203497", "0.67965275", "0.67648077", "0.67632174", "0.67362535", "0.6711209", "0.6...
0.67994046
15
Uses bonds.json to produce a list, with each element being a list of pairs (toAtomIndex, bond order)
def m5Tt(YKHO, zgDH): hlel, ZI14 = ([], '/chargemol_analysis/final/bonds.json') with open(zgDH + ZI14, 'r') as eHNT: DzpR = qQXR.load(eHNT) exwG = len(YKHO.stordir_to_atoms(zgDH)) for YRbF in range(exwG): WOKI = [] for W0I0 in DzpR: if W0I0['fromNode'] == YRbF: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k_6_(g8x2, n5Rs):\n if n5Rs['compute-bonds']:\n Kl5V = RzyS(g8x2, n5Rs)\n else:\n Kl5V = []\n T2Cp = sH4x(Kl5V, g8x2.bonds)\n return T2Cp", "def m8Bn(YKHO):\n T2Jx = YKHO.contents['Sub_ID']\n grfj = YKHO.contents['ID']\n u28e = []\n for H5ew, BWXx in YKHO.bonds.items():\...
[ "0.67041737", "0.60807246", "0.5817543", "0.57692236", "0.5686415", "0.5679137", "0.56729937", "0.5626626", "0.56039923", "0.56039923", "0.56039923", "0.5595774", "0.5493287", "0.54891944", "0.54884493", "0.54763854", "0.5429814", "0.5413516", "0.5377904", "0.5374588", "0.535...
0.6054992
2
r""" Function to partition the rows at a decisionNode. This will return a dictionary where keys are the attribute value of the column based on which partition is happening whereas value is the list of rows having that particular attribute value
def GNn4(usx6, nbGa): m_wh = oRi_(list) for rdlD in usx6: m_wh[rdlD[nbGa]].append(rdlD) return m_wh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qrt_(WKvO):\n UqER, BWz1 = oyIN.unique(WKvO, return_counts=True)\n fssb = {}\n for rdlD in UqER:\n fssb[rdlD] = []\n for d6pt, ZfUD in enumerate(WKvO):\n if ZfUD == rdlD:\n fssb[rdlD].append(d6pt)\n return fssb", "def Qrt_(usx6, bAls):\n cHMs, dpHR = ([]...
[ "0.6172423", "0.6138492", "0.59874946", "0.5703261", "0.5695859", "0.5654481", "0.5558454", "0.54919076", "0.5484068", "0.545629", "0.52830833", "0.52796566", "0.527258", "0.5265376", "0.52508956", "0.52362716", "0.5203436", "0.519827", "0.51912856", "0.51491034", "0.51200885...
0.6982177
0
Convert from metres per second to kilometres per hour.
def xi49(YKHO) -> None: if YKHO.units == 'm/s': YKHO.units = 'km/h' YKHO.value = (YKHO.value * 360 / 100).__round__(2) else: tO9_ = "Not a valid unit conversion, expected units to be in 'm/s' but instead " + f'units were in {YKHO.units}.' raise ValueError(tO9_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VqWP(T6S7):\n return T6S7 * 3600.0 / 1000.0", "def oHea(T6S7):\n return T6S7 * 3600.0 / P48T", "def b6ID(JRLl):\n y701 = JRLl * 1000 / 3600\n return y701", "def FgLz(a1PO):\n a1PO = int(a1PO)\n KCHu = a1PO % 60\n a1PO //= 60\n r8hN = a1PO % 60\n a1PO //= 60\n return (a1PO, r...
[ "0.70011294", "0.69206196", "0.6882445", "0.6710847", "0.6569927", "0.6511546", "0.6488699", "0.6480719", "0.64334565", "0.6330102", "0.6322818", "0.6194684", "0.6146735", "0.60993713", "0.60589224", "0.6037695", "0.6036903", "0.6036892", "0.59867257", "0.59847504", "0.598290...
0.6729627
3
Convert from metres per second to miles per hour.
def YkVh(YKHO) -> None: if YKHO.units == 'm/s': YKHO.units = 'mph' YKHO.value = (YKHO.value * 2.236936).__round__(2) else: tO9_ = "Not a valid unit conversion, expected units to be in 'm/s' but instead " + f'units were in {YKHO.units}.' raise ValueError(tO9_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QAKp(l1UJ):\n JYmd = l1UJ / 1609.344\n return JYmd", "def oHea(T6S7):\n return T6S7 * 3600.0 / P48T", "def brid(q5XV):\n return q5XV * 0.621371", "def kkZL(ssQ2: float) -> float:\n ssQ2 = float(ssQ2)\n JYmd = float(float(ssQ2) * 0.621371)\n return round(JYmd, 2)", "def zpqm(JYmd):\...
[ "0.7061753", "0.68285376", "0.66993976", "0.6554829", "0.6431596", "0.6349281", "0.63148355", "0.62682796", "0.6246572", "0.6207273", "0.6195181", "0.6155799", "0.6135055", "0.6116334", "0.6097469", "0.6090478", "0.6033809", "0.600784", "0.5949629", "0.59237736", "0.59086484"...
0.658693
3
Return intervals between specified time periods.
def LY_D(YKHO, yKcO: dt.datetime, Os4s: dt.datetime) -> x1iM[Kx1f]: Irgt: x1iM[Kx1f] = [] for VOlW in YKHO.intervals: if yKcO <= VOlW.start_time < Os4s: Irgt.append(VOlW) return Irgt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VbQZ(YKHO) -> x1iM[AzJI[qcWV.datetime, qcWV.datetime]]:\n if YKHO.granularity == 'HOUR':\n Sm0u = max(min((YKHO.bounds[1] - YKHO.bounds[0]).days, YKHO.GRANULARITIES['HOUR'][1]), YKHO.GRANULARITIES['HOUR'][0])\n rDW9 = qcWV.timedelta(days=Sm0u)\n vgXP = qcWV.timedelta(hours=1)\n elif ...
[ "0.71997386", "0.71134514", "0.7088042", "0.70750344", "0.69683117", "0.67887634", "0.67071116", "0.6684604", "0.64738655", "0.64073616", "0.63970983", "0.6300294", "0.62635726", "0.6246997", "0.62060344", "0.61935496", "0.61610997", "0.6131245", "0.6128161", "0.60988605", "0...
0.717961
1
Set up a cohorted course
def FCbF(YKHO): super().setUp() YKHO.manual_cohort_name = 'ManualCohort1' YKHO.auto_cohort_name = 'AutoCohort1' YKHO.course_fixture = DPg3(**YKHO.course_info).install() YKHO.setup_cohort_config(YKHO.course_fixture, auto_cohort_groups=[YKHO.auto_cohort_name]) YKHO.manual_cohort_id = YKHO.add_manu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PXsn(YKHO):\n GQfX = OE_C().get_course(YKHO.toy_course_key)\n YKHO.assertEqual(GQfX.id, YKHO.toy_course_key)\n YKHO.assertFalse(GQfX.is_cohorted)\n CBIr = mv1M.objects.create(username='test', email='a@b.com')\n g_7i = mv1M.objects.create(username='test2', email='a2@b.com')\n YKHO.assertIsNone...
[ "0.67376953", "0.6507354", "0.632316", "0.6217576", "0.6188431", "0.6060006", "0.60140043", "0.5847302", "0.58092344", "0.57975006", "0.5786021", "0.5756937", "0.574838", "0.5686025", "0.5666365", "0.5643146", "0.56192887", "0.56070566", "0.5603696", "0.55804735", "0.5576551"...
0.6704507
1
Collect control curve path from FR_CONTROLCURVE environment.
def lCJ9(): return dV4A('FR_CONTROLCURVE')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JKja(S9Fp):\n xzMX = nOpZ(S9Fp)\n Od9S = 1\n XXcz = 0 - Od9S\n w3IF = len(S9Fp) // 3 - 1 + Od9S\n return oyIN.array([xzMX.get_pos(a1PO) for a1PO in oyIN.linspace(XXcz, w3IF, num=int(50 * (w3IF - XXcz) + 1))])", "def K9Ip(PWZ3, Mkmy=0.3):\n AdZ9 = ccKF.curve(n=PWZ3, d=1, p=[(0, 0, Mkmy), (0,...
[ "0.5951237", "0.5833568", "0.5666048", "0.56425357", "0.5575856", "0.556776", "0.5339969", "0.53348845", "0.52649623", "0.52501017", "0.5211717", "0.51152426", "0.51091015", "0.51089084", "0.5074501", "0.50725436", "0.5041768", "0.50399154", "0.5039824", "0.502146", "0.501650...
0.8215724
0
Get all left nodes. It can be used for generating training examples from gold RST tree
def F6o_(J_Es): X3jl = YXeS(J_Es, []) XXR6 = [] for Q6kx in X3jl: if Q6kx.lnode is None and Q6kx.rnode is None: XXR6.append(Q6kx) return XXR6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BtSI(YKHO) -> list:\n gGq6 = []\n LFlW = []\n gGq6.append(YKHO)\n while len(gGq6) > 0:\n for YRbF in range(len(gGq6)):\n if YRbF == 0:\n LFlW.append(gGq6[0].data)\n Q6kx = gGq6[0]\n gGq6.pop(0)\n if Q6kx.left != None:\n ...
[ "0.7168673", "0.68385863", "0.6522896", "0.65085864", "0.6503525", "0.6472779", "0.6428576", "0.6368648", "0.63449377", "0.6280077", "0.62585723", "0.6256838", "0.6254882", "0.62265044", "0.62195337", "0.6218359", "0.61967367", "0.61967367", "0.61893284", "0.6162175", "0.6158...
0.0
-1
Returns the full parquet path as an output for the Luigi Task (e.g. impc/dr15.2/parquet/mgi_strain_parquet)
def hlel(YKHO): return pJgC().get_target(f'{YKHO.output_path}mgi_strain_parquet')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zg0d(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'full_path')", "def pmON(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'path')", "def pmON(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'path')", "def pmON(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'path')...
[ "0.6417673", "0.64109874", "0.6385963", "0.6385963", "0.6091211", "0.60321474", "0.6003638", "0.59587616", "0.59319067", "0.5918944", "0.5910044", "0.58045495", "0.57698244", "0.57698244", "0.57698244", "0.57698244", "0.57698244", "0.57698244", "0.57698244", "0.57698244", "0....
0.6568904
0
Return the configurationID attribute.
def cZd7(YKHO): return YKHO.component_manager.config_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S8MR(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'config_id')", "def S8MR(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'config_id')", "def CLEu(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'access_configuration_id')", "def O8dF(YKHO):\n return YKHO._config['identifier']", ...
[ "0.82370573", "0.7737147", "0.77217585", "0.76358694", "0.76358694", "0.7568858", "0.7535651", "0.7334281", "0.72816044", "0.7275274", "0.7192606", "0.7192606", "0.7192606", "0.7192606", "0.70532554", "0.69606674", "0.69488955", "0.69488955", "0.69281024", "0.68077296", "0.68...
0.7454224
7
Return the outputDataRateToSdp attribute.
def dQFs(YKHO): return YKHO._sdp_output_data_rate
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yXpn(YKHO):\n return YKHO.DataRate", "def THF3(YKHO):\n return YKHO._data_rate", "def fn5G(YKHO):\n return tGN_.usrp_sink_get_samp_rate(YKHO)", "def fn5G(YKHO):\n return tGN_.usrp_sink_sptr_get_samp_rate(YKHO)", "def Mm_S(YKHO):\n return tGN_.usrp_sink_get_samp_rates(YKHO)", "def Mm_S(...
[ "0.6707482", "0.6489517", "0.6398907", "0.6321757", "0.61910206", "0.6110366", "0.6103157", "0.5940593", "0.5923892", "0.5896416", "0.5879235", "0.5805911", "0.57724947", "0.5763296", "0.57288975", "0.572569", "0.57214093", "0.571555", "0.5711583", "0.5692358", "0.56816053", ...
0.84580344
0
Return the configureScanMeasuredDuration attribute.
def _5O6(YKHO): return YKHO._cmd_measured_duration['configurescan']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fz3k(YKHO):\n return YKHO.config.get('record_duration', 5)", "def lgJE(YKHO):\n return YKHO._get_attribute('duration')", "def lgJE(YKHO):\n return YKHO._get_attribute('duration')", "def WbTE(YKHO):\n return YKHO._get('duration')", "def WbTE(YKHO):\n return YKHO._get('duration')", "def ...
[ "0.7202693", "0.70240694", "0.70075905", "0.68735164", "0.6856001", "0.67686915", "0.6694812", "0.6684578", "0.6641244", "0.66278255", "0.6613843", "0.65864927", "0.65847886", "0.6583338", "0.6583338", "0.6583338", "0.6583338", "0.6583338", "0.6583338", "0.6583338", "0.658333...
0.8384339
0
Return the assignResourcesMaximumDuration attribute.
def ALlw(YKHO): return YKHO._cmd_maximum_duration['assignresources']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UP6n(YKHO):\n return YKHO._cmd_maximum_duration['releaseresources']", "def t8PH(YKHO, BWXx):\n YKHO._cmd_maximum_duration['assignresources'] = BWXx", "def jGwH(YKHO):\n return YKHO._cmd_measured_duration['assignresources']", "def WbTE(YKHO) -> int:\n return YKHO._lic.params['maxDurationInSeco...
[ "0.78109205", "0.72739524", "0.7138984", "0.6935195", "0.6896527", "0.67632854", "0.6711347", "0.6554828", "0.6544752", "0.65009564", "0.64280707", "0.63779575", "0.6362045", "0.63423127", "0.63414633", "0.63414633", "0.62800616", "0.62800616", "0.62800616", "0.62800616", "0....
0.8670386
0
Set the assignResourcesMaximumDuration attribute.
def t8PH(YKHO, BWXx): YKHO._cmd_maximum_duration['assignresources'] = BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ALlw(YKHO):\n return YKHO._cmd_maximum_duration['assignresources']", "def AsDf(YKHO, BWXx):\n YKHO._cmd_maximum_duration['releaseresources'] = BWXx", "def UP6n(YKHO):\n return YKHO._cmd_maximum_duration['releaseresources']", "def O9ZG(YKHO, O9ZG):\n YKHO._resource_allocation_timeout = O9ZG", ...
[ "0.75009114", "0.7108825", "0.6145865", "0.61266935", "0.6116267", "0.60174865", "0.57958454", "0.57427925", "0.566168", "0.5619999", "0.5619999", "0.5618733", "0.5592099", "0.55780536", "0.55541605", "0.55413616", "0.55209076", "0.55188483", "0.55049014", "0.5501352", "0.549...
0.80570424
0
Return the assignResourcesMeasuredDuration attribute.
def jGwH(YKHO): return YKHO._cmd_measured_duration['assignresources']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eeTB(YKHO):\n return YKHO._cmd_measured_duration['releaseresources']", "def lgJE(YKHO):\n return YKHO._get_attribute('duration')", "def lgJE(YKHO):\n return YKHO._get_attribute('duration')", "def ALlw(YKHO):\n return YKHO._cmd_maximum_duration['assignresources']", "def YvUS(YKHO):\n retu...
[ "0.7476577", "0.6948954", "0.6907984", "0.6897158", "0.675196", "0.66170627", "0.6498312", "0.64068395", "0.6399724", "0.6399567", "0.6365093", "0.6300124", "0.6272323", "0.62619096", "0.62527406", "0.62527406", "0.62527406", "0.62527406", "0.62527406", "0.62527406", "0.62527...
0.86240077
0
Return the releaseResourcesMaximumDuration attribute.
def UP6n(YKHO): return YKHO._cmd_maximum_duration['releaseresources']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ALlw(YKHO):\n return YKHO._cmd_maximum_duration['assignresources']", "def WbTE(YKHO) -> int:\n return YKHO._lic.params['maxDurationInSeconds'].value", "def eeTB(YKHO):\n return YKHO._cmd_measured_duration['releaseresources']", "def AsDf(YKHO, BWXx):\n YKHO._cmd_maximum_duration['releaseresour...
[ "0.7682274", "0.73281056", "0.725378", "0.7169169", "0.701878", "0.6726816", "0.6675424", "0.6605734", "0.66047144", "0.65419525", "0.63711715", "0.63539124", "0.63503057", "0.6339228", "0.63348955", "0.63322926", "0.63050246", "0.62923634", "0.6281969", "0.6272967", "0.62523...
0.8497974
0
Set the releaseResourcesMaximumDuration attribute.
def AsDf(YKHO, BWXx): YKHO._cmd_maximum_duration['releaseresources'] = BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t8PH(YKHO, BWXx):\n YKHO._cmd_maximum_duration['assignresources'] = BWXx", "def UP6n(YKHO):\n return YKHO._cmd_maximum_duration['releaseresources']", "def ALlw(YKHO):\n return YKHO._cmd_maximum_duration['assignresources']", "def gNly(YKHO, gNly: str):\n YKHO._max_time = gNly", "def udZi(YKH...
[ "0.75299424", "0.6939129", "0.6757534", "0.612519", "0.6047337", "0.60134304", "0.59227794", "0.58768404", "0.58768404", "0.5868205", "0.58474535", "0.5841381", "0.584001", "0.5809971", "0.5737153", "0.57150954", "0.57150954", "0.57150954", "0.5703288", "0.5703288", "0.56474"...
0.8002245
0
Return the releaseResourcesMeasuredDuration attribute.
def eeTB(YKHO): return YKHO._cmd_measured_duration['releaseresources']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jGwH(YKHO):\n return YKHO._cmd_measured_duration['assignresources']", "def lgJE(YKHO):\n return YKHO._get_attribute('duration')", "def lgJE(YKHO):\n return YKHO._get_attribute('duration')", "def EdTY(YKHO):\n return YKHO.duration", "def UP6n(YKHO):\n return YKHO._cmd_maximum_duration['re...
[ "0.7594611", "0.7134477", "0.7123656", "0.6845334", "0.6835566", "0.6818994", "0.6794545", "0.67108697", "0.66936487", "0.6689381", "0.6623013", "0.66056925", "0.66056925", "0.66056925", "0.66056925", "0.66056925", "0.66056925", "0.66056925", "0.66056925", "0.6603101", "0.659...
0.83992296
0
If question doesn't exist then returns a 404 not found.
def SRut(YKHO): x7xn(YKHO) YKHO.assertFalse(YKHO.user.is_superuser) bD7m = gxEw('polls:detail', args=(1,)) geh0 = YKHO.client.get(bD7m) YKHO.assertEqual(geh0.status_code, 404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w0ET(YKHO):\n Ylbp = YKHO.app.get('/api/v1/questions/' + str(56))\n YKHO.assertEqual(Ylbp.status_code, 404)", "def m7kB(bGrB):\n return (sUiq, 404)", "def o3cf():\n return c1Bu(404)", "def PBcq(YKHO):\n geh0 = YKHO.get_one_question_with_invalid_questionId()\n YKHO.assertEqual(geh0.statu...
[ "0.79275346", "0.7313007", "0.7061561", "0.70375925", "0.7035321", "0.6886876", "0.6670767", "0.6621834", "0.65660423", "0.655537", "0.65444857", "0.6534985", "0.65286964", "0.65286964", "0.65286964", "0.65286964", "0.65286964", "0.65286964", "0.65286964", "0.651732", "0.6517...
0.6367173
33
The detail view of a question with a pub_date in the future returns a 404 not found.
def ALCE(YKHO): x7xn(YKHO) YKHO.assertFalse(YKHO.user.is_superuser) vS5o = II0Q(question_text='Future question.', days=5) bD7m = gxEw('polls:detail', args=(vS5o.id,)) geh0 = YKHO.client.get(bD7m) YKHO.assertEqual(geh0.status_code, 404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MfRe(YKHO):\n vS5o = II0Q(question_text='Future question.', days=5)\n geh0 = YKHO.client.get(gxEw('polls:detail', args=(vS5o.id,)))\n YKHO.assertEqual(geh0.status_code, 404)", "def MfRe(YKHO):\n vS5o = II0Q(question_text='Future question', days=5)\n bD7m = gxEw('polls:detail', args=(vS5o.id,))...
[ "0.7497403", "0.74237365", "0.74019724", "0.73198754", "0.6882057", "0.68441385", "0.6839886", "0.67736185", "0.6773186", "0.6660648", "0.66365445", "0.6574521", "0.65514135", "0.6519076", "0.64934474", "0.64890075", "0.6472224", "0.6458119", "0.64206684", "0.640955", "0.6402...
0.633631
24
The detail view of a question with a pub_date in the past displays the question's text.
def MULS(YKHO): x7xn(YKHO) YKHO.assertFalse(YKHO.user.is_superuser) g3ow = II0Q(question_text='Past Question.', days=-5) bD7m = gxEw('polls:detail', args=(g3ow.id,)) geh0 = YKHO.client.get(bD7m) YKHO.assertContains(geh0, g3ow.question_text)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AVfH(YKHO):\n g3ow = II0Q(question_text='Past Question.', days=-5)\n geh0 = YKHO.client.get(gxEw('polls:detail', args=(g3ow.id,)))\n YKHO.assertContains(geh0, g3ow.question_text, status_code=200)", "def AVfH(YKHO):\n g3ow = II0Q(question_text='Past question', days=-30)\n geh0 = YKHO.client.get...
[ "0.691903", "0.6845292", "0.67884105", "0.6770274", "0.6731518", "0.64019763", "0.6229556", "0.6197519", "0.617866", "0.6127842", "0.6079946", "0.6074095", "0.6053201", "0.6010866", "0.59842235", "0.5944553", "0.59162587", "0.5892784", "0.58596855", "0.58578676", "0.5836897",...
0.5791905
22
The detail view of a question without Choices returns a 404 not found.
def KGWO(YKHO): x7xn(YKHO) YKHO.assertFalse(YKHO.user.is_superuser) iOAA = qFqO(question_text='Question wihout Choices.', days=-1) bD7m = gxEw('polls:detail', args=(iOAA.id,)) geh0 = YKHO.client.get(bD7m) YKHO.assertEqual(geh0.status_code, 404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aeup(QePW, JVBp):\n bAls = Iofl(Y4Gy, pk=JVBp)\n return _1tc(QePW, 'problemfinder/details.html', {'question': bAls})", "def MfRe(YKHO):\n vS5o = II0Q(question_text='Future question.', days=5)\n geh0 = YKHO.client.get(gxEw('polls:detail', args=(vS5o.id,)))\n YKHO.assertEqual(geh0.status_code, 4...
[ "0.71154344", "0.70191014", "0.6883976", "0.6875943", "0.68702626", "0.6863", "0.6714542", "0.65973854", "0.6511097", "0.65051717", "0.6497616", "0.6369757", "0.63285625", "0.6231346", "0.6128514", "0.6120124", "0.6074971", "0.6070548", "0.6070548", "0.6070548", "0.60498476",...
0.6200416
14
For admins, if question doesn't exist then returns a 404 not found.
def gvWU(YKHO): vp5w(YKHO) YKHO.assertTrue(YKHO.user.is_superuser) bD7m = gxEw('polls:detail', args=(1,)) geh0 = YKHO.client.get(bD7m) YKHO.assertEqual(geh0.status_code, 404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w0ET(YKHO):\n Ylbp = YKHO.app.get('/api/v1/questions/' + str(56))\n YKHO.assertEqual(Ylbp.status_code, 404)", "def PBcq(YKHO):\n geh0 = YKHO.get_one_question_with_invalid_questionId()\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_404_NOT_FOUND)", "def SRut(YKHO):\n x7xn(YKHO)\n YKHO.asse...
[ "0.711784", "0.6504001", "0.64876986", "0.64723796", "0.6407077", "0.6331296", "0.6318913", "0.6249131", "0.62066907", "0.6195382", "0.6114018", "0.6107865", "0.6055043", "0.60343975", "0.6030388", "0.6012463", "0.59605753", "0.595454", "0.5865508", "0.58496404", "0.5849237",...
0.68937933
1
For admins, the detail view of a question with a pub_date in the future returns a the question's text.
def HhwS(YKHO): vp5w(YKHO) YKHO.assertTrue(YKHO.user.is_superuser) vS5o = II0Q(question_text='Future question.', days=5) bD7m = gxEw('polls:detail', args=(vS5o.id,)) geh0 = YKHO.client.get(bD7m) YKHO.assertContains(geh0, vS5o.question_text)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return 'question_text: ' + YKHO.question_text + '\\npub_date:' + YKHO.pub_date.__str__()", "def AVfH(YKHO):\n g3ow = II0Q(question_text='Past Question.', days=-5)\n geh0 = YKHO.client.get(gxEw('polls:detail', args=(g3ow.id,)))\n YKHO.assertContains(geh0, g3ow.question_text, status_c...
[ "0.6683269", "0.6405031", "0.63917655", "0.63736093", "0.6339363", "0.6066158", "0.59450716", "0.5847778", "0.58125436", "0.5796782", "0.57940537", "0.5760645", "0.5739646", "0.5713765", "0.5704408", "0.5694761", "0.56631625", "0.5650233", "0.56304246", "0.5626378", "0.560301...
0.6245921
5
For admins, the detail view of a question with a pub_date in the past displays the question's text.
def fg7P(YKHO): vp5w(YKHO) YKHO.assertTrue(YKHO.user.is_superuser) g3ow = II0Q(question_text='Past Question.', days=-5) bD7m = gxEw('polls:detail', args=(g3ow.id,)) geh0 = YKHO.client.get(bD7m) YKHO.assertContains(geh0, g3ow.question_text)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AVfH(YKHO):\n g3ow = II0Q(question_text='Past Question.', days=-5)\n geh0 = YKHO.client.get(gxEw('polls:detail', args=(g3ow.id,)))\n YKHO.assertContains(geh0, g3ow.question_text, status_code=200)", "def AVfH(YKHO):\n g3ow = II0Q(question_text='Past question', days=-30)\n geh0 = YKHO.client.get...
[ "0.6654251", "0.6551169", "0.6546888", "0.64981866", "0.6403105", "0.60974413", "0.5978801", "0.59736556", "0.594772", "0.59222794", "0.5906418", "0.5845687", "0.580533", "0.5777674", "0.56844366", "0.56818074", "0.5666687", "0.56340367", "0.562149", "0.5601977", "0.5598254",...
0.63057643
5
For admins, the detailview of a question without Choices returns a 404 not found.
def iAb2(YKHO): vp5w(YKHO) YKHO.assertTrue(YKHO.user.is_superuser) iOAA = qFqO(question_text='Question wihout Choices.', days=-1) bD7m = gxEw('polls:detail', args=(iOAA.id,)) geh0 = YKHO.client.get(bD7m) YKHO.assertContains(geh0, iOAA.question_text)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gvWU(YKHO):\n vp5w(YKHO)\n YKHO.assertTrue(YKHO.user.is_superuser)\n bD7m = gxEw('polls:detail', args=(1,))\n geh0 = YKHO.client.get(bD7m)\n YKHO.assertEqual(geh0.status_code, 404)", "def SRut(YKHO):\n x7xn(YKHO)\n YKHO.assertFalse(YKHO.user.is_superuser)\n bD7m = gxEw('polls:detail',...
[ "0.7173288", "0.6686307", "0.62881786", "0.6212242", "0.6194035", "0.6141864", "0.61249363", "0.60965824", "0.6087543", "0.60861367", "0.5962173", "0.5895455", "0.58402735", "0.58342826", "0.58056766", "0.5738396", "0.57204473", "0.5702456", "0.5698904", "0.56868136", "0.5654...
0.62408864
3
Filter to remove undesirable tokens from the list.
def PxeQ(WKvO): if WKvO in O5Sr: return False if not ZbWC.search('\\w', WKvO): return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IoNI(YKHO, s2mk):\n return list(filter(lambda a1PO: a1PO.token_value not in YKHO._ignored, s2mk))", "def PxeQ(YKHO, s2mk):\n iku2 = [yzQ0.lower() for yzQ0 in s2mk if len(yzQ0) > YKHO.MIN_WORD_LENGTH and yzQ0.isalpha() and (yzQ0.lower() not in YKHO.stopwords)]\n return iku2", "def PxeQ(s2mk):\n ...
[ "0.7641354", "0.725415", "0.69645905", "0.69185525", "0.6581219", "0.64749396", "0.641715", "0.6382379", "0.6284491", "0.62648135", "0.6214528", "0.6208088", "0.61867833", "0.61248773", "0.6118234", "0.606565", "0.6049697", "0.60487807", "0.60462594", "0.60399985", "0.603011"...
0.55683523
65
Onehotencode a sequence of nucleotide bases into an n x 4 matrix.
def asjB(Q6uT): V0Th = T__e(Q6uT) LL1M = oyIN.zeros([len(Q6uT), 4]) for YRbF in range(len(Q6uT)): LL1M[YRbF, V0Th[YRbF]] = 1.0 return LL1M
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o796(r7fB, hVLt=None, qBWR='ATCG'):\n r7fB = r7fB.upper()\n if hVLt is not None:\n E3D9 = hVLt\n else:\n E3D9 = len(r7fB)\n J6oK = oyIN.zeros((E3D9, 4))\n for YRbF in range(len(r7fB)):\n or8S = qBWR.index(r7fB[YRbF])\n J6oK[YRbF, or8S] = 1\n return J6oK", "def zG...
[ "0.7288033", "0.72256637", "0.72085834", "0.7127483", "0.71206766", "0.7023484", "0.6970436", "0.69018143", "0.6899087", "0.6722315", "0.6715902", "0.67091674", "0.6704166", "0.66994077", "0.66926754", "0.66704047", "0.66678244", "0.6641903", "0.66199684", "0.65666616", "0.65...
0.0
-1
Given a binary vector, pad all instances of 1's with pad_len 1's on either side to create blocks of >= 2pad_len + 1 consecutive 1's.
def MxNN(WKvO, eusk=10): exwG = len(WKvO) yqX4 = oyIN.arange(exwG)[WKvO == 1] if len(yqX4) == 0: return WKvO LVAh = oyIN.zeros(exwG) for or8S in yqX4: yKcO = max(or8S - eusk, 0) Os4s = min(or8S + eusk + 1, exwG) LVAh[yKcO:Os4s] = 1.0 return LVAh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gc7n(Q6uT):\n O2tj = Q6uT.strip().split('1')\n XVAW = O2tj[0]\n zsAc = XVAW + '1'\n BSnl = 0\n mnwT = 0\n for YRbF in range(1, len(O2tj) - 1):\n jvSB = O2tj[YRbF]\n if jvSB == XVAW:\n if XVAW == '-':\n zsAc += '+1'\n BSnl += 1\n ...
[ "0.6521439", "0.6397242", "0.63849115", "0.61514133", "0.6150783", "0.611182", "0.6102601", "0.6099215", "0.6020623", "0.600172", "0.5980226", "0.59765154", "0.5955084", "0.5941587", "0.5880511", "0.58745563", "0.58662134", "0.5857701", "0.5832661", "0.5802941", "0.57985437",...
0.78287786
0