<commit_before>Rails.application.routes.draw do

  root "communities#top", :layout => "application"

  scope "/:layout" do

    resources :communities, only: [:show]
    resources :collections, only: [:show]
    resources :items, only: [:show]

    get 'about' => "application#about"

    ['search'].each do |action|
      get action => "application#todo"
    end

    devise_for :users

  end

  # The priority is based upon order of creation: first created -> highest priority.
  # See how all your routes lay out with "rake routes".

  # You can have the root of your site routed with "root"
  # root 'welcome#index'

  # Example of regular route:
  #   get 'products/:id' => 'catalog#view'

  # Example of named route that can be invoked with purchase_url(id: product.id)
  #   get 'products/:id/purchase' => 'catalog#purchase', as: :purchase

  # Example resource route (maps HTTP verbs to controller actions automatically):<commit_msg>add /:layout route<commit_after>Rails.application.routes.draw do

  root "communities#top", :layout => "application"

  scope "/:layout" do

    resources :communities, only: [:show]
    resources :collections, only: [:show]
    resources :items, only: [:show]

    get 'about' => "application#about"

    ['search'].each do |action|
      get action => "application#todo"
    end

    get '' => "communities#top"

    devise_for :users

  end

  # The priority is based upon order of creation: first created -> highest priority.
  # See how all your routes lay out with "rake routes".

  # You can have the root of your site routed with "root"
  # root 'welcome#index'

  # Example of regular route:
  #   get 'products/:id' => 'catalog#view'

  # Example of named route that can be invoked with purchase_url(id: product.id)
  #   get 'products/:id/purchase' => 'catalog#purchase', as: :purchase

  # Example resource route (maps HTTP verbs to controller actions automatically):
{'fraction_non_alphanumeric': 0.1171875, 'fraction_numerical': 0.0, 'mean_word_length': 3.606714628297362, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 16, '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': '2434819', 'n_tokens_mistral': 585, 'n_tokens_neox': 561, 'n_words': 207}