<commit_before>Recurrent
====================
Schedule and execute your recurring tasks

Installation
------------
    gem install recurrent

Usage Examples
--------------
###Command Line
####Execute a command in the terminal
    recurrent --every 5.seconds --system "say 'Recurrent says Hello'"
####Run Ruby code
    recurrent --every 1.hour --ruby "HourlyReport.run"
####View command line options
    recurrent --help

###In your Rails app
    Add `gem "recurrent"` to your Gemfile
    When `recurrent` is used from the root of your Rails application it will execute its tasks in the context of your environment and have access to your application's classes and methods.

Loading from a file
-------------------
You can define tasks and configuration info in a file.

     recurrent --file config/recurrences.rb

###The `every` method
Use the every method to create tasks.

    every 30.seconds, :collect_usage_stats, :save => true do
      Statistic.collect
    end

####Frequency<commit_msg>you're not code, stop pretending to be code<commit_after>Recurrent
====================
Schedule and execute your recurring tasks

Installation
------------
    gem install recurrent

Usage Examples
--------------
###Command Line
####Execute a command in the terminal
    recurrent --every 5.seconds --system "say 'Recurrent says Hello'"
####Run Ruby code
    recurrent --every 1.hour --ruby "HourlyReport.run"
####View command line options
    recurrent --help

###In your Rails app
Add `gem "recurrent"` to your Gemfile
When `recurrent` is used from the root of your Rails application it will execute its tasks in the context of your environment and have access to your application's classes and methods.

Loading from a file
-------------------
You can define tasks and configuration info in a file.

     recurrent --file config/recurrences.rb

###The `every` method
Use the every method to create tasks.

    every 30.seconds, :collect_usage_stats, :save => true do
      Statistic.collect
    end

####Frequency
{'fraction_non_alphanumeric': 0.13618290258449303, 'fraction_numerical': 0.003976143141153081, 'mean_word_length': 3.159090909090909, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2305028', 'n_tokens_mistral': 530, 'n_tokens_neox': 493, 'n_words': 246}