<commit_before># -*- encoding: utf-8 -*-
class SessionsController < ApplicationController

  skip_before_filter :login_required

  def start
    return_to = params[:return_to] || root_path
    redirect_to url_for("/auth/open_id?return_to=#{return_to}")
  end

  def failure
    respond_to { |format| format.html }
  end

  def create
    auth = request.env["omniauth.auth"]
    if auth.present?
      user = User.find_by_omniauth_provider_and_omniauth_uid(auth["provider"], auth["uid"]) ||
          User.create_with_omniauth(auth)
      session[:user_id] = user.id
      if params[:return_to].present?
        return redirect_to params[:return_to]
      end
    end<commit_msg>Fixed a bug<commit_after># -*- encoding: utf-8 -*-
class SessionsController < ApplicationController

  skip_before_filter :login_required

  skip_before_filter :nickname_required, :only => [:destroy]

  def start
    return_to = params[:return_to] || root_path
    redirect_to url_for("/auth/open_id?return_to=#{return_to}")
  end

  def failure
    respond_to { |format| format.html }
  end

  def create
    auth = request.env["omniauth.auth"]
    if auth.present?
      user = User.find_by_omniauth_provider_and_omniauth_uid(auth["provider"], auth["uid"]) ||
          User.create_with_omniauth(auth)
      session[:user_id] = user.id
      if params[:return_to].present?
        return redirect_to params[:return_to]
      end
    end
{'fraction_non_alphanumeric': 0.11299435028248588, 'fraction_numerical': 0.0014124293785310734, 'mean_word_length': 3.6156351791530943, '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': '1442533', 'n_tokens_mistral': 462, 'n_tokens_neox': 444, 'n_words': 87}