<commit_before>class PeopleController < ApplicationController

  # before_action :authorize_administrators, only: [:new, :create, :edit, :update, :destroy]
  before_action :load_parties, only: [:new, :create, :edit, :update, :destroy]
  before_action :load_person_and_declarations, only: [:show, :contact]


  def index
    redirect_to councillors_people_path
  end

  def councillors
    @people = Person.councillors.includes(:party).sorted_as_councillors
  end

  def directors
    @people = Person.directors.sorted_as_directors
  end

  def show
    @contact = Contact.new(person: @person)
  end<commit_msg>activates the administrator check in the people controller<commit_after>class PeopleController < ApplicationController

  before_action :authorize_administrators, only: [:new, :create, :edit, :update, :destroy]
  before_action :load_parties, only: [:new, :create, :edit, :update, :destroy]
  before_action :load_person_and_declarations, only: [:show, :contact]


  def index
    redirect_to councillors_people_path
  end

  def councillors
    @people = Person.councillors.includes(:party).sorted_as_councillors
  end

  def directors
    @people = Person.directors.sorted_as_directors
  end

  def show
    @contact = Contact.new(person: @person)
  end
{'fraction_non_alphanumeric': 0.09422011084718923, 'fraction_numerical': 0.0, 'mean_word_length': 5.1658536585365855, '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': '912721', 'n_tokens_mistral': 423, 'n_tokens_neox': 397, 'n_words': 96}