<commit_before>require 'errata/catcher'
require 'errata/capture'
require 'errata/logger'

module Errata
  VERSION = "1.00"
  
  def self.initialize
    if defined?( ActionController::Base )
      ActionController::Base.__send__( :include, Errata::Catcher )
    end
  end
  
end

Errata.initialize<commit_msg>Moved the enabled test into the initialiser.<commit_after>require 'errata/erratum'
require 'errata/catcher'
require 'errata/logger'

module Errata
  VERSION = "1.00"
  
  def self.enabled?
    true
  end
  
  # def self.enabled?
  #   !(Rails.env.development? || Rails.env.test?)
  # end
  
  def self.initialize
    if enabled? && defined?( ActionController::Base )
      ActionController::Base.__send__( :include, Errata::Catcher )
    end
  end
  
end

Errata.initialize
{'fraction_non_alphanumeric': 0.11011523687580026, 'fraction_numerical': 0.0076824583866837385, 'mean_word_length': 3.6272189349112427, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5848935', 'n_tokens_mistral': 266, 'n_tokens_neox': 258, 'n_words': 59}