<commit_before>module RocketCMS
  class Engine < ::Rails::Engine
    rake_tasks do
      require File.expand_path('../tasks', __FILE__)
    end

    initializer 'rocket_cms.paperclip' do
      require 'paperclip/style'
      module ::Paperclip
        class Style
          alias_method :processor_options_without_auto_orient, :processor_options
          def processor_options
            processor_options_without_auto_orient.merge(auto_orient: false)
          end
        end
      end
    end

    config.after_initialize do
      # trigger autoload so models are registered in Mongoid::Elasticearch
      RocketCMS.config.search_models.map(&:constantize)

      # Write default email settings to DB so they can be changed.
      if RocketCMS.mongoid? || Settings.table_exists?
        Settings.default_email_from(default: '<EMAIL>')
        Settings.form_email(default: '<EMAIL>')
        Settings.email_topic(default: 'с сайта')
      end
    end
  end
end
<commit_msg>unnecessary check<commit_after>module RocketCMS
  class Engine < ::Rails::Engine
    rake_tasks do
      require File.expand_path('../tasks', __FILE__)
    end

    initializer 'rocket_cms.paperclip' do
      require 'paperclip/style'
      module ::Paperclip
        class Style
          alias_method :processor_options_without_auto_orient, :processor_options
          def processor_options
            processor_options_without_auto_orient.merge(auto_orient: false)
          end
        end
      end
    end

    config.after_initialize do
      # trigger autoload so models are registered in Mongoid::Elasticearch
      RocketCMS.config.search_models.map(&:constantize)

      # Write default email settings to DB so they can be changed.
      if Settings.table_exists?
        Settings.default_email_from(default: '<EMAIL>')
        Settings.form_email(default: '<EMAIL>')
        Settings.email_topic(default: 'с сайта')
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.0734229576008273, 'fraction_numerical': 0.0, 'mean_word_length': 2.8015717092337917, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '6925849', 'n_tokens_mistral': 560, 'n_tokens_neox': 542, 'n_words': 134}