<commit_before>RailsAdmin.config do |config|
  config.authorize_with :cancan

  # config.actions do
  #   # root actions
  #   dashboard do
  #     statistics false
  #   end
  #   # collection actions
  #   index # mandatory
  #   new
  #   export
  #   history_index
  #   bulk_delete
  #   # member actions
  #   show
  #   edit
  #   delete
  #   history_show
  #   show_in_app
  #   nested_set do
  #     visible do
  #       %w(Page).include? bindings[:abstract_model].category
  #     end
  #   end
  # end

  config.model 'Organization' do
    weight -1

    list do
      field :name
      field :locations
      field :updated_at
    end

    edit do
      field :name
    end

    create do
      field :name
      field :locations do
        visible false
      end
    end
  end

  config.model 'Service' do
    weight -1

    list do
      #field :name
      field :location
      field :updated_at
    end

    edit do
      field :location do
        read_only true
      end
      field :name
      field :description
      # field :schedules do
      #   partial "open"
      # end
      field :schedules
      field :audience
      field :eligibility
      field :fees
      field :funding_sources
      field :how_to_apply
      field :service_areas
      field :urls
      field :wait

      field :keywords
      field :categories
    end
  end

  config.model 'Contact' do
    list do
      field :name
      field :title
      field :location
    end
  end

  config.model 'Location' do
    list do
      field :name
      field :full_address
      field :organization
      field :updated_at
    end
<commit_msg>Add "Kind" column to Location index<commit_after>RailsAdmin.config do |config|
  config.authorize_with :cancan

  # config.actions do
  #   # root actions
  #   dashboard do
  #     statistics false
  #   end
  #   # collection actions
  #   index # mandatory
  #   new
  #   export
  #   history_index
  #   bulk_delete
  #   # member actions
  #   show
  #   edit
  #   delete
  #   history_show
  #   show_in_app
  #   nested_set do
  #     visible do
  #       %w(Page).include? bindings[:abstract_model].category
  #     end
  #   end
  # end

  config.model 'Organization' do
    weight -1

    list do
      field :name
      field :locations
      field :updated_at
    end

    edit do
      field :name
    end

    create do
      field :name
      field :locations do
        visible false
      end
    end
  end

  config.model 'Service' do
    weight -1

    list do
      #field :name
      field :location
      field :updated_at
    end

    edit do
      field :location do
        read_only true
      end
      field :name
      field :description
      # field :schedules do
      #   partial "open"
      # end
      field :schedules
      field :audience
      field :eligibility
      field :fees
      field :funding_sources
      field :how_to_apply
      field :service_areas
      field :urls
      field :wait

      field :keywords
      field :categories
    end
  end

  config.model 'Contact' do
    list do
      field :name
      field :title
      field :location
    end
  end

  config.model 'Location' do
    list do
      field :name
      field :organization
      field :kind
      field :updated_at
    end

{'fraction_non_alphanumeric': 0.05900243309002433, 'fraction_numerical': 0.0012165450121654502, 'mean_word_length': 1.6827079934747144, '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': '7537959', 'n_tokens_mistral': 1040, 'n_tokens_neox': 1011, 'n_words': 309}