<commit_before>ActiveAdmin.register User do

  member_action :confirm_user, method: :post do
    user = User.find(params[:id])
    user.confirmed_at = Time.now
    user.save!
    redirect_to [:admin, user], notice: "User account was confirmed."
  end

  member_action :suspend_user, method: :post do
    user = User.find(params[:id])
    user.confirmed_at = nil
    user.save!
    redirect_to [:admin, user], notice: "User account was suspended."
  end

  form do |f|
    inputs "User Details" do
      input :email
      input :password
      input :password_confirmation
    end
    actions
  end

  index do
    column :id , sortable: :id do |user|
      link_to user.id, [:admin, user]
    end<commit_msg>Admin: Add :name and :phone to user details.<commit_after>ActiveAdmin.register User do

  member_action :confirm_user, method: :post do
    user = User.find(params[:id])
    user.confirmed_at = Time.now
    user.save!
    redirect_to [:admin, user], notice: "User account was confirmed."
  end

  member_action :suspend_user, method: :post do
    user = User.find(params[:id])
    user.confirmed_at = nil
    user.save!
    redirect_to [:admin, user], notice: "User account was suspended."
  end

  form do |f|
    inputs "User Details" do
      input :name
      input :email
      input :phone
      input :password
      input :password_confirmation
    end
    actions
  end

  index do
    column :id , sortable: :id do |user|
      link_to user.id, [:admin, user]
    end
{'fraction_non_alphanumeric': 0.1009421265141319, 'fraction_numerical': 0.0, 'mean_word_length': 2.882506527415144, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6671881', 'n_tokens_mistral': 479, 'n_tokens_neox': 468, 'n_words': 150}