<commit_before>namespace :events do
  desc "Rake task to check triggers"
  task :check_triggers => :environment do
    triggers = Trigger.all
    current_time = Time.now
    triggers.each do | trigger |
      # task = Task.find(trigger.task_id)
      # time_lapsed = Time.now - trigger.time_last_run
     # if time_lapsed > task.frequency
        TriggerTaskWorker.perform_async(trigger.id)
     # end
    end
  end

end


<commit_msg>changed triggers<commit_after>namespace :events do
  desc "Rake task to check triggers"
  task :check_triggers => :environment do
    triggers = Trigger.all
    current_time = Time.now
    triggers.each do | trigger |
      # task = Task.find(trigger.task_id)
      # time_lapsed = Time.now - trigger.time_last_run
     # if time_lapsed > task.frequency
        TriggerTaskWorker.perform_in(2.minute, trigger.id)
     # end
    end
  end

end



{'fraction_non_alphanumeric': 0.08409090909090909, 'fraction_numerical': 0.0011363636363636363, 'mean_word_length': 2.8640350877192984, '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': '2191041', 'n_tokens_mistral': 289, 'n_tokens_neox': 280, 'n_words': 68}