<commit_before>ActiveAdmin.register User do
  permit_params :email, :password, :password_confirmation

  index do
    selectable_column
    id_column
    column :email
    column :current_sign_in_at
    column :sign_in_count
    column :created_at
    actions
  end

  filter :email
  filter :current_sign_in_at
  filter :sign_in_count
  filter :created_at

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

end<commit_msg>MOD : update active admin user panel<commit_after>ActiveAdmin.register User do
  permit_params :email, :password, :password_confirmation

  index do
    selectable_column
    id_column
    column :email
    column :current_sign_in_at
    column :sign_in_count
    column :created_at
    actions
  end

  filter :email
  filter :current_sign_in_at
  filter :sign_in_count
  filter :created_at

  form do |f|
    f.inputs "Admin Details" do
      f.input :email
      # f.input :password
      # f.input :password_confirmation
    end
    f.inputs 'Roles' do
      f.input :roles,  :as => :check_boxes, :collection => Role.global
    end
    f.actions
  end

  controller do
    def permitted_params
      params.require(:user).permit({ role_ids: [] }, :email, :password, :password_confirmation)
    end
  end

end
{'fraction_non_alphanumeric': 0.07004470938897168, 'fraction_numerical': 0.0, 'mean_word_length': 3.008955223880597, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4579137', 'n_tokens_mistral': 438, 'n_tokens_neox': 432, 'n_words': 117}