<commit_before>class UsersController < ApplicationController
	def new
		if current_user
			@open_invitations ||= current_user.invitations.where(confirmation_status: 'accepted')
		end
	end

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

	def create
    @user = User.new(params[:user])
    respond_to do |format|
      if @user.save
        format.html { redirect_to(@user, notice: 'User was successfully created.') }
        format.json { render json: @user, status: :created, location: @user }
      else
        format.html { render action: 'new' }
        format.json { render json: @user.errors, status: :unprocessable_entity }<commit_msg>fixed invitation conf. status<commit_after>class UsersController < ApplicationController
	def new
		if current_user
			@open_invitations ||= current_user.invitations.where(confirmation_status: 'pending')
		end
	end

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

	def create
    @user = User.new(params[:user])
    respond_to do |format|
      if @user.save
        format.html { redirect_to(@user, notice: 'User was successfully created.') }
        format.json { render json: @user, status: :created, location: @user }
      else
        format.html { render action: 'new' }
        format.json { render json: @user.errors, status: :unprocessable_entity }
{'fraction_non_alphanumeric': 0.11128165771297006, 'fraction_numerical': 0.0, 'mean_word_length': 3.5121107266435985, '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': '5918447', 'n_tokens_mistral': 404, 'n_tokens_neox': 389, 'n_words': 107}