<commit_before>class <%= class_name %>Task < Rooster::Task
  define_schedule do |s|    
    s.every "10s", :tags => self.name do  # refer to:  http://github.com/jmettraux/rufus-scheduler/tree/master
      begin
        log "#{self.name} starting at #{Time.now.to_s(:db)}"
      
        ###
        # Your code here (e.g. User.send_due_invoices!)
        ###
        
      ensure
        log "#{self.name} completed at #{Time.now.to_s(:db)}"
        ActiveRecord::Base.connection_pool.release_connection
      end
    end
  end
end<commit_msg>The task generator now includes a :first_at schedule key.<commit_after>class <%= class_name %>Task < Rooster::Task
  define_schedule do |s|
    s.every "1d", :first_at => Chronic.parse("2:00am"), :tags => self.name do  # refer to:  http://github.com/jmettraux/rufus-scheduler/tree/master
      begin
        log "#{self.name} starting at #{Time.now.to_s(:db)}"

        ###
        # Your code here (e.g. User.send_due_invoices!)
        ###
        
      ensure
        log "#{self.name} completed at #{Time.now.to_s(:db)}"
        ActiveRecord::Base.connection_pool.release_connection
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.14322691975841242, 'fraction_numerical': 0.005176876617773943, 'mean_word_length': 2.4939759036144578, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, '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': '3618343', 'n_tokens_mistral': 395, 'n_tokens_neox': 384, 'n_words': 83}