<commit_before>class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
  def github
    @user = User.find_for_github_oauth(request.env["omniauth.auth"], current_user)

    sign_in_and_redirect @user, :event => :authentication #this will throw if @user is not activated
    flash[:notice] = "Nice person you are. Welcome!"
  end
end<commit_msg>Keep people signed in. Fixes #497<commit_after>class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
  include Devise::Controllers::Rememberable

  def github
    @user = User.find_for_github_oauth(request.env["omniauth.auth"], current_user)
    # Keep people signed in
    remember_me(@user)

    sign_in_and_redirect @user, :event => :authentication #this will throw if @user is not activated
    flash[:notice] = "Nice person you are. Welcome!"
  end
end
{'fraction_non_alphanumeric': 0.09669811320754718, 'fraction_numerical': 0.003537735849056604, 'mean_word_length': 5.530769230769231, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3310455', 'n_tokens_mistral': 263, 'n_tokens_neox': 251, 'n_words': 67}