<commit_before>class UsersController < ApplicationController
	def new
		@user = User.new
	end

	def create
		@user = User.new(user_params)
		if @user.save
			redirect_to root_path
		else
			flash[:notice] = "ERROR"
			render :new
		end
	end

	def index
	  @client_id = ENV['client_id']
	  @state="somenonsense"
	  redirect_to "https://github.com/login/oauth/authorize?client_id=#{@client_id}"
	end

	def auth
		p "hello"
	  code = params[:code]
	  state = params[:state]
	  redirect_to "https://github.com/login/oauth/access_token?client_id=#{@client_id}&client_secret=#{ENV['CLIENT_SECRET']}&code=#{code}&redirect_uri=http://127.0.0.1:3000/auth" if state == @state
	end

	def show
		@user = User.find(params[:id])
	end

  private<commit_msg>deleted unnecessary controller for auth<commit_after>class UsersController < ApplicationController
	def new
		@user = User.new
	end

	def create
		@user = User.new(user_params)
		if @user.save
			redirect_to root_path
		else
			flash[:notice] = "ERROR"
			render :new
		end
	end

	def index
	  @client_id = ENV['client_id']
	  @state="somenonsense"
	  redirect_to "https://github.com/login/oauth/authorize?client_id=#{@client_id}"
	end

	def show
		@user = User.find(params[:id])
	end

  private
{'fraction_non_alphanumeric': 0.1293451899757478, 'fraction_numerical': 0.008084074373484237, 'mean_word_length': 4.158333333333333, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '802222', 'n_tokens_mistral': 493, 'n_tokens_neox': 444, 'n_words': 91}