<commit_before>desc "Sync steam stats for recently logged in users"
task :sync_stats => :environment do
  Player.where(:last_viewed.gte => 1.week.ago).each do |player|
    player.latest_stats
  end
end<commit_msg>Fix rake task so that a single sync failure wont stop the process<commit_after>desc "Sync steam stats for recently logged in users"
task :sync_stats => :environment do
  Player.where(:last_viewed.gte => 1.week.ago).each do |player|
    begin
      player.latest_stats
    rescue
    end
  end
end
{'fraction_non_alphanumeric': 0.08644400785854617, 'fraction_numerical': 0.003929273084479371, 'mean_word_length': 4.1, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3473011', 'n_tokens_mistral': 158, 'n_tokens_neox': 155, 'n_words': 54}