<commit_before>module Sufia
  class Engine < ::Rails::Engine
    engine_name 'sufia'

    # These gems must be required outside of an initializer or it doesn't get loaded.
    require 'breadcrumbs_on_rails'
    require 'jquery-ui-rails'
    require 'flot-rails'
    require 'almond-rails'
    require 'jquery-datatables-rails'
    require 'flipflop'

    # Force these models to be added to Legato's registry in development mode
    config.eager_load_paths += %W(
      #{config.root}/app/models/sufia/download.rb
      #{config.root}/app/models/sufia/pageview.rb
    )

    initializer 'requires' do
      require 'hydra/derivatives'
      require 'sufia/name'
      require 'sufia/controller_resource'
    end

    initializer 'routing' do
      require 'sufia/rails/routes'
    end

    initializer 'configure' do
      # Set the path for the flipflop config:
      Flipflop::Engine.config_file = Sufia::Engine.root + "config/features.rb"

      Sufia.config.tap do |c|
        Hydra::Derivatives.ffmpeg_path    = c.ffmpeg_path
        Hydra::Derivatives.temp_file_base = c.temp_file_base
        Hydra::Derivatives.fits_path      = c.fits_path
        Hydra::Derivatives.enable_ffmpeg  = c.enable_ffmpeg<commit_msg>Require questioning authority<commit_after>module Sufia
  class Engine < ::Rails::Engine
    engine_name 'sufia'

    # These gems must be required outside of an initializer or it doesn't get loaded.
    require 'breadcrumbs_on_rails'
    require 'jquery-ui-rails'
    require 'flot-rails'
    require 'almond-rails'
    require 'jquery-datatables-rails'
    require 'flipflop'
    require 'qa'

    # Force these models to be added to Legato's registry in development mode
    config.eager_load_paths += %W(
      #{config.root}/app/models/sufia/download.rb
      #{config.root}/app/models/sufia/pageview.rb
    )

    initializer 'requires' do
      require 'hydra/derivatives'
      require 'sufia/name'
      require 'sufia/controller_resource'
    end

    initializer 'routing' do
      require 'sufia/rails/routes'
    end

    initializer 'configure' do
      # Set the path for the flipflop config:
      Flipflop::Engine.config_file = Sufia::Engine.root + "config/features.rb"

      Sufia.config.tap do |c|
        Hydra::Derivatives.ffmpeg_path    = c.ffmpeg_path
        Hydra::Derivatives.temp_file_base = c.temp_file_base
        Hydra::Derivatives.fits_path      = c.fits_path
        Hydra::Derivatives.enable_ffmpeg  = c.enable_ffmpeg
{'fraction_non_alphanumeric': 0.09307972480777013, 'fraction_numerical': 0.0, 'mean_word_length': 2.9806763285024154, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4781213', 'n_tokens_mistral': 857, 'n_tokens_neox': 822, 'n_words': 181}