<commit_before>module Typus

  module Configuration

    # Default application options that can be overwritten from
    # an initializer.
    #
    # Example:
    #
    #   Typus::Configuration.options[:app_name] = "Your App Name"
    #   Typus::Configuration.options[:per_page] = 15
    #
    @@options = { :app_logo => '',
                  :app_logo_height => '',
                  :app_logo_width => '',
                  :app_name => 'Typus Admin',
                  :app_description => '',
                  :per_page => 15,
                  :prefix => 'admin',
                  :color => '#000',
                  :version => '',
                  :signature => '',
                  :form_rows => '10',
                  :form_columns => '10' }

    mattr_reader :options

    ##
    # Read Typus Configuration file
    case ENV['RAILS_ENV']
    when 'test'
      config_file = "#{File.dirname(__FILE__)}/../../test/typus.yml"
      @@config = YAML.load_file(config_file)
    else
      config_file = "#{RAILS_ROOT}/config/typus.yml"
      @@config = YAML.load_file(config_file)
      Dir['vendor/plugins/*/config/typus.yml'].each do |plugin|
        @@config = @@config.merge(YAML.load_file("#{RAILS_ROOT}/#{plugin}"))
      end<commit_msg>Removed old settings ...<commit_after>module Typus

  module Configuration

    ##
    # Default application options that can be overwritten from
    # an initializer.
    #
    # Example:
    #
    #   Typus::Configuration.options[:app_name] = "Your App Name"
    #   Typus::Configuration.options[:app_description] = "Your App Description"
    #   Typus::Configuration.options[:per_page] = 15
    #
    @@options = { :app_name => 'Typus Admin',
                  :app_description => '',
                  :per_page => 15,
                  :prefix => 'admin',
                  :version => '',
                  :form_rows => '10',
                  :form_columns => '10' }

    mattr_reader :options

    ##
    # Read Typus Configuration file
    #
    case ENV['RAILS_ENV']
    when 'test'
      config_file = "#{File.dirname(__FILE__)}/../../test/typus.yml"
      @@config = YAML.load_file(config_file)
    else
      config_file = "#{RAILS_ROOT}/config/typus.yml"
      @@config = YAML.load_file(config_file)
      Dir['vendor/plugins/*/config/typus.yml'].each do |plugin|
        @@config = @@config.merge(YAML.load_file("#{RAILS_ROOT}/#{plugin}"))
      end
{'fraction_non_alphanumeric': 0.14776490066225165, 'fraction_numerical': 0.007864238410596027, 'mean_word_length': 1.9876390605686032, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 22, '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': '6170337', 'n_tokens_mistral': 781, 'n_tokens_neox': 721, 'n_words': 132}