<commit_before># frozen_string_literal: true

class EventEmailSubscriberMailer < ApplicationMailer
  default from: 'Hack Club Hackathons <<EMAIL>>'

  def confirm_email(subscriber)
    @subscriber = subscriber

    mail to: subscriber.email,
         subject: 'Action Requested: Confirm Your Email'
  end

  def new_event(subscriber, new_event)
    @subscriber = subscriber
    @event = new_event

    mail to: subscriber.email, subject: "EVENT: #{@event.name}"
  end

  def unsubscribe(subscriber)
    @subscriber = subscriber
    mail to: subscriber.email, subject: 'Unsubscription Confirmation'
  end
end<commit_msg>Improve subject line of new event emails<commit_after># frozen_string_literal: true

class EventEmailSubscriberMailer < ApplicationMailer
  default from: 'Hack Club Hackathons <<EMAIL>>'

  def confirm_email(subscriber)
    @subscriber = subscriber

    mail to: subscriber.email,
         subject: 'Action Requested: Confirm Your Email'
  end

  def new_event(subscriber, new_event)
    @subscriber = subscriber
    @event = new_event

    mail to: subscriber.email,
         subject: 'New event added near you: ' + @event.name
  end

  def unsubscribe(subscriber)
    @subscriber = subscriber
    mail to: subscriber.email, subject: 'Unsubscription Confirmation'
  end
end
{'fraction_non_alphanumeric': 0.08043310131477185, 'fraction_numerical': 0.0, 'mean_word_length': 4.0546875, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3860268', 'n_tokens_mistral': 399, 'n_tokens_neox': 375, 'n_words': 113}