<commit_before>class Admin::PeopleController < ApplicationController
  before_filter :login_required, :admin_required
  active_scaffold :person do |config|
    config.label = "People"
    config.columns = [:name, :email, :phone, :admin, :deactivated, :email_verified, :last_logged_in_at]
    config.list.columns = [:name, :email, :phone, :admin, :deactivated, :email_verified, :last_logged_in_at]
    config.create.columns = [:name, :email, :phone, :password, :password_confirmation] 
    config.update.columns = [:name, :email, :phone, :password, :password_confirmation, :deactivated, :email_verified] 
    config.nested.add_link('Addresses', [:addresses])
  end

  # NOTE: index was removed from original insoshi to allow active scaffold to be default index<commit_msg>allow admin to grant admin rights. closes gh-20.<commit_after>class Admin::PeopleController < ApplicationController
  before_filter :login_required, :admin_required
  active_scaffold :person do |config|
    config.label = "People"
    config.columns = [:name, :email, :phone, :admin, :deactivated, :email_verified, :last_logged_in_at]
    config.list.columns = [:name, :email, :phone, :admin, :deactivated, :email_verified, :last_logged_in_at]
    config.create.columns = [:name, :email, :phone, :password, :password_confirmation] 
    config.update.columns = [:name, :admin, :email, :phone, :password, :password_confirmation, :deactivated, :email_verified] 
    config.nested.add_link('Addresses', [:addresses])
  end

  # NOTE: index was removed from original insoshi to allow active scaffold to be default index
{'fraction_non_alphanumeric': 0.12302839116719243, 'fraction_numerical': 0.0012618296529968455, 'mean_word_length': 5.777777777777778, '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': '5096224', 'n_tokens_mistral': 507, 'n_tokens_neox': 487, 'n_words': 127}