<commit_before>class VolunteerMailer < ApplicationMailer
  default from: '<EMAIL>'

  def notify_volunteers(need)
    @volunteers = User.where.not(ngo_admin: true)
    @need = need
    @url = 'http://where2help.at'
    mail(to: @volunteers.map(&:email), subject: "Wir brauchen dir am #{need.location}!")
  end

end
<commit_msg>Only email volunteers if we have any<commit_after>class VolunteerMailer < ApplicationMailer
  default from: '<EMAIL>'

  def notify_volunteers(need)
    @volunteers = User.where.not(ngo_admin: true)
    @need = need
    @url = 'http://where2help.at'
    mail(to: @volunteers.map(&:email), subject: "Wir brauchen dir am #{need.location}!") unless @volunteers.empty?
  end

end

{'fraction_non_alphanumeric': 0.13513513513513514, 'fraction_numerical': 0.002844950213371266, 'mean_word_length': 4.415384615384616, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '4530053', 'n_tokens_mistral': 253, 'n_tokens_neox': 248, 'n_words': 58}