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
``RegistrationProfile.send_activation_email`` sends an email.
def VMIm(YKHO): Q5YQ = Nc2H().objects.create_user(**YKHO.user_info) z39Z = YKHO.registration_profile.objects.create_profile(Q5YQ) z39Z.send_activation_email(HAC5.objects.get_current()) YKHO.assertEqual(cpYK.outbox[0].from_email, 'registration@email.com')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdMS(YKHO):\n RHyD = {'activation_key': YKHO.activation_key, 'expiration_days': gCuF.ACCOUNT_ACTIVATION_DAYS, 'user': YKHO.user, 'SITE_URL': gCuF.SITE_URL}\n U4ZT = eoaG('accounts/activation_email_subject.txt', RHyD)\n U4ZT = ''.join(U4ZT.splitlines())\n Ol8d = eoaG('accounts/activation_email_body....
[ "0.7949695", "0.79065245", "0.74792427", "0.73209125", "0.7295338", "0.71521664", "0.71488476", "0.7118745", "0.6992142", "0.6942355", "0.66829264", "0.6604554", "0.65535015", "0.65181637", "0.65029484", "0.64943045", "0.6489618", "0.6449097", "0.6443088", "0.64343107", "0.63...
0.6844352
10
``RegistrationProfile.send_activation_email`` sends an email.
def VeOv(YKHO): Q5YQ = Nc2H().objects.create_user(**YKHO.user_info) z39Z = YKHO.registration_profile.objects.create_profile(Q5YQ) z39Z.send_activation_email(HAC5.objects.get_current()) YKHO.assertEqual(cpYK.outbox[0].from_email, 'django@email.com')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdMS(YKHO):\n RHyD = {'activation_key': YKHO.activation_key, 'expiration_days': gCuF.ACCOUNT_ACTIVATION_DAYS, 'user': YKHO.user, 'SITE_URL': gCuF.SITE_URL}\n U4ZT = eoaG('accounts/activation_email_subject.txt', RHyD)\n U4ZT = ''.join(U4ZT.splitlines())\n Ol8d = eoaG('accounts/activation_email_body....
[ "0.7949695", "0.79065245", "0.74792427", "0.73209125", "0.7295338", "0.71521664", "0.71488476", "0.7118745", "0.6992142", "0.6942355", "0.6844352", "0.66829264", "0.6604554", "0.65535015", "0.65181637", "0.65029484", "0.64943045", "0.6489618", "0.6449097", "0.6443088", "0.643...
0.6296309
27
``RegistrationProfile.send_activation_email`` sends an email with the ``from`` address configured by the site.
def NJfp(YKHO): Q5YQ = Nc2H().objects.create_user(**YKHO.user_info) z39Z = YKHO.registration_profile.objects.create_profile(Q5YQ) qpDA = HAC5.objects.get_current() z39Z.send_activation_email(qpDA) sIWq = 'admin@{}'.format(qpDA.domain) YKHO.assertEqual(cpYK.outbox[0].from_email, sIWq)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdMS(YKHO):\n RHyD = {'activation_key': YKHO.activation_key, 'expiration_days': gCuF.ACCOUNT_ACTIVATION_DAYS, 'user': YKHO.user, 'SITE_URL': gCuF.SITE_URL}\n U4ZT = eoaG('accounts/activation_email_subject.txt', RHyD)\n U4ZT = ''.join(U4ZT.splitlines())\n Ol8d = eoaG('accounts/activation_email_body....
[ "0.76894623", "0.7427498", "0.736338", "0.73333824", "0.727794", "0.71633375", "0.7155248", "0.6977253", "0.6938941", "0.6697889", "0.66020495", "0.659564", "0.6589177", "0.6512339", "0.6472171", "0.6423645", "0.63828295", "0.63771296", "0.63559425", "0.6335049", "0.63266003"...
0.7354725
3
``RegistrationProfile.send_activation_email`` won't send an email if improperly configured.
def drOB(YKHO): Q5YQ = Nc2H().objects.create_user(**YKHO.user_info) z39Z = YKHO.registration_profile.objects.create_profile(Q5YQ) with YKHO.assertRaises(rqaQ): z39Z.send_activation_email(HAC5.objects.get_current())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rwp1(YKHO, VUts, G68j=None, Cr83=None, U4ZT=None, jlt3=None, **B2fa):\n uJjO = VUts.user.id\n H5ew = VUts.activation_key\n YKHO._send_email(confirmation_profile=VUts, url=gxEw('users.activate', args=[uJjO, H5ew]), subject=U4ZT or bGrB('Please confirm your email address'), text_template=G68j or 'users/...
[ "0.75561", "0.7538538", "0.73136663", "0.7299038", "0.7277031", "0.721585", "0.71819395", "0.6920575", "0.688873", "0.6870609", "0.68241763", "0.68005157", "0.6773182", "0.67697835", "0.6691519", "0.66737664", "0.6661781", "0.6634517", "0.6549644", "0.6508386", "0.64143443", ...
0.68423826
10
``RegistrationProfile.activation_key_expired()`` is ``False`` within the activation window. Even if the user was created in the past.
def pe_A(YKHO): YKHO.user_info['date_joined'] = RN2L() - fCoM(gCuF.ACCOUNT_ACTIVATION_DAYS + 1) Q5YQ = YKHO.registration_profile.objects.create_inactive_user(site=HAC5.objects.get_current(), **YKHO.user_info) z39Z = YKHO.registration_profile.objects.get(user=Q5YQ) YKHO.assertFalse(z39Z.activation_key_ex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BIyx(YKHO):\n ad72 = qcWV.timedelta(days=gCuF.ACCOUNT_ACTIVATION_DAYS)\n return YKHO.activation_key == x85C.ACTIVATED or YKHO.user.date_joined + ad72 <= qcWV.datetime.now()", "def BIyx(YKHO):\n ad72 = qcWV.timedelta(days=gCuF.ACCOUNT_ACTIVATION_DAYS)\n return YKHO.user.date_joined + ad72 <= qcWV....
[ "0.86101323", "0.8551831", "0.8493373", "0.8389834", "0.83643293", "0.82226425", "0.82189536", "0.7981806", "0.79596514", "0.7958026", "0.7926819", "0.7852483", "0.7705962", "0.7563689", "0.75202036", "0.7202501", "0.71821123", "0.71781164", "0.71226853", "0.7067573", "0.7025...
0.7098458
19
``RegistrationProfile.activation_key_expired()`` is ``False`` within the activation window.
def KAE8(YKHO): Q5YQ = YKHO.registration_profile.objects.create_inactive_user(site=HAC5.objects.get_current(), **YKHO.user_info) z39Z = YKHO.registration_profile.objects.get(user=Q5YQ) YKHO.assertFalse(z39Z.activation_key_expired())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BIyx(YKHO):\n ad72 = qcWV.timedelta(days=gCuF.ACCOUNT_ACTIVATION_DAYS)\n return YKHO.activation_key == x85C.ACTIVATED or YKHO.user.date_joined + ad72 <= qcWV.datetime.now()", "def BIyx(YKHO):\n ad72 = qcWV.timedelta(days=gCuF.ACCOUNT_ACTIVATION_DAYS)\n return YKHO.user.date_joined + ad72 <= qcWV....
[ "0.82939416", "0.8242265", "0.81896764", "0.8142267", "0.8115104", "0.7671749", "0.7664502", "0.7395705", "0.73860854", "0.7371087", "0.72821814", "0.72067547", "0.7109646", "0.7076913", "0.7049064", "0.68543893", "0.6730856", "0.66777366", "0.6648433", "0.6633406", "0.653713...
0.73560894
10
``RegistrationProfile.activation_key_expired()`` is ``True`` when the account is already active.
def OzHF(YKHO): Q5YQ = YKHO.registration_profile.objects.create_inactive_user(site=HAC5.objects.get_current(), **YKHO.user_info) z39Z = YKHO.registration_profile.objects.get(user=Q5YQ) YKHO.registration_profile.objects.activate_user(z39Z.activation_key, HAC5.objects.get_current()) z39Z.refresh_from_db()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BIyx(YKHO):\n ad72 = qcWV.timedelta(days=gCuF.ACCOUNT_ACTIVATION_DAYS)\n return YKHO.activation_key == x85C.ACTIVATED or YKHO.user.date_joined + ad72 <= qcWV.datetime.now()", "def BIyx(YKHO):\n ad72 = qcWV.timedelta(days=gCuF.ACCOUNT_ACTIVATION_DAYS)\n return YKHO.activation_key == 'ALREADY_ACTIV...
[ "0.847925", "0.8473135", "0.8437289", "0.82632077", "0.8221293", "0.8038691", "0.8031182", "0.7994014", "0.7711129", "0.770146", "0.74515724", "0.7400366", "0.7337085", "0.73257303", "0.72925615", "0.7184183", "0.71287096", "0.7052126", "0.7045366", "0.7013834", "0.6941264", ...
0.8071736
5
``RegistrationProfile.activation_key_expired()`` is ``True`` when the account is already active and the activation window has passed.
def x4E6(YKHO): Q5YQ = YKHO.registration_profile.objects.create_inactive_user(site=HAC5.objects.get_current(), **YKHO.user_info) Q5YQ.date_joined -= qcWV.timedelta(days=gCuF.ACCOUNT_ACTIVATION_DAYS + 1) Q5YQ.save() z39Z = YKHO.registration_profile.objects.get(user=Q5YQ) YKHO.registration_profile.obj...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BIyx(YKHO):\n ad72 = qcWV.timedelta(days=gCuF.ACCOUNT_ACTIVATION_DAYS)\n return YKHO.activation_key == x85C.ACTIVATED or YKHO.user.date_joined + ad72 <= qcWV.datetime.now()", "def BIyx(YKHO):\n ad72 = qcWV.timedelta(days=gCuF.ACCOUNT_ACTIVATION_DAYS)\n return YKHO.activation_key == 'ALREADY_ACTIV...
[ "0.8560944", "0.8532134", "0.849496", "0.8378311", "0.8347782", "0.8022357", "0.7998295", "0.7966149", "0.7838549", "0.767627", "0.7375217", "0.7321083", "0.7263128", "0.7259876", "0.712038", "0.7104367", "0.7069715", "0.70576113", "0.69714934", "0.69031584", "0.6867958", "...
0.8001795
6
``RegistrationProfile.activation_key_expired()`` is ``True`` outside the activation window.
def MSA5(YKHO): Q5YQ = YKHO.registration_profile.objects.create_inactive_user(site=HAC5.objects.get_current(), **YKHO.user_info) Q5YQ.date_joined -= qcWV.timedelta(days=gCuF.ACCOUNT_ACTIVATION_DAYS + 1) Q5YQ.save() z39Z = YKHO.registration_profile.objects.get(user=Q5YQ) YKHO.assertTrue(z39Z.activati...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BIyx(YKHO):\n ad72 = qcWV.timedelta(days=gCuF.ACCOUNT_ACTIVATION_DAYS)\n return YKHO.activation_key == x85C.ACTIVATED or YKHO.user.date_joined + ad72 <= qcWV.datetime.now()", "def BIyx(YKHO):\n ad72 = qcWV.timedelta(days=gCuF.ACCOUNT_ACTIVATION_DAYS)\n return YKHO.user.date_joined + ad72 <= qcWV....
[ "0.8257134", "0.82151777", "0.81876385", "0.81148624", "0.8075003", "0.7468668", "0.7434815", "0.740106", "0.7277542", "0.72754884", "0.7113131", "0.68426645", "0.68109626", "0.68080616", "0.67601717", "0.66782945", "0.6674066", "0.66577876", "0.6627815", "0.6522896", "0.6507...
0.72275496
10
Test resending activation email to an existing user
def J0CZ(YKHO): CBIr = YKHO.registration_profile.objects.create_inactive_user(site=HAC5.objects.get_current(), send_email=False, **YKHO.user_info) YKHO.assertEqual(len(cpYK.outbox), 0) z39Z = YKHO.registration_profile.objects.get(user=CBIr) tGBx = z39Z.activation_key YKHO.assertTrue(YKHO.registratio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mvIW(YKHO):\n CBIr = YKHO.registration_profile.objects.create_inactive_user(site=HAC5.objects.get_current(), send_email=False, **YKHO.user_info)\n z39Z = YKHO.registration_profile.objects.get(user=CBIr)\n CBIr, K_r6 = YKHO.registration_profile.objects.activate_user(z39Z.activation_key, HAC5.objects.ge...
[ "0.83999896", "0.8292599", "0.81918204", "0.80736554", "0.79771644", "0.7935104", "0.78606844", "0.76296455", "0.7612933", "0.75723714", "0.746926", "0.74641615", "0.7438704", "0.7394641", "0.73463005", "0.7321463", "0.73108983", "0.7279628", "0.72380596", "0.72116923", "0.71...
0.8512436
0
Test resending activation email to a nonexisting user
def JyVu(YKHO): YKHO.assertFalse(YKHO.registration_profile.objects.resend_activation_mail(email=YKHO.user_info['email'], site=HAC5.objects.get_current())) YKHO.assertEqual(len(cpYK.outbox), 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J0CZ(YKHO):\n CBIr = YKHO.registration_profile.objects.create_inactive_user(site=HAC5.objects.get_current(), send_email=False, **YKHO.user_info)\n YKHO.assertEqual(len(cpYK.outbox), 0)\n z39Z = YKHO.registration_profile.objects.get(user=CBIr)\n tGBx = z39Z.activation_key\n YKHO.assertTrue(YKHO.r...
[ "0.82796556", "0.82518494", "0.82356507", "0.8166747", "0.81311166", "0.77691895", "0.76394284", "0.7639169", "0.7480525", "0.7434209", "0.7420683", "0.73485184", "0.7306991", "0.7222386", "0.7206487", "0.7183373", "0.7159346", "0.71508497", "0.71354586", "0.7133031", "0.7125...
0.83734745
0
Make sure that users created with the old create_new_activation_key method can still be activated.
def uHii(YKHO): Saof = YKHO.registration_profile.create_new_activation_key def licR(YKHO, xkzz=True): NTfD = HBct.sha1(str(tuKI.random()).encode('ascii')).hexdigest()[:5] NTfD = NTfD.encode('ascii') NcAh = str(YKHO.user.pk) if isinstance(NcAh, str): NcAh = NcAh.encod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uHii(YKHO):\n Saof = YKHO.registration_profile.create_new_activation_key\n\n def licR(YKHO, xkzz=True):\n NTfD = HBct.sha1(str(tuKI.random()).encode('ascii')).hexdigest()[:5]\n NTfD = NTfD.encode('ascii')\n NcAh = str(YKHO.user.pk)\n if isinstance(NcAh, str):\n NcAh...
[ "0.80733716", "0.7934203", "0.7856112", "0.7726737", "0.7689222", "0.76855624", "0.7584228", "0.7542768", "0.75306755", "0.7386188", "0.73742163", "0.72761464", "0.7140411", "0.70580685", "0.6964887", "0.69541126", "0.69507843", "0.6939093", "0.6906592", "0.67780584", "0.6769...
0.8035581
1
Make sure that users created with the old create_new_activation_key method can still be activated.
def bk8U(YKHO): Saof = YKHO.registration_profile.create_new_activation_key def licR(YKHO, xkzz=True): BWvy = GLL2(length=32, allowed_chars=vIwR.printable) YKHO.activation_key = HBct.sha1(BWvy.encode()).hexdigest() if xkzz: YKHO.save() return YKHO.activation_key Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uHii(YKHO):\n Saof = YKHO.registration_profile.create_new_activation_key\n\n def licR(YKHO, xkzz=True):\n NTfD = HBct.sha1(str(tuKI.random()).encode('ascii')).hexdigest()[:5]\n NTfD = NTfD.encode('ascii')\n NcAh = str(YKHO.user.pk)\n if isinstance(NcAh, str):\n NcAh...
[ "0.8071676", "0.8033863", "0.7933081", "0.7854976", "0.77255726", "0.76887643", "0.7583042", "0.75415534", "0.7530136", "0.7385372", "0.7373074", "0.7275384", "0.7139133", "0.70563346", "0.69630754", "0.6953569", "0.6950548", "0.6938408", "0.6905752", "0.6776311", "0.6768379"...
0.7684377
6
``SupervisedRegistrationProfile.activation_key_expired()`` is ``True`` when the account is already active.
def OzHF(YKHO): Q5YQ = YKHO.registration_profile.objects.create_inactive_user(site=HAC5.objects.get_current(), **YKHO.user_info) z39Z = YKHO.registration_profile.objects.get(user=Q5YQ) YKHO.registration_profile.objects.activate_user(z39Z.activation_key, HAC5.objects.get_current()) YKHO.registration_prof...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BIyx(YKHO):\n ad72 = qcWV.timedelta(days=gCuF.ACCOUNT_ACTIVATION_DAYS)\n return YKHO.activation_key == 'ALREADY_ACTIVATED' or YKHO.user.date_joined + ad72 <= qcWV.datetime.now()", "def BIyx(YKHO):\n ad72 = qcWV.timedelta(days=gCuF.ACCOUNT_ACTIVATION_DAYS)\n return YKHO.activation_key == x85C.ACTI...
[ "0.8400178", "0.8375826", "0.8357075", "0.8196818", "0.81614023", "0.80347884", "0.7955996", "0.792461", "0.75959367", "0.7594405", "0.7390242", "0.73472744", "0.7329091", "0.7320324", "0.7311677", "0.7108112", "0.7096362", "0.70484674", "0.6970755", "0.6959066", "0.69567466"...
0.80113006
6
``SupervisedRegistrationProfile.activation_key_expired()`` is ``True`` when the account is already active and the activation window has passed.
def x4E6(YKHO): Q5YQ = YKHO.registration_profile.objects.create_inactive_user(site=HAC5.objects.get_current(), **YKHO.user_info) Q5YQ.date_joined -= qcWV.timedelta(days=gCuF.ACCOUNT_ACTIVATION_DAYS + 1) Q5YQ.save() z39Z = YKHO.registration_profile.objects.get(user=Q5YQ) YKHO.registration_profile.obj...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BIyx(YKHO):\n ad72 = qcWV.timedelta(days=gCuF.ACCOUNT_ACTIVATION_DAYS)\n return YKHO.activation_key == x85C.ACTIVATED or YKHO.user.date_joined + ad72 <= qcWV.datetime.now()", "def BIyx(YKHO):\n ad72 = qcWV.timedelta(days=gCuF.ACCOUNT_ACTIVATION_DAYS)\n return YKHO.activation_key == 'ALREADY_ACTIV...
[ "0.84482336", "0.8440654", "0.8394967", "0.82949084", "0.82747465", "0.7995131", "0.79853874", "0.7925615", "0.7715227", "0.7577623", "0.731007", "0.72762275", "0.72216195", "0.7154178", "0.71412414", "0.709966", "0.70434207", "0.70117044", "0.6905254", "0.6886078", "0.686227...
0.7901429
8
Approving a non existent user profile does nothing and returns False
def XfLY(YKHO): Q5YQ = YKHO.registration_profile.objects.create_inactive_user(site=HAC5.objects.get_current(), **YKHO.user_info) z39Z = YKHO.registration_profile.objects.get(user=Q5YQ) CBIr = YKHO.registration_profile.objects.admin_approve_user(z39Z.id, HAC5.objects.get_current()) YKHO.assertIs(CBIr, Fa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MaER(YKHO):\n Q5YQ = YKHO.registration_profile.objects.create_inactive_user(site=HAC5.objects.get_current(), **YKHO.user_info)\n z39Z = YKHO.registration_profile.objects.get(user=Q5YQ)\n CBIr = YKHO.registration_profile.objects.admin_approve_user(z39Z.id, HAC5.objects.get_current())\n YKHO.assertIs...
[ "0.7211909", "0.704508", "0.666929", "0.6517962", "0.65164953", "0.645244", "0.6382132", "0.6325677", "0.62553895", "0.6239202", "0.6206933", "0.62003577", "0.616768", "0.6134095", "0.6110486", "0.6090319", "0.60772467", "0.6069243", "0.6048604", "0.6048152", "0.6034915", "...
0.7436616
0
Make sure that users created with the old create_new_activation_key method can still be activated.
def uHii(YKHO): Saof = YKHO.registration_profile.create_new_activation_key def licR(YKHO, xkzz=True): NTfD = HBct.sha1(str(tuKI.random()).encode('ascii')).hexdigest()[:5] NTfD = NTfD.encode('ascii') NcAh = str(YKHO.user.pk) if isinstance(NcAh, str): NcAh = NcAh.encod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uHii(YKHO):\n Saof = YKHO.registration_profile.create_new_activation_key\n\n def licR(YKHO, xkzz=True):\n NTfD = HBct.sha1(str(tuKI.random()).encode('ascii')).hexdigest()[:5]\n NTfD = NTfD.encode('ascii')\n NcAh = str(YKHO.user.pk)\n if isinstance(NcAh, str):\n NcAh...
[ "0.8035581", "0.7934203", "0.7856112", "0.7726737", "0.7689222", "0.76855624", "0.7584228", "0.7542768", "0.75306755", "0.7386188", "0.73742163", "0.72761464", "0.7140411", "0.70580685", "0.6964887", "0.69541126", "0.69507843", "0.6939093", "0.6906592", "0.67780584", "0.67694...
0.80733716
0
Make sure that users created with the old create_new_activation_key method can still be activated.
def bk8U(YKHO): Saof = YKHO.registration_profile.create_new_activation_key def licR(YKHO, xkzz=True): BWvy = GLL2(length=32, allowed_chars=vIwR.printable) YKHO.activation_key = HBct.sha1(BWvy.encode()).hexdigest() if xkzz: YKHO.save() return YKHO.activation_key Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uHii(YKHO):\n Saof = YKHO.registration_profile.create_new_activation_key\n\n def licR(YKHO, xkzz=True):\n NTfD = HBct.sha1(str(tuKI.random()).encode('ascii')).hexdigest()[:5]\n NTfD = NTfD.encode('ascii')\n NcAh = str(YKHO.user.pk)\n if isinstance(NcAh, str):\n NcAh...
[ "0.8071676", "0.8033863", "0.7933081", "0.7854976", "0.76887643", "0.7684377", "0.7583042", "0.75415534", "0.7530136", "0.7385372", "0.7373074", "0.7275384", "0.7139133", "0.70563346", "0.69630754", "0.6953569", "0.6950548", "0.6938408", "0.6905752", "0.6776311", "0.6768379",...
0.77255726
4
Approving a non existent user profile does nothing and returns False
def keiV(YKHO): Q5YQ = YKHO.registration_profile.objects.create_inactive_user(site=HAC5.objects.get_current(), **YKHO.user_info) with YKHO.assertRaises(rqaQ): YKHO.registration_profile.objects.send_admin_approve_email(Q5YQ, HAC5.objects.get_current())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XfLY(YKHO):\n Q5YQ = YKHO.registration_profile.objects.create_inactive_user(site=HAC5.objects.get_current(), **YKHO.user_info)\n z39Z = YKHO.registration_profile.objects.get(user=Q5YQ)\n CBIr = YKHO.registration_profile.objects.admin_approve_user(z39Z.id, HAC5.objects.get_current())\n YKHO.assertIs...
[ "0.7436616", "0.7211909", "0.704508", "0.666929", "0.6517962", "0.65164953", "0.645244", "0.6382132", "0.6325677", "0.62553895", "0.6239202", "0.6206933", "0.62003577", "0.616768", "0.6134095", "0.6110486", "0.6090319", "0.60772467", "0.6069243", "0.6048604", "0.6048152", "...
0.59410995
31
Approving a non existent user profile does nothing and returns False
def Wxqw(YKHO): Q5YQ = YKHO.registration_profile.objects.create_inactive_user(site=HAC5.objects.get_current(), **YKHO.user_info) with qmLP.catch_warnings(record=True) as _FoO: YKHO.registration_profile.objects.send_admin_approve_email(Q5YQ, HAC5.objects.get_current()) jqT_ = 'No warning triggere...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XfLY(YKHO):\n Q5YQ = YKHO.registration_profile.objects.create_inactive_user(site=HAC5.objects.get_current(), **YKHO.user_info)\n z39Z = YKHO.registration_profile.objects.get(user=Q5YQ)\n CBIr = YKHO.registration_profile.objects.admin_approve_user(z39Z.id, HAC5.objects.get_current())\n YKHO.assertIs...
[ "0.7436616", "0.7211909", "0.704508", "0.666929", "0.6517962", "0.65164953", "0.645244", "0.6382132", "0.6325677", "0.62553895", "0.6239202", "0.6206933", "0.62003577", "0.616768", "0.6134095", "0.6110486", "0.6090319", "0.60772467", "0.6069243", "0.6048604", "0.6048152", "...
0.0
-1
Area of a circle
def LA4l(r1VO=YiYP): f0tD = r1VO * YiYP * 3.142 print('Calculating area...') ITS7.sleep(2) return f0tD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yX2h(FV9o):\n return mM0K * FV9o.radius * FV9o.radius", "def LA4l(r1VO):\n return r1VO", "def f0tD(YKHO):\n yX2h = YKHO.radius * YKHO.radius * epAf.pi\n return yX2h", "def SCx4(r1VO):\n return epAf.pi * r1VO * r1VO", "def CUf1(Mkmy):\n return Mkmy ** 2 * epAf.pi", "def yX2h(r1VO):\n...
[ "0.87967515", "0.8697741", "0.8523346", "0.84880656", "0.84618044", "0.84374386", "0.8413479", "0.8336493", "0.82823867", "0.82823867", "0.8215312", "0.817681", "0.81382656", "0.81382656", "0.8114525", "0.8099303", "0.8080847", "0.8073403", "0.8031185", "0.8007116", "0.798425...
0.7675476
27
Computes IUO between two bboxes in the form [x1,y1,x2,y2]
def RjuK(xNOe, PG8m): frsW = oyIN.maximum(xNOe[0], PG8m[0]) TdlV = oyIN.maximum(xNOe[1], PG8m[1]) yjMy = oyIN.minimum(xNOe[2], PG8m[2]) YvNL = oyIN.minimum(xNOe[3], PG8m[3]) yzQ0 = oyIN.maximum(0.0, yjMy - frsW) MKlR = oyIN.maximum(0.0, YvNL - TdlV) BQsO = yzQ0 * MKlR z1Rg = BQsO / ((xNO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rxci(wGB6, QFOH):\n wGB6 = oyIN.array(wGB6)\n QFOH = oyIN.array(QFOH)\n ko6_ = (wGB6[..., 2] - wGB6[..., 0]) * (wGB6[..., 3] - wGB6[..., 1])\n D4ph = (QFOH[..., 2] - QFOH[..., 0]) * (QFOH[..., 3] - QFOH[..., 1])\n Frej = oyIN.maximum(wGB6[..., :2], QFOH[..., :2])\n szuA = oyIN.minimum(wGB6[.....
[ "0.7835872", "0.76479733", "0.75411224", "0.7489639", "0.7474853", "0.7459696", "0.7459484", "0.7459484", "0.7443315", "0.7419611", "0.73922247", "0.7391839", "0.7327725", "0.7315838", "0.73052406", "0.7246565", "0.7230692", "0.72218716", "0.7210955", "0.7180109", "0.70957893...
0.0
-1
Return root mean square energy of the audio in decibels.
def wGt3(nPrm): qLtS = oyIN.mean(nPrm ** 2) return 10 * oyIN.log10(qLtS)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VYvU(nPrm):\n return oyIN.real(oyIN.mean(oyIN.abs(nPrm) ** 2, axis=1))", "def caa_(YKHO):\n return oyIN.sqrt(YKHO.maxint) * YKHO.weights", "def _Wgu(ut5U):\n lz9e = 9.7846113e-07\n EI9L = 12.263868\n G1Hx = oyIN.sqrt(ut5U + lz9e * ut5U ** 2) / EI9L\n return G1Hx", "def VYvU(tTpl: float)...
[ "0.6872344", "0.67966384", "0.6599035", "0.6563712", "0.65591514", "0.65446734", "0.6524143", "0.6522738", "0.65193045", "0.64933807", "0.646895", "0.6452153", "0.6442864", "0.64361703", "0.63224447", "0.62662745", "0.62287545", "0.6215246", "0.61966306", "0.61746836", "0.615...
0.0
-1
Tests if a number n is prime
def T1qg(exwG): if exwG <= 1: return False for YRbF in range(2, exwG): if exwG % YRbF == 0: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBNJ(exwG):\n return T1qg(exwG)", "def FBNJ(exwG):\n return T1qg(exwG)", "def T1qg(exwG):\n return kU5Q(exwG)", "def FBNJ(exwG):\n if exwG % 2 == 0:\n return False\n return all((exwG % YRbF for YRbF in range(3, int(exwG ** 0.5) + 1, 2)))", "def JVAb(Emd4, exwG):\n if exwG <= 1:...
[ "0.8657328", "0.8614113", "0.847204", "0.8440417", "0.8401939", "0.83987176", "0.8387073", "0.8378617", "0.8371008", "0.83604544", "0.83475083", "0.8344897", "0.83447963", "0.83371514", "0.83338034", "0.83172303", "0.83117396", "0.8308119", "0.830693", "0.83066714", "0.830362...
0.82753694
24
Makes a list of primes less than n
def kAOJ(exwG): uED7 = [] for YRbF in range(2, exwG): if T1qg(YRbF): uED7.append(YRbF) return uED7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rPed(exwG):\n return [YRbF for YRbF in Ni9Y(1, exwG + 1) if kU5Q(YRbF)]", "def VntY(exwG):\n if exwG <= 1:\n return []\n OMrD = [2]\n for YRbF in range(3, exwG, 2):\n T1qg = True\n for r845 in OMrD:\n if YRbF % r845 == 0:\n T1qg = False\n ...
[ "0.8713316", "0.8503495", "0.8476378", "0.83455896", "0.8327164", "0.8288371", "0.8264936", "0.82252353", "0.8222862", "0.8146621", "0.81397367", "0.8082055", "0.8082055", "0.80769616", "0.8067349", "0.80551946", "0.799892", "0.79690963", "0.7966319", "0.7964421", "0.79084826...
0.8633674
1
Get a specific row dat. This function insure that the edited line is complete and is properly formated.
def TZmD(YKHO, or8S): WhY1 = {'art': -1.0, 'wake': 0.0, 'n1': 1.0, 'n2': 2.0, 'n3': 3.0, 'rem': 4.0} bKCn = YKHO._get_fact_from_unit() jMN5 = '\nTable score error. Starting and ending time must be ' + 'float numbers (with time start < time end) and stage ' + 'must be Wake, N1, N2, N3, REM or Art' m4uY =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gXxG(YKHO):\n return YKHO._fin.readline().strip('\\n').strip(' ')", "def VTCK(YKHO, rdlD, Jyyj):\n if len(YKHO.field_map[Jyyj]) == 2:\n return rdlD[int(YKHO.field_map[Jyyj][0]) - 1:int(YKHO.field_map[Jyyj][1])].strip()\n if len(YKHO.field_map[Jyyj]) == 1:\n return rdlD[int(YKHO.field_m...
[ "0.6559713", "0.6327667", "0.6276837", "0.61381876", "0.6057434", "0.5994516", "0.598149", "0.5911314", "0.5810685", "0.577521", "0.57602894", "0.57408696", "0.57360333", "0.5720512", "0.56691647", "0.5636922", "0.5617813", "0.5617813", "0.55995077", "0.55831355", "0.55747783...
0.0
-1
Get the encoding type out of given item from the file.
def sx5_(nUeQ: str) -> B5_Q: try: with open(nUeQ, 'r') as eHNT: eHNT.read() except UnicodeDecodeError: tZ2K = B5_Q.DER else: tZ2K = B5_Q.PEM return tZ2K
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cSZr(nUeQ):\n with open(nUeQ, 'rb') as eHNT:\n LUcQ = eHNT.read()\n return TG53(LUcQ)['encoding']", "def YwLH(nUeQ):\n with open(nUeQ, 'r') as Aofo:\n return Aofo.readline().strip()", "def aG9_(IznC):\n nUeQ = open(IznC, 'rb')\n tZ2K = oXq5.detect(nUeQ.read())['encoding']\n ...
[ "0.7261095", "0.62854016", "0.6118274", "0.6100573", "0.6017653", "0.5980837", "0.594074", "0.5851768", "0.5766606", "0.5754866", "0.57493925", "0.57193446", "0.5664526", "0.56490785", "0.5646268", "0.5622929", "0.561016", "0.5590955", "0.558657", "0.5581057", "0.5568738", ...
0.6800192
1
Asks user to specify a city, month, and day to analyze.
def RxGd(): print("Hello! Let's explore some US bikeshare data!") h0yI = ['chicago', 'new york city', 'washington'] sp3M = ['january', 'february', 'march', 'april', 'may', 'june', 'all'] r8UL = ['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday', 'all'] while True: ...
{ "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.66714007", "0.65354675", "0.64593667", "0.6374057", "0.6348314", "0.63097656", "0.62868035", "0.6259136", "0.62316", "0.62130964", "0.62050414", "0.6181105", "0.6171822", "0.61686903", "0.6158568", "0.61582303", "0.61532456", "0.61444426", "0.6131269", "0.610484", "0.61025...
0.59671944
34
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.weekday_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.76225895
77
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z): print('\nCalculating The Most Frequent Times of Travel...\n') SWox = ITS7.time() CI50 = jQ3Z['month'].mode()[0] X_bn = {1: 'january', 2: 'february', 3: 'march', 4: 'april', 5: 'may', 6: 'june'} for mLGw, mWFP in X_bn.items(): if CI50 == mLGw: print('The most commo...
{ "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.7072392
88
Displays statistics on the most popular stations and trip.
def Huc_(jQ3Z): print('\nCalculating The Most Popular Stations and Trip...\n') SWox = ITS7.time() CuPk = jQ3Z['Start Station'].mode()[0] print('The most commonly used start station is: ', CuPk) nG3J = jQ3Z['End Station'].mode()[0] print('The most commonly used end station is: ', nG3J) tXBG =...
{ "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.68405586
93
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z): print('\nCalculating Trip Duration...\n') SWox = ITS7.time() sanW = jQ3Z['Trip Duration'].sum() print('Total Time traveled is: ', sanW) GdtM = jQ3Z['Trip Duration'].mean() print('Average Time traveled is: ', GdtM) print('\nThis took %s seconds.' % (ITS7.time() - SWox)) pr...
{ "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.78851086", "0.7884266", "0.7882474", "0.78738385", "0.78686154", "0.78664047", "0.7863...
0.7886722
14
Provide currently logged in user.
def oDDr(YKHO, U34r): if U34r.context.user.is_authenticated: return U34r.context.user return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W84Y(YKHO):\n return YKHO.current_user", "def c5ow(YKHO):\n fnHH = YKHO.auth.get_user_by_session()\n return YKHO.auth.store.user_model.get_by_id(fnHH['user_id'])", "def W84Y(YKHO):\n return YKHO.jira.current_user()", "def TKWP(YKHO):\n return YKHO.user", "def TKWP(YKHO):\n return YKHO...
[ "0.8721943", "0.85588825", "0.84461474", "0.84167224", "0.84167224", "0.8414067", "0.83997834", "0.83361864", "0.8332539", "0.8277089", "0.82207966", "0.8193016", "0.81717086", "0.81635326", "0.81255734", "0.8119643", "0.8103504", "0.803552", "0.80282533", "0.799265", "0.7962...
0.71884036
88
Trivial view to serve the `graphiql.html` file.
def t8YV(QePW): del QePW sKzQ = oAb3.Path(xAKo).absolute().parent / 'graphiql.html' with open(sKzQ) as eHNT: return hbZn.http.response.HttpResponse(eHNT.read())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HcOV():\n return TvZl('graphs.html')", "def kZiy():\n return TvZl('d3_graph.html')", "def DjNB():\n return TvZl('graph1.html')", "def pNZh(Rn65):\n return TvZl(Rn65)", "def NMoC(YKHO):\n YKHO.render('view.html')", "def gm5u():\n return TvZl('graph2.html')", "def NMoC(YKHO):\n Y...
[ "0.6823622", "0.67768425", "0.671672", "0.6425824", "0.64172035", "0.6391936", "0.63784313", "0.6268856", "0.6258848", "0.625319", "0.62249345", "0.6219032", "0.62177974", "0.6196758", "0.61770403", "0.61762196", "0.6161369", "0.61571264", "0.61453485", "0.61381763", "0.61381...
0.8503598
0
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ is None: return None FmIB = cmPJ.get('cycleRemaining') FrWI = cmPJ.get('cycleTomorrow') WLfQ = cmPJ.get('driverId') g7QD = cmPJ.get('driverName') l4jH = cmPJ.get('drivingInViolationCycle') bsVP = cmPJ.get('drivingInViolationToday') FawK = cmPJ.get('d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ is None:\n return None\n id = cmPJ.get('id')\n mWFP = cmPJ.get('name')\n tDvy = cmPJ.get('type')\n fFb7 = cmPJ.get('usageBytes')\n return Emd4(id, mWFP, tDvy, fFb7)", "def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)", "def eLpg(Emd4, cmPJ):\n return Em...
[ "0.83181584", "0.8168118", "0.8168118", "0.8118749", "0.8089047", "0.79787344", "0.7949278", "0.79231393", "0.7898951", "0.78923255", "0.788838", "0.7882321", "0.7882212", "0.7876749", "0.78585315", "0.7836853", "0.7801407", "0.7801407", "0.7801407", "0.7801407", "0.7801407",...
0.0
-1
Saved logged metrics into a json file
def xkzz(YKHO, xm5N=None): YKHO.protocol.commit(file_name_override=xm5N)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RHWF(N_e1, NArs):\n d1Wz = Hy7s.path.join(N_e1, 'metrics.json')\n with open(d1Wz, 'w') as eHNT:\n eHNT.write(qQXR.dumps(NArs))", "def GvWR(YKHO):\n with open('sensor_data.log', 'w') as eHNT:\n qQXR.dump(YKHO.read_continuous_data, eHNT)", "def M8gv(YKHO, uS0p):\n Hy7s.makedirs(uS0p...
[ "0.71709055", "0.71244407", "0.6989549", "0.68426085", "0.67097247", "0.67057693", "0.66966504", "0.66543776", "0.66480196", "0.65859544", "0.6578312", "0.6487556", "0.6447462", "0.64137137", "0.6408592", "0.63966864", "0.6364586", "0.6317079", "0.6303004", "0.62814814", "0.6...
0.0
-1
Calculate the normalized gini index without weights. It is a float between 1 and 1. The higher the value is, the closer the model, only taking into account the ordering of the values. A negative Gini means most of the time that the model inverts high values and low values. ordering of the target value.
def FBph(Y8eF, aMgO): assert Y8eF.shape == aMgO.shape cDK5 = Y8eF.shape[0] ezWE = oyIN.array([Y8eF, aMgO]).transpose() l4e1 = ezWE[ezWE[:, 0].argsort()][::-1, 0] Uppq = ezWE[ezWE[:, 1].argsort()][::-1, 0] qZ3D = oyIN.cumsum(l4e1) / oyIN.sum(l4e1) bFjn = oyIN.cumsum(Uppq) / oyIN.sum(Uppq) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Aevr(hkxX):\n Ty9i = hkxX.copy()\n Ty9i.sort()\n VNHK = 0\n for YRbF, LVAh in enumerate(Ty9i):\n YRbF += 1\n VNHK += YRbF * LVAh\n ze0m = sum(Ty9i)\n exwG = len(Ty9i)\n return 1 - (2 * VNHK / (exwG * ze0m) - (exwG + 1) / exwG)", "def cd_r(ntJ1):\n yvY1 = ntJ1 * (1 - ntJ1...
[ "0.63931614", "0.63931036", "0.63429064", "0.6149669", "0.6130019", "0.6096283", "0.60961545", "0.59859324", "0.5960882", "0.59328765", "0.5821902", "0.57501966", "0.5678476", "0.558463", "0.55258733", "0.5513415", "0.54865897", "0.541244", "0.54001695", "0.5383822", "0.53629...
0.50647783
37
pyzmq_version() Return the version of pyzmq as a string.
def CBhO(): if SKvt: return '@'.join([BtDU, SKvt[:6]]) else: return BtDU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j2oq():\n return '%i.%i.%i' % bxA9()", "def j2oq():\n return '%i.%i.%i' % bxA9()", "def GJO_():\n return bFMd", "def GJO_():\n import re\n SQ3m = re.findall('[0-9]+', BtDU)\n SQ3m = [int(XP5J) for XP5J in SQ3m]\n if 'dev' in BtDU:\n SQ3m.append(float('inf'))\n return tuple(...
[ "0.84373516", "0.84373516", "0.80661434", "0.6667663", "0.6549085", "0.6435804", "0.6347818", "0.6327694", "0.6327694", "0.6276691", "0.6276691", "0.6200533", "0.61859506", "0.61743695", "0.6147893", "0.61379194", "0.60783356", "0.6067122", "0.6050079", "0.6044156", "0.604415...
0.8878596
0
zmq_version() Return the version of ZeroMQ itself as a string.
def j2oq(): return '%i.%i.%i' % bxA9()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CBhO():\n if SKvt:\n return '@'.join([BtDU, SKvt[:6]])\n else:\n return BtDU", "def CBhO():\n if SKvt:\n return '@'.join([BtDU, SKvt[:6]])\n else:\n return BtDU", "def GJO_():\n return bFMd", "def IexU(YKHO):\n return YKHO.server_version", "def GJO_():\n ...
[ "0.8685192", "0.8685192", "0.80834395", "0.674612", "0.6704914", "0.6492072", "0.6461652", "0.6461652", "0.6400034", "0.6352624", "0.63269675", "0.63269675", "0.63269675", "0.63269675", "0.63269675", "0.63120574", "0.6306926", "0.6306926", "0.62852186", "0.62732023", "0.62667...
0.87617785
0
Create and save yellowbrick visualizer image for model specificed
def XOjV(Lcqa, Z5wO, VJv0, H96n, Crrw, C3ST, fDz8, YVa6, NKOt): _OF_ = mK8Y(Lcqa, Z5wO, VJv0, H96n, Crrw, C3ST, fDz8, upsampled=YVa6) _OF_.evaluate() if YVa6 == True: Vxei = NKOt + str(C3ST).split('(')[0] + '/' + fDz8 + '_upsampled.png' else: Vxei = NKOt + str(C3ST).split('(')[0] + '/' +...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lRKY(C3ST):\n T0Bo = C3ST.predict([_9tk, ZHfW])\n Z_2H = qcWV.datetime.now().strftime('%Y-%m-%d-%H-%M-%S')\n WxUa = oyIN.concatenate([T0Bo, _9tk, ZHfW, fEKv], axis=2)\n for YRbF in range(len(WxUa)):\n U9Z2 = WxUa[YRbF]\n VXjJ = hnIv.fromarray(U9Z2.astype(oyIN.uint8))\n VXjJ.sav...
[ "0.66604346", "0.6626089", "0.66033375", "0.654884", "0.6471268", "0.6439516", "0.6375745", "0.6337654", "0.6334921", "0.6328005", "0.62666893", "0.6247176", "0.6222995", "0.6202766", "0.6198136", "0.6175613", "0.6159791", "0.61297286", "0.61181533", "0.6102077", "0.60640174"...
0.6954059
0
Ensure a new ad can be added to the database.
def Qzw3(YKHO): with YKHO.client: nPrm = {'category': 'food'} nPrm = {H5ew: str(BWXx) for H5ew, BWXx in nPrm.items()} nPrm['image'] = (xDSY.BytesIO(b'ad.png'), 'ad.png') geh0 = YKHO.client.post('/ads', data=nPrm, content_type='multipart/form-data') nPrm = qQXR.loads(geh0.data...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LX7E(l3QS):\n xUwc = VPhC()\n xeg0(xUwc, l3QS)", "def ynpb(YKHO):\n NCls.session.add(YKHO.short_url)\n with YKHO.assertRaises(i48E.exc.IntegrityError):\n NCls.session.commit()", "async def _ad_add(YKHO, OaeV, mS46: discord.Member):\n y7g5 = Pe9W.TalosAdmin((OaeV.guild.id, mS46.id))\n ...
[ "0.6350939", "0.5799389", "0.57665575", "0.56594", "0.56178635", "0.56089073", "0.5568797", "0.5566294", "0.5514329", "0.55101174", "0.54969716", "0.54820824", "0.5454322", "0.5448606", "0.5436308", "0.5435855", "0.542952", "0.5428207", "0.5416877", "0.53936774", "0.53893906"...
0.58857304
1
Make human readable repr of object
def SCNu(zZcM, MnRD=0, qsN3=False, ubKk=20): if q_TC(zZcM) or MnRD >= ubKk: MnRD = 0 if qsN3 else MnRD if isinstance(zZcM, (jKi7.binary_type, jKi7.text_type)): if isinstance(zZcM, jKi7.binary_type): vIwR = zZcM.decode(encoding='utf-8', errors='backslashreplace') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IAm3(Iup5):\n return repr(Iup5)", "def YxCo(YEnM):\n return repr(str(YEnM))", "def wHJl(YKHO):\n return repr(YKHO.__dict__['_obj'])", "def zAg0(YKHO):\n return str(YKHO.__dict__['_obj'])", "def zAg0(YKHO):\n return repr(YKHO)", "def zAg0(YKHO):\n return repr(YKHO)", "def wHJl(YKHO...
[ "0.8652125", "0.8316382", "0.7994549", "0.79661006", "0.7925168", "0.78912747", "0.78149796", "0.78074527", "0.78013045", "0.77802086", "0.7745705", "0.7745705", "0.7745705", "0.7745705", "0.7745705", "0.77302027", "0.77272815", "0.7692457", "0.76789665", "0.7673775", "0.7613...
0.0
-1
cast(itkLightObject obj) > itkThresholdSegmentationLevelSetImageFilterID2ID2D
def YWvJ(*qIxc): return h0Fo.itkThresholdSegmentationLevelSetImageFilterID2ID2D_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L6ZQ(*qIxc):\n return h0Fo.itkThresholdSegmentationLevelSetImageFilterID2ID2D_cast(*qIxc)", "def sYB5(*qIxc):\n return h0Fo.itkThresholdSegmentationLevelSetImageFilterIF2IF2F_cast(*qIxc)", "def YWvJ(*qIxc):\n return h0Fo.itkThresholdSegmentationLevelSetImageFilterIF2IF2F_cast(*qIxc)", "def YWvJ(...
[ "0.7317763", "0.69602925", "0.67005634", "0.654515", "0.65173227", "0.6511917", "0.64960444", "0.6478478", "0.64703274", "0.6445255", "0.6444223", "0.6410898", "0.63994706", "0.6398797", "0.63909125", "0.63687414", "0.6348721", "0.632899", "0.6326499", "0.6326468", "0.6312569...
0.7054719
1
New() > itkThresholdSegmentationLevelSetImageFilterID2ID2D Create a new object of the class itkThresholdSegmentationLevelSetImageFilterID2ID2D and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new ob...
def oW_4(*qIxc, **PECO): YEnM = QhQa.__New_orig__() import itkTemplate itkTemplate.New(YEnM, *qIxc, **PECO) return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oW_4(*qIxc, **PECO):\n YEnM = XUJG.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = z8kg.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.76449573", "0.6972659", "0.6953555", "0.69390565", "0.6938342", "0.68854594", "0.68711585", "0.67835695", "0.6757741", "0.6740783", "0.6740581", "0.6735739", "0.67284083", "0.6723157", "0.6708133", "0.6677817", "0.66719407", "0.66626775", "0.66591215", "0.66462713", "0.663...
0.8383676
0
itkThresholdSegmentationLevelSetImageFilterID2ID2D_cast(itkLightObject obj) > itkThresholdSegmentationLevelSetImageFilterID2ID2D
def L6ZQ(*qIxc): return h0Fo.itkThresholdSegmentationLevelSetImageFilterID2ID2D_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YWvJ(*qIxc):\n return h0Fo.itkThresholdSegmentationLevelSetImageFilterID2ID2D_cast(*qIxc)", "def sYB5(*qIxc):\n return h0Fo.itkThresholdSegmentationLevelSetImageFilterIF2IF2F_cast(*qIxc)", "def YWvJ(*qIxc):\n return h0Fo.itkThresholdSegmentationLevelSetImageFilterIF2IF2F_cast(*qIxc)", "def cIO0(...
[ "0.7294599", "0.70769775", "0.6743314", "0.6553998", "0.65133744", "0.6460269", "0.6445589", "0.64438605", "0.6434699", "0.6419761", "0.64042693", "0.64037067", "0.6375267", "0.63676065", "0.636465", "0.6340213", "0.6332837", "0.63279384", "0.63178873", "0.6315206", "0.629502...
0.77298045
0
cast(itkLightObject obj) > itkThresholdSegmentationLevelSetImageFilterID3ID3D
def YWvJ(*qIxc): return h0Fo.itkThresholdSegmentationLevelSetImageFilterID3ID3D_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tAgJ(*qIxc):\n return h0Fo.itkThresholdSegmentationLevelSetImageFilterID3ID3D_cast(*qIxc)", "def uZfi(*qIxc):\n return h0Fo.itkThresholdSegmentationLevelSetImageFilterIF3IF3F_cast(*qIxc)", "def YWvJ(YEnM: 'itkLightObject') -> 'itkHuangThresholdImageFilterIF3IUS3 *':\n return twC5.itkHuangThreshold...
[ "0.7209301", "0.68689644", "0.6615143", "0.6600894", "0.651897", "0.65104765", "0.64990205", "0.6474515", "0.64730364", "0.6470683", "0.64666504", "0.64618325", "0.6459481", "0.64516294", "0.64422476", "0.6437559", "0.63825923", "0.63612485", "0.6354498", "0.63529867", "0.635...
0.6889926
1
New() > itkThresholdSegmentationLevelSetImageFilterID3ID3D Create a new object of the class itkThresholdSegmentationLevelSetImageFilterID3ID3D and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new ob...
def oW_4(*qIxc, **PECO): YEnM = xuLK.__New_orig__() import itkTemplate itkTemplate.New(YEnM, *qIxc, **PECO) return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oW_4(*qIxc, **PECO):\n YEnM = FBk8.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = PqKi.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.78972745", "0.71143615", "0.70890355", "0.6992841", "0.69659144", "0.69288987", "0.6889642", "0.68776995", "0.6869911", "0.6847723", "0.6847122", "0.6831883", "0.6824473", "0.6822326", "0.68186426", "0.681508", "0.68134487", "0.681233", "0.68105024", "0.6805832", "0.679231...
0.8504184
0
itkThresholdSegmentationLevelSetImageFilterID3ID3D_cast(itkLightObject obj) > itkThresholdSegmentationLevelSetImageFilterID3ID3D
def tAgJ(*qIxc): return h0Fo.itkThresholdSegmentationLevelSetImageFilterID3ID3D_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YWvJ(*qIxc):\n return h0Fo.itkThresholdSegmentationLevelSetImageFilterID3ID3D_cast(*qIxc)", "def uZfi(*qIxc):\n return h0Fo.itkThresholdSegmentationLevelSetImageFilterIF3IF3F_cast(*qIxc)", "def YWvJ(*qIxc):\n return h0Fo.itkThresholdSegmentationLevelSetImageFilterIF3IF3F_cast(*qIxc)", "def MRbK(...
[ "0.719463", "0.7146745", "0.6782238", "0.67221576", "0.66516876", "0.6632296", "0.661204", "0.6539844", "0.65397674", "0.6532192", "0.652296", "0.65126014", "0.65101147", "0.65098053", "0.6495247", "0.6489122", "0.6486863", "0.64809346", "0.6472191", "0.64660865", "0.6464932"...
0.7688943
0
cast(itkLightObject obj) > itkThresholdSegmentationLevelSetImageFilterIF2IF2F
def YWvJ(*qIxc): return h0Fo.itkThresholdSegmentationLevelSetImageFilterIF2IF2F_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sYB5(*qIxc):\n return h0Fo.itkThresholdSegmentationLevelSetImageFilterIF2IF2F_cast(*qIxc)", "def KGB6(YEnM: 'itkLightObject') -> 'itkBinaryContourImageFilterIF2IF2 *':\n return xm6Z.itkBinaryContourImageFilterIF2IF2_cast(YEnM)", "def Pit5(YEnM: 'itkLightObject') -> 'itkNotImageFilterIF2IF2 *':\n r...
[ "0.76542753", "0.68155116", "0.6797408", "0.6748474", "0.6747602", "0.67378294", "0.67185706", "0.66765267", "0.66664845", "0.6659888", "0.6634118", "0.6613836", "0.66097015", "0.65771776", "0.65644", "0.65612817", "0.6527321", "0.652634", "0.65179163", "0.65167093", "0.64896...
0.72226197
1
New() > itkThresholdSegmentationLevelSetImageFilterIF2IF2F Create a new object of the class itkThresholdSegmentationLevelSetImageFilterIF2IF2F and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new ob...
def oW_4(*qIxc, **PECO): YEnM = XUJG.__New_orig__() import itkTemplate itkTemplate.New(YEnM, *qIxc, **PECO) return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oW_4(*qIxc, **PECO):\n YEnM = QhQa.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = LWCW.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.74795395", "0.72359747", "0.7172076", "0.71413183", "0.7139767", "0.7006789", "0.6972409", "0.6958476", "0.69502664", "0.69376004", "0.6931795", "0.6912964", "0.69100153", "0.6900817", "0.6892454", "0.68917257", "0.68663836", "0.68546194", "0.6843664", "0.6824719", "0.6803...
0.8467628
0
itkThresholdSegmentationLevelSetImageFilterIF2IF2F_cast(itkLightObject obj) > itkThresholdSegmentationLevelSetImageFilterIF2IF2F
def sYB5(*qIxc): return h0Fo.itkThresholdSegmentationLevelSetImageFilterIF2IF2F_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YWvJ(*qIxc):\n return h0Fo.itkThresholdSegmentationLevelSetImageFilterIF2IF2F_cast(*qIxc)", "def KGB6(YEnM: 'itkLightObject') -> 'itkBinaryContourImageFilterIF2IF2 *':\n return xm6Z.itkBinaryContourImageFilterIF2IF2_cast(YEnM)", "def t2Xf(YEnM: 'itkLightObject') -> 'itkReinitializeLevelSetImageFilter...
[ "0.7546829", "0.70317763", "0.6924223", "0.69231355", "0.6912477", "0.6891269", "0.6876223", "0.6874975", "0.6874549", "0.6867892", "0.6814128", "0.67884517", "0.6784134", "0.67438495", "0.6678557", "0.6656256", "0.6651595", "0.6644246", "0.6642174", "0.6632778", "0.6630479",...
0.80827314
0
cast(itkLightObject obj) > itkThresholdSegmentationLevelSetImageFilterIF3IF3F
def YWvJ(*qIxc): return h0Fo.itkThresholdSegmentationLevelSetImageFilterIF3IF3F_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uZfi(*qIxc):\n return h0Fo.itkThresholdSegmentationLevelSetImageFilterIF3IF3F_cast(*qIxc)", "def YWvJ(YEnM: 'itkLightObject') -> 'itkHuangThresholdImageFilterIF3IUS3 *':\n return twC5.itkHuangThresholdImageFilterIF3IUS3_cast(YEnM)", "def HnTo(YEnM: 'itkLightObject') -> 'itkHuangThresholdImageFilterIF...
[ "0.7473776", "0.6951387", "0.69450647", "0.6919215", "0.6896403", "0.68893766", "0.68640095", "0.6810401", "0.6806885", "0.67720574", "0.6750099", "0.670569", "0.6699713", "0.6681266", "0.6679633", "0.66769445", "0.66750157", "0.6673079", "0.6664501", "0.6662498", "0.6658105"...
0.70774716
1
New() > itkThresholdSegmentationLevelSetImageFilterIF3IF3F Create a new object of the class itkThresholdSegmentationLevelSetImageFilterIF3IF3F and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new ob...
def oW_4(*qIxc, **PECO): YEnM = FBk8.__New_orig__() import itkTemplate itkTemplate.New(YEnM, *qIxc, **PECO) return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oW_4(*qIxc, **PECO):\n YEnM = xuLK.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = Gqp9.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.7859565", "0.7401686", "0.73201567", "0.7261661", "0.72541434", "0.7216809", "0.7158068", "0.71521986", "0.71271557", "0.71151334", "0.7108641", "0.71076304", "0.7092853", "0.70817626", "0.70721686", "0.70538735", "0.7051881", "0.7002831", "0.69878745", "0.69857913", "0.69...
0.86294013
0
itkThresholdSegmentationLevelSetImageFilterIF3IF3F_cast(itkLightObject obj) > itkThresholdSegmentationLevelSetImageFilterIF3IF3F
def uZfi(*qIxc): return h0Fo.itkThresholdSegmentationLevelSetImageFilterIF3IF3F_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YWvJ(*qIxc):\n return h0Fo.itkThresholdSegmentationLevelSetImageFilterIF3IF3F_cast(*qIxc)", "def HnTo(YEnM: 'itkLightObject') -> 'itkHuangThresholdImageFilterIF3ISS3 *':\n return twC5.itkHuangThresholdImageFilterIF3ISS3_cast(YEnM)", "def MRbK(YEnM: 'itkLightObject') -> 'itkHuangThresholdImageFilterIF...
[ "0.7516081", "0.72488433", "0.7213387", "0.7206106", "0.71808314", "0.71590215", "0.7137719", "0.7125754", "0.7115165", "0.7052657", "0.7004331", "0.6959764", "0.6950602", "0.6944445", "0.693499", "0.6925875", "0.69155777", "0.6906629", "0.68950164", "0.6867126", "0.686403", ...
0.8021722
0
Compute softmax values for each sets of scores in x.
def N93T(WKvO): uw5A = oyIN.exp(WKvO - oyIN.max(WKvO, axis=1).reshape(-1, 1)) return uw5A / oyIN.sum(uw5A, axis=1).reshape(-1, 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(YKHO, cCrA):\n MvhI = oyIN.sum(oyIN.exp(cCrA), axis=1, keepdims=True)\n N93T = oyIN.exp(cCrA) / MvhI\n return N93T", "def N93T(WKvO):\n j1LR = oyIN.exp(oyIN.asarray(WKvO))\n return j1LR / j1LR.sum(0)", "def N93T(cCrA):\n XeFQ = oyIN.exp(cCrA)\n return XeFQ / oyIN.sum(XeFQ)", "de...
[ "0.7796373", "0.7761191", "0.7759723", "0.77571064", "0.765803", "0.765803", "0.765803", "0.765803", "0.75856936", "0.74314815", "0.74069375", "0.73939854", "0.7358033", "0.7317298", "0.72690034", "0.7262341", "0.7261389", "0.72569704", "0.72300184", "0.72146094", "0.72015774...
0.71012366
37
Method to transform a float amount to text words E.g. 100 ONE HUNDRED
def n0bo(YKHO, Ojxp): YKHO.ensure_one() VIXL = YKHO.currency_id.name.upper() Z0rA = 'M.N' if VIXL == 'MXN' else 'M.E.' dXdn, wZ6_ = divmod(Ojxp, 1) wZ6_ = round(wZ6_, 2) wZ6_ = int(round(wZ6_ * 100, 2)) V22M = YKHO.currency_id.with_context(lang='es_ES').amount_to_text(dXdn).upper() UjY6 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dc7O(Z5kt):\n BHGE = {0: 'нуль', 1: 'одна', 2: 'дві', 3: 'три', 4: 'чотири', 5: \"п'ять\", 6: 'шість', 7: 'сім', 8: 'вісім', 9: \"дев'ять\", 10: 'десять', 11: 'одинадцять', 12: 'дванадцять', 13: 'тринадцять', 14: 'чотирнадцять', 15: \"п'ятнадцять\", 16: 'шістнадцять', 17: 'сімнадцять', 18: 'вісімнадцять', 1...
[ "0.69767445", "0.6734786", "0.65856355", "0.6414861", "0.62515616", "0.6240848", "0.6209962", "0.6184267", "0.6145886", "0.60546446", "0.604937", "0.60099334", "0.5943315", "0.59345275", "0.5928641", "0.5923201", "0.5918003", "0.585031", "0.5815089", "0.58010364", "0.5782184"...
0.5612742
26
Create misfits table if does not exist
def pyB_(YKHO, uPxI: str): return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def toCS(YKHO, uPxI: str, Bn0O: List[dict]):\n return", "def A5X0(YKHO) -> slhS.Table:\n tyNF = YKHO.client.create_table(table=slhS.Table(table_ref=YKHO._table_ref, schema=Ve9k), exists_ok=True)\n G9jH.info('table %s already exists.', tyNF.full_table_id)\n return tyNF", "def UCTI(YKHO):\n xDcj =...
[ "0.65010846", "0.6255917", "0.6072083", "0.6061742", "0.6058533", "0.5989394", "0.5968818", "0.5918865", "0.58964455", "0.587468", "0.5776405", "0.5760882", "0.57527506", "0.57400507", "0.5721688", "0.5705203", "0.56743723", "0.56445485", "0.56305426", "0.5610155", "0.5609625...
0.77973133
0
Create misfits table if does not exist
def toCS(YKHO, uPxI: str, Bn0O: List[dict]): return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pyB_(YKHO, uPxI: str):\n return", "def A5X0(YKHO) -> slhS.Table:\n tyNF = YKHO.client.create_table(table=slhS.Table(table_ref=YKHO._table_ref, schema=Ve9k), exists_ok=True)\n G9jH.info('table %s already exists.', tyNF.full_table_id)\n return tyNF", "def UCTI(YKHO):\n xDcj = 'create TABLE IF ...
[ "0.779613", "0.6259269", "0.6074648", "0.6065671", "0.6060536", "0.5993914", "0.59707904", "0.5923863", "0.59006983", "0.5877432", "0.5780372", "0.57664883", "0.57570076", "0.57453257", "0.5725309", "0.5710089", "0.5679856", "0.56471354", "0.5635639", "0.5615736", "0.5612979"...
0.64983237
1
Loads config from a yaml file
def LgIG(YKHO, Nu1S): if Nu1S is None: Nu1S = ljgl.__DEFAULT_CONFIG_PATH with open(Nu1S) as wOb_: _fuv = eJb6.safe_load(wOb_) YKHO.config = g3f2.create(_fuv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LgIG(Nu1S):\n with open(Nu1S) as eHNT:\n return eJb6.load(eHNT)", "def f9B0(Emd4, nUeQ=None):\n if nUeQ is None:\n nUeQ = f'{Elhn.base_path}cfg.yml'\n try:\n with open(nUeQ, 'r') as eHNT:\n GPtr = eJb6.load(eHNT, Loader=eJb6.FullLoader)\n _Fei.__dict__ = GPtr\n...
[ "0.8367653", "0.82981765", "0.82852507", "0.8280083", "0.8183604", "0.8169945", "0.8124675", "0.810506", "0.8099261", "0.80854475", "0.80707", "0.8066222", "0.80316937", "0.80060565", "0.7981556", "0.7947537", "0.79029316", "0.78784835", "0.7869254", "0.7832072", "0.7810559",...
0.0
-1
Gets the model state.
def ja6o(YKHO, GUux, a1PO): return YKHO._get_demand_supply_costs_df(GUux.ozone, a1PO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vDyO(YKHO) -> dict:\n raise NotImplementedError", "def ja6o(YKHO) -> h8nf[KcDH]:\n return YKHO.state", "def ja6o(YKHO):\n return YKHO.controller.get_state()", "def GBfH(YKHO):\n return YKHO.state", "def ja6o(YKHO):\n return YKHO.state", "def ja6o(YKHO):\n return YKHO.state", "def ...
[ "0.8376834", "0.81420416", "0.8069894", "0.80272377", "0.80264366", "0.80264366", "0.79990625", "0.79990625", "0.79990625", "0.79545265", "0.79545265", "0.79545265", "0.79545265", "0.79545265", "0.79030573", "0.79030573", "0.78839993", "0.7864819", "0.7822577", "0.7819333", "...
0.0
-1
Returns the critical angle if it exists for a ball moving from a medium with velocity `s0` to a medium with velocity `s1`. If the critical angle does not exist, returns None.
def rD1C(Esro: float, j93S: float) -> uLKX[float, None]: if Esro < j93S: G06l = epAf.asin(Esro / j93S) else: G06l = None return G06l
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h6C1(YylR: float, Esro: float, j93S: float) -> bool:\n if j93S > Esro:\n G06l = rD1C(Esro, j93S)\n if abs(YylR) >= G06l:\n return True\n return False", "def Tbd6(hQHm, jlSq):\n if oyIN.linalg.norm(hQHm) * oyIN.linalg.norm(jlSq) != 0:\n Wohk = oyIN.dot(hQHm, jlSq) / (o...
[ "0.6010786", "0.579282", "0.539038", "0.530186", "0.5274534", "0.52288604", "0.5030306", "0.4990997", "0.4958949", "0.49580598", "0.49514675", "0.49347538", "0.49278605", "0.49215996", "0.49145883", "0.4881637", "0.48812023", "0.4877278", "0.4851266", "0.48504397", "0.4849300...
0.7503091
0
Line representing the trajectory of the point on the bottom right corner of the rectangle
def XOP0(YKHO) -> NTRO: yKcO = PvyL(YKHO.shape.right_bound, YKHO.shape.bottom_bound) return NTRO(yKcO, yKcO + YKHO.velocity)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p7n2(YKHO):\n return YKHO._bottom_rect.move(0, 1)", "def zFiD():\n rxEN.left(90)\n rxEN.down()\n rxEN.forward(50)\n rxEN.up()\n rxEN.right(90)\n rxEN.forward(10)\n rxEN.right(90)\n rxEN.forward(50)\n rxEN.left(90)", "def Mh0j(YKHO) -> NTRO:\n yKcO = PvyL(YKHO.shape.left_bou...
[ "0.70809007", "0.68511844", "0.66570073", "0.66522264", "0.63814306", "0.6367143", "0.6353308", "0.6326941", "0.62217885", "0.6182864", "0.6161414", "0.61573404", "0.6155028", "0.61501205", "0.6149612", "0.61307883", "0.6123404", "0.61039734", "0.60611546", "0.60571724", "0.6...
0.6944726
1
Move the ball to the next position according to the speed of the layer it is in.
def Ni7o(YKHO, iBLD: Union[float, int]=None): Hydg = YKHO._get_trajectory(iBLD) YKHO._get_first_intersection(Hydg) vOGg = 0 if Hydg.intersection is None: YKHO.ball.pos = Hydg.center.end else: vOGg = YKHO._interaction_dispatcher(Hydg) return vOGg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iFx6(YKHO):\n YKHO.ball.move(YKHO.__dx, YKHO.__dy)", "def BZN_(YKHO):\n YKHO.position += YKHO.speed", "def gevY(YKHO):\n YKHO.canvas.move(YKHO.ball, YKHO.x_speed * YKHO.speed, YKHO.y_speed * YKHO.speed)\n EJp_, Wip_, Qv2E, riHt = YKHO.canvas.coords(YKHO.ball)\n if EJp_ <= 0 or Qv2E >= 400:\n...
[ "0.764544", "0.7546134", "0.7478087", "0.71920246", "0.7164236", "0.7124832", "0.7096922", "0.7061917", "0.6918336", "0.6897", "0.6879579", "0.67422515", "0.6686483", "0.6657752", "0.6624664", "0.6610424", "0.6597164", "0.6591763", "0.6568128", "0.6551132", "0.65332437", "0...
0.65152466
23
Test endpoints.post_pull_request_review with an incorrect signature
def gPmG(YKHO, eQF9, T0yH, w2B8, hm3S): w2B8.request.data.return_value = '' w2B8.request.headers.get.return_value = 'sha1=signature' hm3S.side_effect = qg7b('Error validating signature') geh0 = wnQ_.post_pull_request_review({}) DCgT = T0yH.return_value DCgT.get_config.return_value = 'config-data...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EdxQ(YKHO, eQF9, T0yH, w2B8, hm3S):\n w2B8.request.data.return_value = ''\n w2B8.request.headers.get.return_value = 'sha1=signature'\n hm3S.return_value = None\n DCgT = T0yH.return_value\n DCgT.get_config.return_value = {'context1': ['whitelist1'], 'context2': ['whitelist2']}\n eQF9.return_va...
[ "0.7453087", "0.7399019", "0.6997548", "0.6940954", "0.6869423", "0.6795312", "0.6534847", "0.64309883", "0.64241874", "0.628642", "0.62513655", "0.62419754", "0.6214618", "0.6212909", "0.6208724", "0.61728865", "0.6151403", "0.6101003", "0.60562", "0.60487765", "0.60104835",...
0.69309485
4
Compute the leaky ReLU activation function.
def KzM8(WKvO, Cwt5=0.01): return ZylS.maximum(WKvO, Cwt5 * WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KzM8(WKvO, Cwt5=0.01):\n return ZylS.maximum(WKvO, ZylS.multiply(WKvO, Cwt5))", "def Gr0H(YKHO):\n YKHO.assertEqual([-0.005, 0.5], list(fmAV.LeakyRelu(0.01).output(oyIN.array([-0.5, 0.5]))))\n YKHO.assertEqual([0.01, 1], list(fmAV.LeakyRelu(0.01).derivative(oyIN.array([-0.5, 0.5]))))", "def tRmQ(W...
[ "0.72324014", "0.7216286", "0.70243454", "0.70038503", "0.6969655", "0.6929563", "0.6864869", "0.6849147", "0.68292725", "0.68021005", "0.67519647", "0.67474496", "0.6747445", "0.6747445", "0.670609", "0.668123", "0.6672017", "0.66471547", "0.66453314", "0.6642755", "0.659231...
0.7314766
0
Returns the number of days in a month of a particular year.
def vhrV(lO87, x0eS): DCgp = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] if x0eS == 2 and eejf(lO87): return DCgp[1] + 1 else: return DCgp[x0eS - 1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JbMa(x0eS, CjKC, lO87):\n jvSB = 1\n ibtP = CjKC\n while jvSB < x0eS:\n ibtP = ibtP + D3aY(jvSB, lO87)\n jvSB = jvSB + 1\n return ibtP", "def utBZ(x0eS, lO87):\n if x0eS in [9, 4, 6, 11]:\n return 30\n elif x0eS == 2 and lO87 % 4 == 0 and (lO87 % 100 != 0 or lO87 % 400 ...
[ "0.8018876", "0.7938739", "0.7933974", "0.7761896", "0.76952803", "0.7582218", "0.75290364", "0.7435412", "0.73891866", "0.7312206", "0.72649264", "0.7197095", "0.7187798", "0.7179535", "0.7179535", "0.7179535", "0.7177935", "0.71364826", "0.7032886", "0.6970319", "0.68929315...
0.7600419
5
String for representing the Model object.
def zAg0(YKHO): return YKHO.card_no
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()", "def zAg0(YKHO):\n return 'DataModel(name={},attributes={},description={})'.format(YKHO.name, {jzdc.name: str(jzdc) for jzdc in YKHO.attributes}, YKHO.description)", "def zAg0(YKHO):\n Ylbp = ['>>> Model %(model_name)s <<<']\n Ylbp...
[ "0.82368803", "0.79901737", "0.7849152", "0.78468513", "0.77520275", "0.7625378", "0.7625378", "0.76225406", "0.76225406", "0.75483394", "0.7522958", "0.7470355", "0.7469358", "0.7447144", "0.7447144", "0.74314755", "0.7427648", "0.7389925", "0.7351721", "0.73424315", "0.7322...
0.0
-1
Returns the url to access a detail record for this card.
def hlzF(YKHO): return gxEw('card-detail', args=[str(YKHO.id)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gmFE(YKHO):\n if YKHO._data.get('details_url'):\n pmON = YKHO._data.get('details_url')\n try:\n pmON, qM3Q = pmON.split('#')\n qM3Q = '#' + qM3Q\n except ValueError:\n qM3Q = ''\n return '{}?from_activity={}{}'.format(pmON, YKHO._data.get('id'), q...
[ "0.7252138", "0.7122791", "0.6609128", "0.6586927", "0.65646684", "0.6540515", "0.65038", "0.64735013", "0.6464368", "0.64480615", "0.642915", "0.6389873", "0.63890266", "0.635177", "0.631059", "0.6298563", "0.6298563", "0.6298563", "0.62849885", "0.62828815", "0.62722015", ...
0.7311372
0
r""" Return the genus of the surface.
def O4xz(YKHO): return 1 - YKHO.euler_characteristic() // 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H3sD():\n return ['b2935', 'b0723', 'b0451']", "def lJZH(YKHO, or8S):\n return YKHO.genes[or8S]", "def yvY1(YKHO):\n return YKHO._properties['G']", "def MDIn(YKHO):\n if 'genres' in YKHO._prop_dict:\n return YKHO._prop_dict['genres']\n else:\n return None", "def uMd1(YKHO):...
[ "0.6060225", "0.60602057", "0.598353", "0.5891596", "0.5854243", "0.5854243", "0.58437705", "0.5838291", "0.58079755", "0.58079755", "0.5725381", "0.5688497", "0.5665119", "0.5653446", "0.56409246", "0.560487", "0.55763316", "0.55609643", "0.55455524", "0.5544166", "0.5538799...
0.70825785
0
r""" Return the degree of the constellation. The degree of a constellation is the number `n` that corresponds to the symmetric group `S(n)` in which the permutations of the constellation are defined.
def tjON(YKHO): return YKHO.parent()._degree
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tjON(YKHO, G1Hx):\n plHn = 1 if YKHO.my_alll(G1Hx) else 0\n return 2 * YKHO.get_prp_j(G1Hx)[0] + plHn", "def tjON(YKHO, exwG):\n return len(YKHO._G.neighbors(exwG))", "def ByKg(o4sw):\n if o4sw[0] == 0:\n return 0\n return oyIN.sqrt(o4sw[1] ** 2 + o4sw[2] ** 2 + o4sw[3] ** 2) / o4sw[0...
[ "0.6643592", "0.6554146", "0.6500712", "0.6490105", "0.6412964", "0.6292619", "0.62736607", "0.6261276", "0.6229872", "0.6221745", "0.6049977", "0.6046254", "0.6046254", "0.6046254", "0.6044987", "0.5955894", "0.59387827", "0.59346795", "0.59346795", "0.59041977", "0.57822615...
0.59288895
19
r""" Return the profile of ``self``. The profile of a constellation is the tuple of partitions associated to the conjugacy classes of the permutations of the constellation. This is also called the passport.
def z39Z(YKHO, YRbF=None): if YRbF is None: return tuple((YKHO.profile(r845) for r845 in range(YKHO.length()))) else: SQ3m = [len(vHO5) for vHO5 in YKHO._g[YRbF].cycle_tuples(True)] return gftJ(sorted(SQ3m, reverse=True))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z39Z(YKHO):\n\n def MKPt(eHNT):\n return [zbb2 for BWXx in eHNT.values() for zbb2 in BWXx.coefficients()]\n UqER = MKPt(YKHO.domain().j) + MKPt(YKHO.codomain().j) + MKPt(YKHO)\n z39Z = AI4f(UqER)\n return (1,) if z39Z == (0,) else z39Z", "def z39Z(YKHO) -> SYRW:\n return YKHO._profile",...
[ "0.7290075", "0.6533272", "0.6533272", "0.6500473", "0.6481984", "0.6403248", "0.6206054", "0.6110937", "0.60901266", "0.5973097", "0.59630865", "0.5879019", "0.58383894", "0.58383894", "0.5825291", "0.5774235", "0.57059985", "0.5673895", "0.5646577", "0.5636422", "0.56289375...
0.61175925
7
r""" Return the permutation `g_i` of the constellation.
def Oa1e(YKHO, YRbF=None): from copy import copy if YRbF is None: return copy(YKHO._g) else: jr6f = YKHO._g[YRbF] return jr6f.parent()(jr6f)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WDFY(YKHO, XcU5):\n AipK = XcU5.get_shape().as_list()\n f3KV = YKHO.cayleytable\n KkY2 = []\n for YRbF in range(24):\n girt = YKHO.get_permutation_matrix(f3KV, YRbF)\n yzQ0 = XcU5[:, :, :, :, :, :, YRbF]\n yzQ0 = ZylS.transpose(yzQ0, [0, 1, 2, 3, 5, 4])\n yzQ0 = ZylS.res...
[ "0.67287", "0.6150917", "0.5887132", "0.5703429", "0.5688113", "0.56630045", "0.5624985", "0.56176496", "0.5595301", "0.5552057", "0.5536241", "0.5527577", "0.55212027", "0.5504064", "0.5490653", "0.54765654", "0.54647994", "0.5449945", "0.5428851", "0.5411907", "0.5409807", ...
0.55283064
11
Iterator over all constellations of given degree and length.
def Vs4Q(YKHO): from itertools import product if YKHO._length == 1: if YKHO._degree == 1: yield YKHO([[0]]) return o4sw = YKHO._sym for XP5J in product(o4sw, repeat=YKHO._length - 1): if YKHO._connected and (not Dc8j(XP5J, YKHO._degree)): continue ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vs4Q(YKHO):\n for YRbF in range(len(YKHO.ks)):\n yield (YKHO.get_neighs([YRbF]), YKHO.get_sp_rel_pos([YRbF]), [YKHO.ks[YRbF]], YKHO.iss)", "def UqER(YKHO, tjON):\n UqER = []\n KFun = set(YKHO.darts())\n E1Oq = range(3)\n E1Oq.remove(tjON)\n while len(KFun) > 0:\n Mkx9 = KFun.p...
[ "0.5840303", "0.5709773", "0.568631", "0.5642443", "0.55471396", "0.5542346", "0.5496706", "0.54941493", "0.54905415", "0.54516786", "0.5417595", "0.540483", "0.53563493", "0.5346115", "0.5343145", "0.5294001", "0.5267207", "0.52572596", "0.5229214", "0.5209834", "0.5173835",...
0.5743113
1
Drop collection if it exists.
def IHkE(YKHO, wnys: str=None, Rr59: str=None, **B2fa) -> bool: NCls: FfT0 = YKHO.db if wnys is None else YKHO.client[wnys] ukQo: LRdN = YKHO.coll if Rr59 is None else NCls[Rr59] if ukQo.name in NCls.list_collection_names(): ukQo.drop() return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IHkE(YKHO, xUwc):\n YKHO.database.drop_collection(xUwc)", "def i3Bz(Emd4, Rr59):\n Emd4.log.debug('Removing collection: {}'.format(Rr59))\n Emd4.conn[Emd4.DATABASE_NAME][Rr59].drop()\n Emd4.log.info('Collection successfully removed.')", "def IHkE(P4LB, p9bx, xUwc):\n Rt00 = DpgL.MongoClient(...
[ "0.79765016", "0.7429648", "0.7095391", "0.66072655", "0.660125", "0.65903586", "0.6577248", "0.65324676", "0.6467471", "0.64559305", "0.6452855", "0.6444502", "0.6412875", "0.64091974", "0.6406886", "0.61746615", "0.6164482", "0.61408913", "0.61309135", "0.61051005", "0.5991...
0.75118566
1
Return a custom 404 error.
def m7kB(tTpl): return ('Sorry, nothing at this URL.', 404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o3cf():\n return c1Bu(404)", "def RQdI(P1dF):\n return '404 Error'", "def RQdI(P1dF):\n return 'Bummer, there is nothing at this URL.'", "def kfnF(P1dF):\n return ('No page here, dood. 404!', 404)", "def o3cf(YKHO, P1dF):\n return (pz3A({'error': 'NOT FOUND'}), 404)", "def m7kB(XObx):\...
[ "0.81159586", "0.80410045", "0.7738874", "0.77369535", "0.77182025", "0.7689595", "0.7670471", "0.76112473", "0.7602477", "0.7570698", "0.75528365", "0.7545827", "0.751882", "0.74745256", "0.7458403", "0.7455682", "0.74548143", "0.74505144", "0.7442062", "0.7428278", "0.74065...
0.72672606
34
Overrides the list method to get all articles
def list(YKHO, QePW): SR0I = wHLq.objects.all() m9DW = {'request': QePW} B2Dn = YKHO.paginate_queryset(SR0I) ZMzz = YKHO.serializer_class(B2Dn, context=m9DW, many=True) hlel = YKHO.get_paginated_response(ZMzz.data) return hlel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def list():\n mrVf = []\n if QePW.method == 'GET':\n geh0 = tyNF.scan()\n mrVf = geh0.get('Items')\n return TvZl('article/articles.html', articles=mrVf, title='List Articles')", "def mrVf(YKHO):\n return YKHO.get_queryset().filter(content_type__model='article').order_by('-articles__publ...
[ "0.8153018", "0.78935546", "0.7866161", "0.7855109", "0.773087", "0.759292", "0.7509773", "0.7423594", "0.73636776", "0.73286885", "0.7023938", "0.6991687", "0.6953285", "0.6938244", "0.6904753", "0.68493533", "0.68246543", "0.6767677", "0.675045", "0.6746897", "0.6728936", ...
0.7819919
4
Ensure all months were found
def jDkx(YKHO): FUTK = YKHO.ar[2009] YKHO.assertEqual(FUTK.months, [11, 12])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FmAW(YKHO):\n FUTK = YKHO.ar[2009]\n YKHO.assertEqual([j4jS.month for j4jS in FUTK], [11, 12])", "def jZNT(YKHO):\n for aEqx, x0eS in enumerate(range(1, 12), 2):\n n5sN = YKHO.expander.get_next_month(x0eS)\n YKHO.assertEqual(aEqx, n5sN)\n YKHO.assertEqual(1, YKHO.expander.get_next_m...
[ "0.7435198", "0.741321", "0.72674966", "0.66813445", "0.66769683", "0.66602445", "0.6584554", "0.65477747", "0.65444785", "0.6527775", "0.6511594", "0.6503141", "0.63049865", "0.6303601", "0.6270493", "0.62528765", "0.6175067", "0.6160518", "0.61507237", "0.6081394", "0.60449...
0.7632666
0
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues): import itertools if NkkI: Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis] print('Normalized confusion matrix') else: print('Confusion matrix, without normalization') print(Bcwd) QrM...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.81922984", "0.80933887", "0.80272716", "0.8016492", "0.79913706", "0.79885876", "0.79777396", "0.79729784", "0.7958926", "0.7954523", "0.79347897", "0.7931899", "0.7931772", "0.7928666", "0.7923684", "0.7921764", "0.79213995", "0.7920191", "0.792016", "0.7919876", "0.79153...
0.0
-1
Check if user is course staff.
def hKBB(YKHO): return getattr(YKHO.xmodule_runtime, 'user_is_staff', False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WJxI(YKHO):\n return YKHO.is_admin", "def WJxI(YKHO):\n return YKHO.is_admin", "def WJxI(YKHO):\n return YKHO.is_admin", "def WJxI(YKHO):\n return YKHO.is_admin", "def WJxI(YKHO) -> bool:\n return YKHO.is_admin", "def WJxI(YKHO):\n return YKHO.is_admin", "def WJxI(YKHO):\n retu...
[ "0.7812888", "0.7812888", "0.7812888", "0.77043736", "0.75808585", "0.74982476", "0.74982476", "0.74835616", "0.7433671", "0.7433608", "0.7419011", "0.7370185", "0.7277466", "0.7176093", "0.7100349", "0.70355904", "0.69785076", "0.6971723", "0.69194937", "0.68560183", "0.6839...
0.8251043
1
Check if user role is instructor.
def ThNd(YKHO): return YKHO.xmodule_runtime.get_user_role() == 'instructor'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ThNd(YKHO):\n return bool(LZrk[rFtz] & YKHO.roles)", "def mNnC(YKHO):\n YKHO.assertEqual('instructor', uEDt.get_user_role(YKHO.course_instructor, YKHO.course_key))\n YKHO.course_instructor.masquerade_as_student = True\n YKHO.assertEqual('student', uEDt.get_user_role(YKHO.course_instructor, YKHO.c...
[ "0.8229154", "0.80855906", "0.76690066", "0.743809", "0.6934937", "0.68856174", "0.68823963", "0.68345535", "0.6777783", "0.67101526", "0.6564345", "0.651139", "0.6504513", "0.64901537", "0.6472167", "0.64069164", "0.63845605", "0.63611573", "0.6316969", "0.63070035", "0.6298...
0.8304061
0
Set the video url and thumbnail url from Kulu Valley. We first call a KV api to get the mp4/hls url. Calling with 'kulu_id' = '' deletes existing video.
def EsF5(YKHO, nPrm, ZI14=''): ZjOr = nPrm['kulu_id'] def wVMy(): return {'video_mp4_url': vhlU(YKHO.video_mp4_url), 'video_hls_url': vhlU(YKHO.video_hls_url), 'video_thumbnail_url': YKHO.video_thumbnail_url, 'video_date_created': CDUU(YKHO.video_date_created), 'video_kulu_id': YKHO.video_kulu_id} ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cdbX(YKHO, ZjOr, ZFzw=True):\n OrzE = None\n P1HC = None\n if ZjOr:\n\n def aMkD(ZjOr):\n OrzE = None\n P1HC = None\n BbDU = 'https://imd.kuluvalley.com/api/2.1/rest/kulus/'\n Mkmy = G4JS.get(BbDU + ZjOr)\n if Mkmy.status_code == G4JS.codes...
[ "0.6160896", "0.6141144", "0.5943396", "0.59220606", "0.587498", "0.5847446", "0.57661587", "0.5741027", "0.5693852", "0.5692398", "0.56496", "0.5589736", "0.5558275", "0.54962265", "0.5485665", "0.54696524", "0.54669696", "0.5452187", "0.54437584", "0.5406843", "0.5399361", ...
0.6809097
0
Mark the assignment as done for a this student.
def _hgL(YKHO): mZyx = {'value': YKHO.points, 'max_value': YKHO.points} YKHO.runtime.publish(YKHO, 'grade', mZyx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WiFj(YKHO, U4ZT):\n YKHO._serialized[U4ZT] = True", "def _hgL(YKHO):\n YKHO.status = 'DONE'", "def _hgL(YKHO, D5gV):\n raise NotImplementedError('')", "def yExC(YKHO):\n YKHO.ensure_one()\n YKHO.write({'state': 'done'})\n YKHO.credit_control_line_ids.write({'state': 'done'})\n return...
[ "0.63143384", "0.6287947", "0.62783206", "0.5814581", "0.58060694", "0.5748234", "0.57456166", "0.57456166", "0.57456166", "0.5666484", "0.5602084", "0.5598528", "0.55672514", "0.55634844", "0.5512992", "0.548863", "0.548863", "0.53646314", "0.535736", "0.530437", "0.52867836...
0.6171663
3
Get current date and time in UTC.
def W5lc(): return qcWV.datetime.now(FXGE.utc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _9M7():\n return qcWV.datetime.utcnow().replace(tzinfo=FXGE.timezone('UTC'))", "def kSCg():\n return str(qcWV.utcnow())", "def Aues():\n return qcWV.now(tz=rIAI.utc)", "def SsoH() -> qcWV:\n return qcWV.now(rIAI.utc)", "def Aues():\n xUMo = qcWV.utcnow()\n xUMo = FXGE.utc.localize(xUM...
[ "0.7977052", "0.7973361", "0.79039377", "0.7867884", "0.7760147", "0.7717462", "0.76961374", "0.7683743", "0.75971127", "0.75816166", "0.75357926", "0.75291264", "0.75291264", "0.75020146", "0.7498298", "0.7488854", "0.74866146", "0.742559", "0.74225163", "0.7386496", "0.7383...
0.8204733
0
Rounds a tensor whose values are in [0,1] to a tensor with values in {0, 1}, using the straight through estimator for the gradient.
def d3lY(WKvO): Oa1e = ZylS.get_default_graph() with IPme.name_scope('BinaryRound') as mWFP: with Oa1e.gradient_override_map({'Round': 'Identity'}): return ZylS.round(WKvO, name=mWFP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def af4H(WKvO):\n return WKvO", "def BsKW(WKvO):\n Oa1e = ZylS.get_default_graph()\n with Oa1e.gradient_override_map({'Log': 'Identity'}):\n WKvO = ZylS.log(WKvO)\n WKvO = 10000.0 * WKvO\n with Oa1e.gradient_override_map({'Identity': 'CustomGrad'}):\n WKvO = ZylS.identity(WKvO, name=...
[ "0.6640717", "0.6213459", "0.612682", "0.6091711", "0.60450894", "0.6001786", "0.59331554", "0.58702356", "0.58492017", "0.5846758", "0.58314395", "0.5821055", "0.5817605", "0.57962924", "0.5685072", "0.5631543", "0.56260675", "0.5625001", "0.55630875", "0.5519944", "0.549344...
0.57825404
14
Rounds a tensor whose values are in [0,1] to a tensor with values in {0, 1}, using the straight through estimator for the gradient.
def BsKW(WKvO): Oa1e = ZylS.get_default_graph() with Oa1e.gradient_override_map({'Log': 'Identity'}): WKvO = ZylS.log(WKvO) WKvO = 10000.0 * WKvO with Oa1e.gradient_override_map({'Identity': 'CustomGrad'}): WKvO = ZylS.identity(WKvO, name='Identity') with Oa1e.gradient_override_map({...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def af4H(WKvO):\n return WKvO", "def vJNG(hpwk):\n tO9_ = 'Some values outside [0, 1], so clipping happened'\n if isinstance(hpwk, ZylS.Tensor):\n if ZylS.reduce_min(hpwk) < 0 or ZylS.reduce_max(hpwk) > 1:\n bo34.debug(tO9_)\n hpwk = ZylS.clip_by_value(hpwk, clip_value_min=0...
[ "0.66395307", "0.61258894", "0.6092261", "0.60424596", "0.60015225", "0.59311134", "0.5871849", "0.5848265", "0.5844342", "0.58283174", "0.58186597", "0.58166295", "0.5793238", "0.5784018", "0.56837785", "0.56308585", "0.56247044", "0.5623522", "0.5560255", "0.5516721", "0.54...
0.6213325
1
Converts a 2D point to a 3D pose in the XY plane including rotation being tangent to the path
def FgIZ(AU8u, BxRI): return vil0(AU8u.x, AU8u.y, 0) * P1gh(BxRI.angle())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CsOI(YKHO, AU8u: Point3D) -> M1rV:\n WKvO, LVAh, epBp = AU8u\n tvjJ, Aike, ZV9d = YKHO._pos\n WKvO -= tvjJ\n LVAh -= Aike\n epBp -= ZV9d\n Jw7X = YKHO._cy * (YKHO._sz * LVAh + YKHO._cz * WKvO) - YKHO._sy * epBp\n eUWA = YKHO._sx * (YKHO._sy * (YKHO._sz * LVAh + YKHO._cz * WKvO) + YKHO._cy ...
[ "0.7342222", "0.700183", "0.67462987", "0.6689601", "0.65957445", "0.6510016", "0.65098464", "0.63813823", "0.63400126", "0.63054836", "0.6097757", "0.608902", "0.6033613", "0.6030715", "0.5989176", "0.5978964", "0.5951556", "0.5938445", "0.5923447", "0.5912586", "0.5910447",...
0.6675463
4
Given two means +/ CIs return True if they do NOT overlap.
def RUPU(azQ3, oJY8, K1Yq, IIae): assert oJY8 >= 0.0 and IIae >= 0.0, 'Found negative confidence interval from bootstrapping.' o4D3 = azQ3 - oJY8 si3g = azQ3 + oJY8 ajwV = K1Yq - IIae skBL = K1Yq + IIae return c5yf((o4D3, si3g), (ajwV, skBL))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G6Vv(YKHO, hQUT, aixJ):\n if oyIN.linalg.norm(hQUT.pos - aixJ.pos) < hQUT.rad + aixJ.rad:\n return True\n else:\n return False", "def kcgv(o4D3, s1k6, ajwV, xMw6):\n if o4D3 + s1k6 < ajwV - xMw6:\n return False\n if o4D3 - s1k6 > ajwV + xMw6:\n return False\n return...
[ "0.6744992", "0.65211433", "0.6472582", "0.64701766", "0.6415023", "0.63862205", "0.6350856", "0.63217103", "0.631138", "0.6227721", "0.62166584", "0.6205302", "0.6167926", "0.61130357", "0.6106148", "0.6085412", "0.603488", "0.6021987", "0.602061", "0.5984093", "0.59680265",...
0.6075713
16
Return True if all pexecs in a detailed classification dict are 'no steady state'.
def PsPr(jIcB): return jIcB['warmup'] == 0 and jIcB['slowdown'] == 0 and (jIcB['flat'] == 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hMUL(jIcB):\n return jIcB['no steady state'] > 0", "def X3oy(jIcB):\n return jIcB['warmup'] == 0 and jIcB['slowdown'] == 0 and (jIcB['no steady state'] == 0)", "def tgOK(YKHO):\n return all((not XP5J.running for XP5J in YKHO._platforms.values()))", "def Drom(YKHO):\n _ins = iz1H._compute_is_t...
[ "0.762411", "0.6539862", "0.62332046", "0.6231461", "0.60690296", "0.6060528", "0.6052441", "0.60428137", "0.5957794", "0.59479433", "0.59453076", "0.5896173", "0.58896697", "0.5853992", "0.58524144", "0.58216655", "0.5814278", "0.5814082", "0.57616687", "0.57366985", "0.5729...
0.670616
1
Return True if any pexec in a detailed classification dict is 'no steady state'.
def hMUL(jIcB): return jIcB['no steady state'] > 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PsPr(jIcB):\n return jIcB['warmup'] == 0 and jIcB['slowdown'] == 0 and (jIcB['flat'] == 0)", "def X3oy(jIcB):\n return jIcB['warmup'] == 0 and jIcB['slowdown'] == 0 and (jIcB['no steady state'] == 0)", "def Drom(YKHO):\n _ins = iz1H._compute_is_terminal(YKHO)\n if oyIN.size(YKHO.indeces_known) ...
[ "0.6504176", "0.6281875", "0.6127798", "0.6064117", "0.6001149", "0.5946058", "0.59368294", "0.5900736", "0.58576006", "0.58486515", "0.5843609", "0.58285344", "0.5816433", "0.57958907", "0.57880586", "0.5783659", "0.57649934", "0.5759076", "0.5750961", "0.5743338", "0.573075...
0.76184374
0
Checks if a file is an allowed image extension.
def TfuZ(Ux0P, CBZq): return Ux0P.lower().endswith(CBZq)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XT0o(Ux0P):\n return '.' in Ux0P and Ux0P.rsplit('.', 1)[1] in E3oP", "def KKq3(Ux0P):\n if not '.' in Ux0P:\n return False\n YBcr = Ux0P.rsplit('.', 1)[1]\n if YBcr.lower() in E3oP:\n return True\n else:\n return False", "def TfuZ(Ux0P):\n return DVFM(Ux0P, UcD8)", ...
[ "0.8669711", "0.8491734", "0.8285595", "0.8164902", "0.808807", "0.8079307", "0.8010739", "0.8007056", "0.7972675", "0.7958227", "0.7957102", "0.79055774", "0.7892396", "0.78922427", "0.7851082", "0.7851082", "0.7851082", "0.7851082", "0.7851082", "0.7851082", "0.7843634", ...
0.81652546
3
Returns the total number of items in the container. Returns
def szAg(YKHO): return YKHO.count_of(IW_N.NODE)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GADp(YKHO):\n return len(YKHO.items)", "def OGwl(YKHO):\n return YKHO.num_items", "def zNig(YKHO) -> int:\n return YKHO.num_items", "def ogsx(YKHO):\n return len(YKHO.items)", "def ogsx(YKHO):\n return len(YKHO.items)", "def ogsx(YKHO):\n return len(YKHO.items)", "def UHFx(YKHO) -...
[ "0.8285695", "0.8251955", "0.81169397", "0.81011933", "0.8096166", "0.8096166", "0.7995818", "0.7971186", "0.78586584", "0.7823772", "0.78142947", "0.78142947", "0.78142947", "0.78142947", "0.78142947", "0.7783246", "0.7762027", "0.7759762", "0.775441", "0.7717325", "0.770322...
0.0
-1
given a sklearn confusion matrix (cm), make a nice plot Arguments
def LwSz(Bcwd, HOVt, leAC='Confusion matrix', iMGt=None, NkkI=True, ZoZ_=None): import matplotlib.pyplot as QrM1 import numpy as oyIN import itertools vjyh = oyIN.trace(Bcwd) / oyIN.sum(Bcwd).astype('float') YBwF = 1 - vjyh if iMGt is None: iMGt = QrM1.get_cmap('Blues') QrM1.figure(f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, tGDF):\n JI1i = QrM1.figure(figsize=(10, 10))\n QrM1.imshow(Bcwd, interpolation='nearest', cmap=QrM1.cm.Blues)\n QrM1.title('Confusion matrix')\n QrM1.colorbar()\n wIWT = oyIN.arange(len(tGDF))\n QrM1.xticks(wIWT, tGDF, rotation=45)\n QrM1.yticks(wIWT, tGDF)\n for YRbF, r845 ...
[ "0.7998953", "0.79943913", "0.7946874", "0.79344404", "0.79131955", "0.7896219", "0.78781104", "0.78595", "0.78595", "0.78530246", "0.7848679", "0.78483564", "0.78388304", "0.7833984", "0.7827247", "0.7823944", "0.78033894", "0.7800449", "0.7780714", "0.77779824", "0.77747816...
0.0
-1
For a given point on the track, get the direction of travel a unit vector
def XSoh(YKHO, gOgY, a1PO): return YKHO.segments[gOgY].direction(a1PO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kaK1(zFiD):\n X3qZ, ZYCo = zFiD\n X3qZ = oyIN.array(X3qZ).reshape(2)\n ZYCo = oyIN.array(ZYCo).reshape(2)\n Cuyv = ZYCo - X3qZ\n Q5cl = NkkI(Cuyv)\n return Q5cl", "def XSoh(zJAg, lCHq):\n Csk6 = [0, 0, 0]\n iArr = [lCHq[0] - zJAg[0], lCHq[1] - zJAg[1]]\n Csk6[1] = epAf.atan2(iArr[1...
[ "0.7077104", "0.70212084", "0.6645603", "0.66404146", "0.6633019", "0.6583143", "0.6493118", "0.6486818", "0.63921815", "0.6384645", "0.6288176", "0.62692744", "0.6268733", "0.6216227", "0.6212832", "0.61881405", "0.61865866", "0.61588264", "0.6143655", "0.6065213", "0.606516...
0.6032815
22
Creates a single csv file containing all the enhanced data
def vGZu(vsYd): vsYd = GkAb(vsYd) _1EL = sorted(vsYd.glob('*_step_*.csv')) VIPT = [] for ZkUT in _1EL: ycBG = rLdf.read_csv(ZkUT, sep='|', encoding='utf-8', names=['type', 'id', 'county', 'senate', 'house', 'census']) VIPT.append(ycBG) XIcQ = rLdf.concat(VIPT) XIcQ.to_csv(vsYd / ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cpzI(YKHO):\n with open(YKHO.__csv_file_name, 'w', newline='', encoding='utf-8') as z36O:\n WJI9 = m6_J.DictWriter(z36O, fieldnames=YKHO.__csv_fields, delimiter=';')\n WJI9.writeheader()", "def nUeQ(YKHO):\n Aofo = []\n VPQT = HIp6(YKHO.path, YKHO.filename)\n with open(VPQT.path(), ...
[ "0.7304333", "0.72596985", "0.72459936", "0.7137571", "0.70768213", "0.70081866", "0.7004889", "0.69858706", "0.69794446", "0.6953722", "0.69531065", "0.6901506", "0.6834578", "0.6832981", "0.6819997", "0.68154514", "0.68150836", "0.6812106", "0.6781125", "0.67678154", "0.676...
0.0
-1
GET /orgunittypes/ without auth or app id should result in a 200 empty response
def je99(YKHO): geh0 = YKHO.client.get('/api/orgunittypes/') YKHO.assertJSONResponse(geh0, 200) YKHO.assertValidOrgUnitTypeListData(geh0.json(), 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _sPN(YKHO):\n geh0 = YKHO.client.get(f'/api/orgunittypes/{YKHO.org_unit_type_1.id}/')\n YKHO.assertJSONResponse(geh0, 404)", "def eVtE(YKHO):\n YKHO.client.force_authenticate(YKHO.jane)\n geh0 = YKHO.client.get(f'/api/orgunittypes/{YKHO.org_unit_type_1.id}/')\n YKHO.assertJSONResponse(geh0, 20...
[ "0.87519795", "0.7420495", "0.69041955", "0.6516785", "0.61798966", "0.6130988", "0.61043733", "0.61042553", "0.60826296", "0.5991248", "0.5978981", "0.596227", "0.59595525", "0.5948186", "0.5926202", "0.58903813", "0.5885066", "0.5870741", "0.5850269", "0.58145046", "0.57778...
0.7984175
1
GET /orgunittypes/ without auth or app id should result in a 200 empty response
def Ytgf(YKHO): YKHO.client.force_authenticate(YKHO.jane) geh0 = YKHO.client.get('/api/orgunittypes/') YKHO.assertJSONResponse(geh0, 200) Bv0m = geh0.json() YKHO.assertValidOrgUnitTypeListData(Bv0m, 2) for soB8 in Bv0m['orgUnitTypes']: YKHO.assertEqual(len(soB8['projects']), 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _sPN(YKHO):\n geh0 = YKHO.client.get(f'/api/orgunittypes/{YKHO.org_unit_type_1.id}/')\n YKHO.assertJSONResponse(geh0, 404)", "def je99(YKHO):\n geh0 = YKHO.client.get('/api/orgunittypes/')\n YKHO.assertJSONResponse(geh0, 200)\n YKHO.assertValidOrgUnitTypeListData(geh0.json(), 0)", "def eVtE(...
[ "0.87517565", "0.7983601", "0.7420666", "0.6517214", "0.6179711", "0.6130727", "0.61053693", "0.6104676", "0.6082634", "0.59919316", "0.59794647", "0.5962089", "0.5959578", "0.5947949", "0.59261703", "0.5890904", "0.58858436", "0.5870298", "0.5850647", "0.58160657", "0.577890...
0.69041115
3
GET /orgunittypes// without auth or app id should result in a 200 empty response
def _sPN(YKHO): geh0 = YKHO.client.get(f'/api/orgunittypes/{YKHO.org_unit_type_1.id}/') YKHO.assertJSONResponse(geh0, 404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def je99(YKHO):\n geh0 = YKHO.client.get('/api/orgunittypes/')\n YKHO.assertJSONResponse(geh0, 200)\n YKHO.assertValidOrgUnitTypeListData(geh0.json(), 0)", "def eVtE(YKHO):\n YKHO.client.force_authenticate(YKHO.jane)\n geh0 = YKHO.client.get(f'/api/orgunittypes/{YKHO.org_unit_type_1.id}/')\n YK...
[ "0.7917087", "0.7496427", "0.68529516", "0.6351911", "0.6267484", "0.6165139", "0.61551106", "0.59798086", "0.59788877", "0.5970946", "0.59020483", "0.5862904", "0.5849123", "0.5816277", "0.57916224", "0.5763007", "0.5753423", "0.5751714", "0.5744749", "0.57144815", "0.571267...
0.872766
0
Convert the list of off times to a list containing the off and now on periods, which are deduced from the off times. This should be the list after it has been collapsed. Output list will contain a status, on or off.
def F9p5(Ol7R): kjNI = [] QLCf = iter(Ol7R) BDYS = next(QLCf) WBkB = BDYS[0] zsjB = BDYS[1] kjNI.append([WBkB, zsjB, 'off']) for rdlD in QLCf: U87I = rdlD[0] kkeq = rdlD[1] kjNI.append([zsjB, U87I, 'on']) kjNI.append([U87I, kkeq, 'off']) zsjB = kkeq ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bmmn(YKHO):\n YKHO.laser_off = []\n YKHO.laser_on = []\n YKHO.laser_off.append((0 + YKHO.time_to_number(YKHO.skip['bcg_start']), YKHO.starts[0] - YKHO.time_to_number(YKHO.skip['bcg_end'])))\n for YRbF in range(len(YKHO.starts) - 1):\n YKHO.laser_off.append((YKHO.ends[YRbF] + YKHO.time_to_num...
[ "0.5942776", "0.58838075", "0.5232749", "0.5215545", "0.50533724", "0.5045575", "0.50441617", "0.50100267", "0.49974123", "0.4977477", "0.49657625", "0.4947541", "0.488322", "0.48574734", "0.48308867", "0.48288673", "0.4811619", "0.4808722", "0.48032254", "0.47492984", "0.474...
0.7695517
0
Get the date in DDDDMMYY format
def slWZ(FMLJ='%Y-%m-%d'): wzkt = qcWV.datetime.now().replace(tzinfo=QZnt) return wzkt.strftime(FMLJ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def slWZ(YKHO):\n return YKHO.date.strftime('%a %x')", "def DnBu(RG0A):\n _c1T = qcWV.datetime.strptime(str(RG0A), '%j')\n return _c1T.strftime('%d-%b')", "def Qrp8(YKHO):\n return '%s/%2.2d/%2.2d' % (YKHO._year, YKHO._month, YKHO._day)", "def cxjs(YKHO, QpfX):\n return '{year}/{month}/{day}'....
[ "0.72058445", "0.7066212", "0.6975212", "0.6898036", "0.6880251", "0.68269366", "0.68058187", "0.6788389", "0.6783534", "0.6781108", "0.67280906", "0.67056924", "0.6695071", "0.6661497", "0.66282374", "0.657951", "0.65632385", "0.6553971", "0.65417117", "0.6537841", "0.652982...
0.5996205
84
Add warmup decay to a learning rate schedule.
def FIMM(YKHO, ZT_s: tf.keras.optimizers.schedules.LearningRateSchedule, wbn8: int, **B2fa): super(bVlv, YKHO).__init__() YKHO._lr_schedule = ZT_s YKHO._warmup_steps = wbn8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(K0do, qtWj, tspZ, b6Gq, KMvS, J9Qu=1, zUem=5):\n if qtWj in b6Gq:\n tspZ *= KMvS\n if J9Qu > 1 and qtWj < zUem:\n gaZW = tspZ * (qtWj + 1) / zUem\n else:\n gaZW = tspZ\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = gaZW\n return tspZ", ...
[ "0.7005632", "0.6841199", "0.67021495", "0.668435", "0.66736406", "0.66736406", "0.66681194", "0.66065794", "0.6517671", "0.6463484", "0.63832265", "0.6369079", "0.63663036", "0.63535094", "0.6343438", "0.6340109", "0.6324249", "0.63002986", "0.6272357", "0.62689996", "0.6240...
0.72938305
0