<commit_before>require_relative 'rails/initializer'
require_relative 's3_rails_cache'

puts "PAGELIME CMS PLUGIN: included"

Pagelime.configure do |config|
  config.client_class = Pagelime::S3RailsCache
end

# start plugin 
if Rails::VERSION::MAJOR == 2
  require_relative 'rails/routing_extensions'
  
  ActionController::Routing::RouteSet::Mapper.send :include, ::Pagelime::Rails::RoutingExtensions
  # below is not needed in Rails 2 as you can use the map.cms_routes from the routing_extensions
  # require File.join(File.dirname(__FILE__), "/../config/routes.rb")
  Pagelime::Rails::Initializer.initialize_pagelime_plugin
elsif Rails::VERSION::MAJOR >= 3
  require_relative 'engine'
end<commit_msg>Refer to moved Engine<commit_after>require_relative 'rails/initializer'
require_relative 's3_rails_cache'

puts "PAGELIME CMS PLUGIN: included"

Pagelime.configure do |config|
  config.client_class = Pagelime::S3RailsCache
end

# start plugin 
if Rails::VERSION::MAJOR == 2
  require_relative 'rails/routing_extensions'
  
  ActionController::Routing::RouteSet::Mapper.send :include, ::Pagelime::Rails::RoutingExtensions
  # below is not needed in Rails 2 as you can use the map.cms_routes from the routing_extensions
  # require File.join(File.dirname(__FILE__), "/../config/routes.rb")
  Pagelime::Rails::Initializer.initialize_pagelime_plugin
elsif Rails::VERSION::MAJOR >= 3
  require_relative 'rails/engine'
end
{'fraction_non_alphanumeric': 0.10507757404795487, 'fraction_numerical': 0.007052186177715092, 'mean_word_length': 6.507936507936508, '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': '5247690', 'n_tokens_mistral': 478, 'n_tokens_neox': 464, 'n_words': 104}