<commit_before>$LOAD_PATH << File.expand_path('../lib', __dir__)
require File.expand_path('../boot', __FILE__)

require "rails"
# Pick the frameworks you want:
require "active_model/railtie"
require "active_job/railtie"
require "active_record/railtie"
require "action_controller/railtie"
require "action_mailer/railtie"
require "action_view/railtie"
require "sprockets/railtie"
require 'schema_reloader'
# require "rails/test_unit/railtie"

# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)

module Hireables
  class Application < Rails::Application
    # Autloaded paths
    config.autoload_paths += Dir["#{config.root}/app/graphql/*"]
    config.autoload_paths += Dir["#{config.root}/app/lib/*"]
    config.autoload_paths << Rails.root.join('app/services')

    # Middlewares
    config.middleware.use SchemaReloader

    # Configure react rendering
    config.react.addons = true
    config.react.server_renderer_pool_size  ||= 5
    config.react.server_renderer_timeout    ||= 20
    config.react.server_renderer = React::ServerRendering::SprocketsRenderer
    config.react.server_renderer_options = {
      files: ["react.js", "components.js"],
      replay_console: true,
    }

    # Autoload lib
    config.autoload_paths += Dir["#{config.root}/app/lib/*"]

    # Configure rails g to skip helper/assets files
    config.generators do |g|
      g.assets = false
      g.helper = false
      g.view_specs      false
      g.helper_specs    false
    end

    config.middleware.insert_before 0, Rack::Cors do
      allow do
        origins 'fonts.gstatic.com'
        resource '*', headers: :any, methods: [:get, :options]
      end
    end

    # Setup sidekiq
    config.active_job.queue_adapter = :sidekiq
  end
end<commit_msg>Remove react-rails configuration<commit_after>$LOAD_PATH << File.expand_path('../lib', __dir__)
require File.expand_path('../boot', __FILE__)

require "rails"
# Pick the frameworks you want:
require "active_model/railtie"
require "active_job/railtie"
require "active_record/railtie"
require "action_controller/railtie"
require "action_mailer/railtie"
require "action_view/railtie"
require "sprockets/railtie"
require 'schema_reloader'
# require "rails/test_unit/railtie"

# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)

module Hireables
  class Application < Rails::Application
    # Autloaded paths
    config.autoload_paths += Dir["#{config.root}/app/graphql/*"]
    config.autoload_paths += Dir["#{config.root}/app/lib/*"]
    config.autoload_paths << Rails.root.join('app/services')

    # Middlewares
    config.middleware.use SchemaReloader

    # Autoload lib
    config.autoload_paths += Dir["#{config.root}/app/lib/*"]

    # Configure rails g to skip helper/assets files
    config.generators do |g|
      g.assets = false
      g.helper = false
      g.view_specs      false
      g.helper_specs    false
    end

    config.middleware.insert_before 0, Rack::Cors do
      allow do
        origins 'fonts.gstatic.com'
        resource '*', headers: :any, methods: [:get, :options]
      end
    end

    # Don't silence errors
    config.active_record.raise_in_transactional_callbacks = true

    # Setup sidekiq
    config.active_job.queue_adapter = :sidekiq
  end
end
{'fraction_non_alphanumeric': 0.11410970959225579, 'fraction_numerical': 0.0014667057788207685, 'mean_word_length': 3.684065934065934, 'pattern_counts': {'":': 0, '<': 13, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2185968', 'n_tokens_mistral': 1132, 'n_tokens_neox': 1097, 'n_words': 241}