<commit_before>module Forem
  class Engine < Rails::Engine
    isolate_namespace Forem
  end
end

require 'simple_form'

# Fixes this error:
# Encoding::CompatibilityError:
#        incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string)
# Which happens when running integration specs containing a form
require 'rack/utils_monkey_patch'

# To load the translations, which *should* be automatically loaded
I18n.load_path << File.expand_path("config/locales/en.yml", File.dirname(__FILE__) + "../../..")<commit_msg>No need to manually load translations anymore<commit_after>module Forem
  class Engine < Rails::Engine
    isolate_namespace Forem
  end
end

require 'simple_form'

# Fixes this error:
# Encoding::CompatibilityError:
#        incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string)
# Which happens when running integration specs containing a form
require 'rack/utils_monkey_patch'
{'fraction_non_alphanumeric': 0.08198489751887811, 'fraction_numerical': 0.006472491909385114, 'mean_word_length': 4.948717948717949, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1505327', 'n_tokens_mistral': 274, 'n_tokens_neox': 260, 'n_words': 88}