<commit_before># encoding: utf-8
require 'simple_error_wrapper/base'

if defined?(::Bootstrap)
  require 'simple_error_wrapper/bootstrap'
elsif defined?(::Materialize)
  require 'simple_error_wrapper/materialize'
else
  require 'simple_error_wrapper/default'
end

ver, maj, min = Rails.version.split(".").map!(&:to_i)

if defined?(ActionView)

  ActionView::Base.send :include, ::SimpleErrorWrapper::ActionViewBase
  if ver < 4
    ActionView::Helpers::InstanceTag.send :include, ::SimpleErrorWrapper::HelpersInstanceTag
  else
    ActionView::Helpers::Tags::Base.send  :include, ::SimpleErrorWrapper::HelpersInstanceTag
  end

end # if<commit_msg>Версия рельсы берется из константы<commit_after># encoding: utf-8
require 'simple_error_wrapper/base'

# if defined?(::Bootstrap)
#  require 'simple_error_wrapper/bootstrap'
if defined?(::Materialize)
  require 'simple_error_wrapper/materialize'
else
  require 'simple_error_wrapper/default'
end

if defined?(ActionView)

  ActionView::Base.send :include, ::SimpleErrorWrapper::ActionViewBase
  if Rails::VERSION::MAJOR < 4
    ActionView::Helpers::InstanceTag.send :include, ::SimpleErrorWrapper::HelpersInstanceTag
  else
    ActionView::Helpers::Tags::Base.send  :include, ::SimpleErrorWrapper::HelpersInstanceTag
  end

end # if
{'fraction_non_alphanumeric': 0.1203125, 'fraction_numerical': 0.003125, 'mean_word_length': 7.1075949367088604, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2199560', 'n_tokens_mistral': 397, 'n_tokens_neox': 408, 'n_words': 77}