<commit_before>class UsersController < ApplicationController
	include UsersHelper
	def index
		@users = User.all
	end

	def show
		@user = current_user	
		@game = Game.where(:user_id == session[:user_id])
	end

	def new
		@user = User.new
	end

	def create
		@user = User.new(user_params) 
		if @user.save
   		session[:user_id] = @user.id
			# @game = @user.games.create()
			
		else 
			render :new
		end
		redirect_to new_game_path
	end

	private<commit_msg>moved 'redirect_to new_game_path' to within the if condition<commit_after>class UsersController < ApplicationController
	include UsersHelper
	def index
		@users = User.all
	end

	def show
		@user = current_user
		@game = Game.where(:user_id == session[:user_id])
	end

	def new
		@user = User.new
	end

	def create
		@user = User.new(user_params)
		if @user.save
   		session[:user_id] = @user.id
			# @game = @user.games.create()

		redirect_to new_game_path
		else
			render :new
		end
	end

	private
{'fraction_non_alphanumeric': 0.09553478712357218, 'fraction_numerical': 0.0, 'mean_word_length': 3.4220183486238533, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '7230255', 'n_tokens_mistral': 385, 'n_tokens_neox': 343, 'n_words': 88}