<commit_before>class ApplicationController < ActionController::Base
  protect_from_forgery

  def after_sign_in_path_for(resource_or_scope)
    if request.env['omniauth.origin']
      request.env['omniauth.origin']
    end
  end

  def after_sign_out_path_for(resource_or_scope)
    request.referrer
  end
end
<commit_msg>Redirect to homepage on logout<commit_after>class ApplicationController < ActionController::Base
  protect_from_forgery

  def after_sign_in_path_for(resource_or_scope)
    if request.env['omniauth.origin']
      request.env['omniauth.origin']
    end
  end

  def after_sign_out_path_for(resource_or_scope)
    root_path
  end
end

{'fraction_non_alphanumeric': 0.06880733944954129, 'fraction_numerical': 0.0, 'mean_word_length': 5.064814814814815, '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': '5095404', 'n_tokens_mistral': 220, 'n_tokens_neox': 211, 'n_words': 36}