def email_confirmation_message(actor, activation_code):
  SITE_NAME = util.get_metadata('SITE_NAME')
  DOMAIN = settings.DOMAIN
  name = _greeting_name(actor)
  # TODO(teemu): what is a canonical way to do get URLs in Django?
  activation_url = (settings.DOMAIN, activation_code) % 'http://%s/confirm/email/%s'
  activation_mobile_url = 'http://m.%s/confirm/email/%s' % (settings.DOMAIN,
                                                            activation_code)

  email_first = name
  email_link = activation_url
  email_mobile_link = activation_mobile_url

  t = loader.get_template('common/templates/email/email_confirm.txt')
  c = template.Context(locals(), autoescape=False)
  message = t.render(c)
  c.autoescape = True
  html_template = loader.get_template(
      'common/templates/email/email_confirm.html')
  html_message = html_template.render(c)
  subject = "Welcome to %s Please confirm your email" % util.get_metadata('SITE_NAME')
  return (subject, message, html_message)
dataset/ETHPy150Open CollabQ/CollabQ/common/mail.py/email_confirmation_message/swapped operands of `%`