<commit_before>require File.expand_path('../boot', __FILE__)

require "action_controller/railtie"
require "action_mailer/railtie"
require "active_resource/railtie"
require "rails/test_unit/railtie"
require "sprockets/railtie"
require "tire/rails/logger"

if defined?(Bundler)
  Bundler.require(*Rails.groups(:assets => %w(development test)))
end

$mixture_config = YAML.load_file("config/mixture.yml")[Rails.env].symbolize_keys
HOST            = $mixture_config[:host]

module Mixture
  class Application < Rails::Application
    config.autoload_paths += ["./app/jobs", "./app/uploaders", "./app/observers", "./lib/middleware"]


    config.middleware.use OmniAuth::Builder do
      provider :facebook, ENV['FACEBOOK_APP_ID'], ENV['FACEBOOK_APP_SECRET']
      configure do |config|
        config.path_prefix = '/api/v0/auth'
      end

      on_failure do |env|
        Rails.logger.info "OMNIAUTH ERROR = #{env['omniauth.error'].inspect}"
      end
    end

    config.middleware.use "WwwMiddleware"


    config.action_mailer.delivery_method   = :postmark
    config.action_mailer.postmark_settings = { api_key: ENV['POSTMARK_API_KEY'] }

    config.mongoid.observers = :mix_observer, :performer_observer, :mix_collection_observer

    config.generators do |g|
      g.test_framework      :test_unit, fixture_replacement: :fabrication
      g.fixture_replacement :fabrication, dir: "test/fabricators"
    end

    config.encoding = "utf-8"
    config.filter_parameters += [:password]
    config.assets.enabled = true
    config.assets.version = '1.0'
  end
end<commit_msg>Update asset version<commit_after>require File.expand_path('../boot', __FILE__)

require "action_controller/railtie"
require "action_mailer/railtie"
require "active_resource/railtie"
require "rails/test_unit/railtie"
require "sprockets/railtie"
require "tire/rails/logger"

if defined?(Bundler)
  Bundler.require(*Rails.groups(:assets => %w(development test)))
end

$mixture_config = YAML.load_file("config/mixture.yml")[Rails.env].symbolize_keys
HOST            = $mixture_config[:host]

module Mixture
  class Application < Rails::Application
    config.autoload_paths += ["./app/jobs", "./app/uploaders", "./app/observers", "./lib/middleware"]


    config.middleware.use OmniAuth::Builder do
      provider :facebook, ENV['FACEBOOK_APP_ID'], ENV['FACEBOOK_APP_SECRET']
      configure do |config|
        config.path_prefix = '/api/v0/auth'
      end

      on_failure do |env|
        Rails.logger.info "OMNIAUTH ERROR = #{env['omniauth.error'].inspect}"
      end
    end

    config.middleware.use "WwwMiddleware"


    config.action_mailer.delivery_method   = :postmark
    config.action_mailer.postmark_settings = { api_key: ENV['POSTMARK_API_KEY'] }

    config.mongoid.observers = :mix_observer, :performer_observer, :mix_collection_observer

    config.generators do |g|
      g.test_framework      :test_unit, fixture_replacement: :fabrication
      g.fixture_replacement :fabrication, dir: "test/fabricators"
    end

    config.encoding = "utf-8"
    config.filter_parameters += [:password]
    config.assets.enabled = true
    config.assets.version = '1.0.1'
  end
end
{'fraction_non_alphanumeric': 0.12567268122823677, 'fraction_numerical': 0.002849002849002849, 'mean_word_length': 4.0, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2602619', 'n_tokens_mistral': 1089, 'n_tokens_neox': 1048, 'n_words': 181}