<commit_before>require "best_in_place"

module OfficeClerk
  class Engine < ::Rails::Engine
    engine_name "office"

    config.autoload_paths += %W(#{config.root}/lib)
#    config.assets.paths +=
    config.exceptions_app = self.routes
    initializer "office_clerk.assets.precompile" do |app|
      app.config.assets.precompile += %w(office_clerk.css office_clerk.js)
    end

    config.i18n.enforce_available_locales = false
    config.i18n.available_locales = [:fi , :en , :config]
    config.i18n.default_locale = :fi
    # for testing this makes engine factories available
    initializer "model_core.factories", :after => "factory_girl.set_factory_paths" do
      FactoryGirl.definition_file_paths << File.expand_path('../../../spec/factories', __FILE__) if defined?(FactoryGirl)
    end

    # have to init the BestInPlace first to be able to include helpers
    config.railties_order = [BestInPlace::Railtie , OfficeClerk::Engine  , :all  ]
    config.after_initialize do
      BestInPlace::ViewHelpers.extend OfficeHelper
    end

  end
end<commit_msg>add images to precompile as rails complains (suddenly)<commit_after>require "best_in_place"

module OfficeClerk
  class Engine < ::Rails::Engine
    engine_name "office"

    config.autoload_paths += %W(#{config.root}/lib)
#    config.assets.paths +=
    config.exceptions_app = self.routes
    initializer "office_clerk.assets.precompile" do |app|
      app.config.assets.precompile += %w(office_clerk.css office_clerk.js office_clerk/*.jpg )
    end

    config.i18n.enforce_available_locales = false
    config.i18n.available_locales = [:fi , :en , :config]
    config.i18n.default_locale = :fi
    # for testing this makes engine factories available
    initializer "model_core.factories", :after => "factory_girl.set_factory_paths" do
      FactoryGirl.definition_file_paths << File.expand_path('../../../spec/factories', __FILE__) if defined?(FactoryGirl)
    end

    # have to init the BestInPlace first to be able to include helpers
    config.railties_order = [BestInPlace::Railtie , OfficeClerk::Engine  , :all  ]
    config.after_initialize do
      BestInPlace::ViewHelpers.extend OfficeHelper
    end

  end
end
{'fraction_non_alphanumeric': 0.10552763819095477, 'fraction_numerical': 0.00548195523069895, 'mean_word_length': 3.888392857142857, 'pattern_counts': {'":': 0, '<': 9, '<?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': '210448', 'n_tokens_mistral': 716, 'n_tokens_neox': 688, 'n_words': 149}