<commit_before>ActiveAdmin.register User do
  permit_params :email, :name, :admin

  index do
    selectable_column
    column :email
    column :name
    column :current_sign_in_at
    column :last_sign_in_at
    column :sign_in_count
    column :admin
    column :locale
    column :timezone
    column :quick_reading
    column :open_all_entries
    default_actions
  end

  filter :email
  filter :name

  form do |f|
    f.inputs 'User Details' do
      f.input :email
      f.input :name
      f.input :admin
    end
    f.actions
  end

  sidebar 'User Details', only: [:show, :edit] do
    ul do
      li link_to 'Folders', admin_user_folders_path(user)<commit_msg>Added table with subscribed feeds to the user show view in ActiveAdmin.<commit_after>ActiveAdmin.register User do
  permit_params :email, :name, :admin

  index do
    selectable_column
    column :email
    column :name
    column :current_sign_in_at
    column :last_sign_in_at
    column :sign_in_count
    column :admin
    column :locale
    column :timezone
    column :quick_reading
    column :open_all_entries
    default_actions
  end

  filter :email
  filter :name

  form do |f|
    f.inputs 'User Details' do
      f.input :email
      f.input :name
      f.input :admin
    end
    f.actions
  end

  show do
    attributes_table do
      row 'email'
      row 'name'
      row 'admin'
      row 'locale'
      row 'timezone'
      row 'quick_reading'
      row 'open_all_entries'
      row 'reset_password_sent_at'
      row 'remember_created_at'
      row 'sign_in_count'
      row 'current_sign_in_at'
      row 'last_sign_in_at'
      row 'current_sign_in_ip'
      row 'last_sign_in_ip'
      row 'confirmed_at'
      row 'confirmation_sent_at'
      row 'unconfirmed_email'
      row 'failed_attempts'
      row 'locked_at'
    end
    panel 'Feed subscriptions' do
      table_for user.feed_subscriptions do
        column 'title' do |subscription|
          link_to subscription.feed.title, admin_feed_path(subscription.feed)
        end
      end
    end
  end

  sidebar 'User Details', only: [:show, :edit] do
    ul do
      li link_to 'Folders', admin_user_folders_path(user)
{'fraction_non_alphanumeric': 0.06709558823529412, 'fraction_numerical': 0.0, 'mean_word_length': 2.5864909390444812, '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': '6153937', 'n_tokens_mistral': 724, 'n_tokens_neox': 707, 'n_words': 201}