<commit_before>class StaffController < UsersController


  def show
    form_sorting_for_show()
    @user = Staff.find(params[:id])
    @stat = get_statistics()
  end



  def create
    @staff = Staff.create!(params[:staff])
    @staff.reactivate
    if @staff.save
      flash[:success] = "Staff created successfully!"
      redirect_to admin_path(session[:user_id])
    #else
    #  render 'new'
    end
  end



end<commit_msg>new UI for creating new form<commit_after>class StaffController < UsersController


  def show
    form_sorting_for_show()
    @user = Staff.find(params[:id])
    @stat = view_context.get_statistics()
  end



  def create
    @staff = Staff.create!(params[:staff])
    @staff.reactivate
    if @staff.save
      flash[:success] = "Staff created successfully!"
      redirect_to admin_path(session[:user_id])
    #else
    #  render 'new'
    end
  end



end
{'fraction_non_alphanumeric': 0.10674157303370786, 'fraction_numerical': 0.0, 'mean_word_length': 3.144186046511628, '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': '4720614', 'n_tokens_mistral': 296, 'n_tokens_neox': 277, 'n_words': 64}