<commit_before>require 'action_controller'

module ActionController
  class Base
    def set_locale_from_url
      I18n.locale = params[RouteTranslator.locale_param_key]
    end
  end
end<commit_msg>Adding the filter to action_controller by default<commit_after>require 'action_controller'

module ActionController
  class Base
    before_filter :set_locale_from_url

    def set_locale_from_url
      I18n.locale = params[RouteTranslator.locale_param_key]
    end
  end
end
{'fraction_non_alphanumeric': 0.04430379746835443, 'fraction_numerical': 0.008438818565400843, 'mean_word_length': 4.7926829268292686, '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': '6075536', 'n_tokens_mistral': 150, 'n_tokens_neox': 145, 'n_words': 33}