<commit_before>class OauthSessionsController < ApplicationController
  def create
    auth = request.env["omniauth.auth"]
    account = Account.find_by_provider_and_uid(auth["provider"], auth["uid"])

    if account
      # we have a user associated with this authentication.
      user = account.user
    else
      # there is no user with this authentication.
      # create a new authentication or user.
      user = User.create_with_omniauth(auth)
    end

    session[:user_id] = user.id
    redirect_to root_url, :notice => "Signed in!"
  end

  def login

  end
end<commit_msg>Redirect to beta after logging in<commit_after>class OauthSessionsController < ApplicationController
  def create
    auth = request.env["omniauth.auth"]
    account = Account.find_by_provider_and_uid(auth["provider"], auth["uid"])

    if account
      # we have a user associated with this authentication.
      user = account.user
    else
      # there is no user with this authentication.
      # create a new authentication or user.
      user = User.create_with_omniauth(auth)
    end

    session[:user_id] = user.id
    redirect_to "/beta/#/"
  end

  def login

  end
end
{'fraction_non_alphanumeric': 0.0815450643776824, 'fraction_numerical': 0.0, 'mean_word_length': 3.1201413427561837, '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': '2969315', 'n_tokens_mistral': 338, 'n_tokens_neox': 325, 'n_words': 103}