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

require 'rails/all'

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

module Uglst
  class Application < Rails::Application
    config.active_support.escape_html_entities_in_json = true
    config.assets.enabled = true
    config.assets.version = '1.0'
    config.encoding = 'utf-8'
    config.filter_parameters += [
      :birthday,
      :ethnicity,
      :gender,
      :parental_status,
      :password,
      :password_confirmation,
      :race,
      :relationship_status,
      :religious_affiliation,
      :sexual_orientation
    ]

    config.time_zone = 'UTC'

    config.generators do |g|
      g.helper = false
      g.helper_specs false
      g.javascripts = false
      g.stylesheets = false
      g.test_framework :rspec, fixture: true
      g.view_specs false
    end

    console do
      config.console = Pry
    end

    config.after_initialize do
      Hirb.enable if Rails.env.development? || Rails.env.test?
    end

    config.middleware.delete Rack::Lock
  end
end
<commit_msg>Don't generate helpers and noisy stuff<commit_after>require File.expand_path('../boot', __FILE__)

require 'rails/all'

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

module Uglst
  class Application < Rails::Application
    config.active_support.escape_html_entities_in_json = true
    config.assets.enabled = true
    config.assets.version = '1.0'
    config.encoding = 'utf-8'
    config.filter_parameters += [
      :birthday,
      :ethnicity,
      :gender,
      :parental_status,
      :password,
      :password_confirmation,
      :race,
      :relationship_status,
      :religious_affiliation,
      :sexual_orientation
    ]

    config.time_zone = 'UTC'

    config.generators do |g|
      g.controller_specs = false
      g.helper = false
      g.helper_specs false
      g.helpers = false
      g.javascripts = false
      g.stylesheets = false
      g.test_framework :rspec, fixture: true
      g.view_specs false
    end

    console do
      config.console = Pry
    end

    config.after_initialize do
      Hirb.enable if Rails.env.development? || Rails.env.test?
    end

    config.middleware.delete Rack::Lock
  end
end

{'fraction_non_alphanumeric': 0.09276206322795341, 'fraction_numerical': 0.0024958402662229617, 'mean_word_length': 2.734472049689441, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4400691', 'n_tokens_mistral': 785, 'n_tokens_neox': 743, 'n_words': 173}