<commit_before>class Admin::AccountController < Admin::BaseController

  layout 'admin/session'

  skip_before_filter :reload_config_and_roles
  skip_before_filter :authenticate
  skip_before_filter :set_locale

  before_filter :sign_in?, :except => [:forgot_password, :send_password, :show]
  before_filter :new?, :only => [:forgot_password, :send_password]

  def new
    flash[:notice] = Typus::I18n.t("Enter your email below to create the first user.")
  end

  def create
    user = Typus.user_class.generate(:email => params[:typus_user][:email])
    user.status = true
    if user.save
      session[:typus_user_id] = user.id
      redirect_to :controller => "/admin/#{Typus.user_class.to_resource}", :action => "edit", :id => user.id
    else
      redirect_to :action => :new
    end
  end

  def forgot_password
  end

  def send_password<commit_msg>Changed again what we do after creatin an account<commit_after>class Admin::AccountController < Admin::BaseController

  layout 'admin/session'

  skip_before_filter :reload_config_and_roles
  skip_before_filter :authenticate
  skip_before_filter :set_locale

  before_filter :sign_in?, :except => [:forgot_password, :send_password, :show]
  before_filter :new?, :only => [:forgot_password, :send_password]

  def new
    flash[:notice] = Typus::I18n.t("Enter your email below to create the first user.")
  end

  def create
    user = Typus.user_class.generate(:email => params[:typus_user][:email])
    user.status = true
    redirect_to user.save ? { :action => "show", :id => user.token } : { :action => :new }
  end

  def forgot_password
  end

  def send_password
{'fraction_non_alphanumeric': 0.11411042944785275, 'fraction_numerical': 0.00245398773006135, 'mean_word_length': 4.4366666666666665, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 16, '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': '5552762', 'n_tokens_mistral': 533, 'n_tokens_neox': 514, 'n_words': 127}