<commit_before>class ApplicationController < ActionController::Base
  protect_from_forgery

  before_filter :set_locale
 
def set_locale
  I18n.locale = params[:locale] || I18n.default_locale
end

# app/controllers/application_controller.rb
# this function adds the :locale parameter to the url by default
def default_url_options(options={})
  logger.debug "default_url_options is passed options: #{options.inspect}\n"
  { :locale => I18n.locale }
end
end
<commit_msg>reverted to normal i18n<commit_after>class ApplicationController < ActionController::Base
  protect_from_forgery
  before_filter :set_locale

  def set_locale
    I18n.locale = params[:locale] || I18n.default_locale
  end



end

{'fraction_non_alphanumeric': 0.08034433285509325, 'fraction_numerical': 0.01721664275466284, 'mean_word_length': 5.647619047619048, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '3735440', 'n_tokens_mistral': 223, 'n_tokens_neox': 211, 'n_words': 52}