<commit_before>class CreateAdminService
  def call
  	user = nil
  	if not user = User.find_by_email(Rails.application.secrets.admin_email)
  		user = User.new(email: Rails.application.secrets.admin_email, name: Rails.application.secrets.admin_name)
  	end
  	user.password = <PASSWORD>
  	user.password_confirmation = <PASSWORD>
  	user.set_admin_role
    user
  end
end<commit_msg>add error messages to create admin service.<commit_after>class CreateAdminService
  def call
  	user = nil
  	if not user = User.find_by_email(Rails.application.secrets.admin_email)
  		user = User.new(email: Rails.application.secrets.admin_email, name: Rails.application.secrets.admin_name)
  	end
  	user.password = <PASSWORD>
  	user.password_confirmation = <PASSWORD>
	if not user.save
		puts "FAILED TO CREATE USER: #{user.errors.messages}"
		return false
        end
  	user.set_admin_role
    user
  end
end
{'fraction_non_alphanumeric': 0.08472686733556299, 'fraction_numerical': 0.0, 'mean_word_length': 3.988888888888889, 'pattern_counts': {'":': 0, '<': 7, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6184096', 'n_tokens_mistral': 317, 'n_tokens_neox': 304, 'n_words': 65}