<commit_before>class OmniauthCallbacksController < Devise::OmniauthCallbacksController

	def provider
		p env['omniauth.auth']
		@user = User.from_omniauth(request.env['omniauth.auth'])
		 if @user.persisted?
	      sign_in_and_redirect @user, :event => :authentication #this will throw if @user is not activated
	      set_flash_message(:notice, :success, :kind => "Facebook") if is_navigational_format?
	    else
 				session["devise.user_attributes"] = @user.attributes
 				redirect_to new_user_registration_url
	    end
	  end

  def failure
    redirect_to root_path
  end
	alias_method :facebook, :eventbrite, :provider

end<commit_msg>Relooking at FB integration<commit_after>class OmniauthCallbacksController < Devise::OmniauthCallbacksController

	def provider
		p env['omniauth.auth']
		@user = User.from_omniauth(request.env['omniauth.auth'])
		 if @user.persisted?
	      sign_in_and_redirect @user, :event => :authentication #this will throw if @user is not activated
	      set_flash_message(:notice, :success, :kind => "Facebook") if is_navigational_format?
	    else
 				session["devise.user_attributes"] = @user.attributes
 				redirect_to new_user_registration_url
	    end
	  end

  def failure
    redirect_to root_path
  end
	alias_method [:facebook, :eventbrite], :provider

end
{'fraction_non_alphanumeric': 0.09062980030721966, 'fraction_numerical': 0.0, 'mean_word_length': 4.616379310344827, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4732638', 'n_tokens_mistral': 444, 'n_tokens_neox': 398, 'n_words': 94}