<commit_before><commit_msg>Adding old (from branch 2.0) application.rb<commit_after>require 'action_controller/railtie'
require 'sprockets/railtie'

module Jax
  module Rails
    # Bootstraps a Rails 3 application for running the Jax dev server in
    # a non-Rails environment. This class is not used in a Rails application.
    class Application < ::Rails::Application
      config.secret_token                      = "e10adc3949ba59abbe56e057f20f883e"
      config.session_store :cookie_store, :key => "_jax_session"
      config.active_support.deprecation        = :log
      config.consider_all_requests_local       = true
      config.action_controller.perform_caching = false
      config.log_level                         = :debug
      config.cache_classes                     = false
      config.assets.enabled = true
      config.assets.version = '1.0'
      config.assets.debug = true
      config.assets.digest = false

      # this excludes geometry/triangle/inliner.rb and all {jax,shaders}/**/manifest.yml files
      original = config.assets.precompile[0]
      config.assets.precompile[0] = Proc.new do |path|
        original.call(path)                                  and
        path !~ /(jax|shaders)[\\\/].*manifest\.yml/         and
        path !~ /geometry[\\\/]triangle[\\\/]inliner\.rb$/
      end

      routes do
        mount Jax::Engine => "/", :as => "jax"
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.1014799154334038, 'fraction_numerical': 0.017618040873854827, 'mean_word_length': 2.1415929203539825, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1334495', 'n_tokens_mistral': 443, 'n_tokens_neox': 406, 'n_words': 95}