<commit_before>module TownCrier
  class UserLookup
    def contact_key
      @contact_key || :email
    end

    def contact_key=(key)
      User.infect_an_attribute key
      @contact_key = key
    end

    def recipients(event_binding)
      users = User.with_event_binding(event_binding)
      users.reject { |u| u.send(contact_key).to_s.empty? }
    end
  end
end<commit_msg>Ensure contact key set as symbol<commit_after>module TownCrier
  class UserLookup
    def contact_key
      @contact_key || :email
    end

    def contact_key=(key)
      User.infect_an_attribute key
      @contact_key = key.to_sym
    end

    def recipients(event_binding)
      users = User.with_event_binding(event_binding)
      users.reject { |u| u.send(contact_key).to_s.empty? }
    end
  end
end
{'fraction_non_alphanumeric': 0.0778061224489796, 'fraction_numerical': 0.0, 'mean_word_length': 2.9447236180904524, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5612938', 'n_tokens_mistral': 263, 'n_tokens_neox': 255, 'n_words': 56}