<commit_before>class SubmissionsController < ApplicationController
  def new
      @submission = Submission.new 
  end

  def create
      @submission = Submission.new(submission_params)
    if @submission.save
      p"*"*100
      p current_user
      p "*"*100
        #send email to the user
      CompanyMailer.submit_company_email(current_user).deliver
      redirect_to root_path 
    else
      render 'new'
    end 
	end

	private
	def submission_params
		params.require(:submission).permit(:name, :short_description, :domain, :city_name, :region_name, :country_code, :avatar, :user_id)
	end
end
<commit_msg>delet debug code in the sumbtion<commit_after>class SubmissionsController < ApplicationController
  def new
      @submission = Submission.new 
  end

  def create
      @submission = Submission.new(submission_params)
    if @submission.save
        #send email to the user
      CompanyMailer.submit_company_email(current_user).deliver
      redirect_to root_path 
    else
      render 'new'
    end 
	end

	private
	def submission_params
		params.require(:submission).permit(:name, :short_description, :domain, :city_name, :region_name, :country_code, :avatar, :user_id)
	end
end

{'fraction_non_alphanumeric': 0.07839866555462886, 'fraction_numerical': 0.0050041701417848205, 'mean_word_length': 3.5627376425855513, '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': '2388522', 'n_tokens_mistral': 387, 'n_tokens_neox': 368, 'n_words': 90}