<commit_before>desc "Notify Article Authors when articles are stale"
task notify_of_staleness: :environment do
  User.author.to_a.each do |author|
    author.notify_about_stale_articles
  end
end
<commit_msg>Add a rake users:make_all_emails_private to do just that<commit_after>desc "Notify Article Authors when articles are stale"
task notify_of_staleness: :environment do
  User.author.to_a.each do |author|
    author.notify_about_stale_articles
  end
end

task make_all_emails_private: :environment do
  User.find_each do |u|
    u.update(private_email: true)
  end
end

{'fraction_non_alphanumeric': 0.0627177700348432, 'fraction_numerical': 0.0, 'mean_word_length': 5.388888888888889, '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': '6918933', 'n_tokens_mistral': 191, 'n_tokens_neox': 188, 'n_words': 54}