<commit_before>RailsAdmin.config do |config|

  ### Popular gems integration

  ## == Devise ==
  config.authenticate_with do
    warden.authenticate! scope: :user
  end
  config.current_user_method(&:current_user)

  ## == Cancan ==
  config.authorize_with :cancan

  ## == PaperTrail ==
  # config.audit_with :paper_trail, 'User', 'PaperTrail::Version' # PaperTrail >= 3.0.0

  ### More at https://github.com/sferik/rails_admin/wiki/Base-configuration

  config.actions do
    dashboard                     # mandatory
    index                         # mandatory
    new
    export
    bulk_delete
    show
    edit
    delete
    show_in_app

    ## With an audit adapter, you can add:
    # history_index
    # history_show
  end
  
  config.model 'Project' do
    
    list do
      field :name
      field :saved
      field :published
    end
    
    edit do
      field :name
      field :description
      field :saved
      field :published
    end
    
  end
  
  config.model 'Layer' do
    
    list do
      field :name
      field :layer_type
      field :institution
      field :active
    end
    
    edit do
      field :name
      field :description
      field :tags
      field :institution
      field :slug
      field :url
      field :layer
      field :layer_type
      field :minzoom
      field :maxzoom
      field :minx
      field :miny
      field :maxx
      field :maxy
      field :active
    end
    
  end
  
  config.model 'Institution' do
    list do
      field :name
    end
    
    edit do
      field :name
      field :geoserver
      field :icon
    end
    
  end
  
  config.model 'User' do
    edit do
      #field :username
      #field :displayname
      #field :email
      #field :institution
      #field :avatar
      #field :twitter
      #field :admin
      #field :password
      #field :password_confirmation
    end
  end
  
  config.excluded_models << "Projectlayer"
  
end
<commit_msg>Cleaned up the Rasils Admin config.<commit_after>RailsAdmin.config do |config|

  ### Popular gems integration

  ## == Devise ==
  config.authenticate_with do
    warden.authenticate! scope: :user
  end
  config.current_user_method(&:current_user)

  ## == Cancan ==
  config.authorize_with :cancan

  ## == PaperTrail ==
  # config.audit_with :paper_trail, 'User', 'PaperTrail::Version' # PaperTrail >= 3.0.0

  ### More at https://github.com/sferik/rails_admin/wiki/Base-configuration

  config.actions do
    dashboard                     # mandatory
    index                         # mandatory
    new
    export
    bulk_delete
    show
    edit
    delete
    show_in_app

    ## With an audit adapter, you can add:
    # history_index
    # history_show
  end

  config.model 'Project' do

    list do
      field :name
      field :saved
      field :published
    end

    edit do
      field :name
      field :description
      field :saved
      field :published
    end

  end


  config.model 'RasterLayer' do

    list do
      field :name
      field :layer_type
      field :institution
      field :active
    end

    edit do
      field :name
      field :description
      field :tags
      field :institution
      field :slug
      field :url
      field :layer
      field :layer_type
      field :active
    end

  end

  config.model 'VectorLayer' do

    list do
      field :name
      field :layer_type
      field :institution
      field :active
    end

    edit do
      field :name
      field :description
      field :tags
      field :institution
      field :slug
      field :url
      field :layer
      field :layer_type
      field :active
    end

  end

  config.model 'Institution' do
    list do
      field :name
    end

    edit do
      field :name
      field :geoserver
      field :icon
    end

  end

  config.model 'User' do
    edit do
      #field :username
      #field :displayname
      #field :email
      #field :institution
      #field :avatar
      #field :twitter
      #field :admin
      #field :password
      #field :password_confirmation
    end
  end

  config.excluded_models << 'Projectlayer'
  config.excluded_models << 'VectorLayerProject'
  config.excluded_models << 'RasterLayerProject'
  config.excluded_models << 'Layer'

end

{'fraction_non_alphanumeric': 0.07226654152979822, 'fraction_numerical': 0.0014077897700610043, 'mean_word_length': 1.8823529411764706, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '4918849', 'n_tokens_mistral': 1325, 'n_tokens_neox': 1280, 'n_words': 371}