<commit_before>begin

  $LOAD_PATH.unshift File.join(File.dirname(__FILE__), "..", "..", "rails", "railties", "lib")
  silence_warnings { require 'rails/version' }

  if Rails::VERSION::MAJOR < 1 && Rails::VERSION::MINOR < 2
    puts <<-end_of_warning
!!!=== IMPORTANT NOTE ===!!!
Support for Rails < 1.2 has been dropped; if you are using Rails =< 1.1.6, 
please use Engines 1.1.6, available from: 
  >>  http://svn.rails-engines.org/engines/tags/rel_1.1.6
For more details about changes in Engines 1.2, please see the changelog or: 
  >>  http://www.rails-engines.org
  end_of_warning
  end

rescue # ... we couldn't detect the Rails version. Oh well.
end

puts <<-end_of_message
Thanks for download the engines plugin. If you're upgrading to the 1.2.x 
branch of releases of this plugin, please ensure that you read and understand
the instructions in README and UPGRADING.'
end_of_message<commit_msg>Actually check for the correct revisions of Rails when deciding about showing the warning.<commit_after>begin

  $LOAD_PATH.unshift File.join(File.dirname(__FILE__), "..", "..", "rails", "railties", "lib")
  silence_warnings { require 'rails/version' }

  unless Rails::VERSION::MAJOR >= 1 && Rails::VERSION::MINOR >= 2
    puts <<-end_of_warning
!!!=== IMPORTANT NOTE ===!!!
Support for Rails < 1.2 has been dropped; if you are using Rails =< 1.1.6, 
please use Engines 1.1.6, available from: 
  >>  http://svn.rails-engines.org/engines/tags/rel_1.1.6
For more details about changes in Engines 1.2, please see the changelog or: 
  >>  http://www.rails-engines.org
  end_of_warning
  end

rescue # ... we couldn't detect the Rails version. Oh well.
end

puts <<-end_of_message
Thanks for download the engines plugin. If you're upgrading to the 1.2.x 
branch of releases of this plugin, please ensure that you read and understand
the instructions in README and UPGRADING.'
end_of_message
{'fraction_non_alphanumeric': 0.12334568554790895, 'fraction_numerical': 0.017998941238750663, 'mean_word_length': 4.04, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3332470', 'n_tokens_mistral': 662, 'n_tokens_neox': 607, 'n_words': 208}