<commit_before># encoding: utf-8

module ActiveSupport::Inflector
  def titleize_with_sca(word)
    return 'THL' if word == 'thl'
    titleize_without_sca(word).gsub(/æ/, 'Æ')
  end

  alias_method_chain :titleize, :sca
end<commit_msg>update to new monkey patch style<commit_after># encoding: utf-8

module TitleizeWithSCA
  def titleize(word)
    return 'THL' if word == 'thl'
    super(word).gsub(/æ/, 'Æ')
  end
end

ActiveSupport::Inflector.send(:prepend, TitleizeWithSCA)
{'fraction_non_alphanumeric': 0.12605042016806722, 'fraction_numerical': 0.004201680672268907, 'mean_word_length': 4.817073170731708, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3095795', 'n_tokens_mistral': 178, 'n_tokens_neox': 179, 'n_words': 41}