def email_comment_notification(actor_to_ref, actor_from_ref, 
                               comment_ref, entry_ref):
    
  """Send an email in response to a comment being posted.
  PARAMETERS:
    actor_to_ref - actor whom this email is going to
    actor_from_ref - actor who posted the comment
    comment_ref - the comment that was posted
    entry_ref - the entry that was commented on
  RETURNS: (subject, message)
  """

  SITE_NAME = util.get_metadata('SITE_NAME')
  DOMAIN = settings.DOMAIN
  POST_NAME = util.get_metadata('POST_NAME')
  entry_url = entry_ref.url()
  entry_mobile_url = entry_ref.url(mobile=True)
  from_name = actor_from_ref.display_nick()
  my_entry = (actor_to_ref.nick == entry_ref.actor)
  entry_actor_name = util.display_nick(entry_ref.actor)
  entry_title = entry_ref.title()

  
  # TODO(termie) pretty 'r up
  comment_pretty = comment_ref.extra.get('content', '')

  t = loader.get_template('common/templates/email/email_comment.txt')
  c = template.Context(locals(), autoescape=False)
  message = t.render(c)
  html_template = loader.get_template('common/templates/email/email_comment.html')
  html_message = html_template.render(c)
  subject = (entry_ref.title()) % 'New comment on %s'
  return (subject, message, html_message)
dataset/ETHPy150Open CollabQ/CollabQ/common/mail.py/email_comment_notification/swapped operands of `%`