<commit_before>namespace :feeds do

  desc 'update feeds from GitHub'
  task update_feeds: :environment do
    require 'feedshub/feeds/git_feeds_handler'
    GitFeedsHandler.update_github_feeds
  end

  task :whenverize do
    env = ARGV.last
    exec("cd #{Feedshub::Engine.root} && whenever -i -s 'path=#{Rails.root}' -r #{env}")
  end

end<commit_msg>Add task support for rails 3; CR: DF<commit_after>namespace :feeds do

  desc 'update feeds from GitHub'
  task update_feeds: :environment do
    require 'feedshub/feeds/git_feeds_handler'
    GitFeedsHandler.update_github_feeds
  end

  desc 'add cron task to update feeds'
  task whenverize: :environment do
    env = ARGV.last
    exec("cd #{Feedshub::Engine.root} && whenever -i -s 'path=#{Rails.root}' -r #{env}")
  end

end
{'fraction_non_alphanumeric': 0.1111111111111111, 'fraction_numerical': 0.001277139208173691, 'mean_word_length': 3.962025316455696, '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': '1658452', 'n_tokens_mistral': 284, 'n_tokens_neox': 270, 'n_words': 76}