<commit_before>Rails.application.routes.draw do
  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html

  devise_for :admins
  namespace :admin, path: '/', constraints: {subdomain: "admin"} do
    root 'dashboard#index'

    resources :events do
      resources :products do
        collection do
          put :update_index
        end
      end
    end
  end

  root 'home#index'

  get 'e/:link_name', to: 'events#show'
end<commit_msg>Refine - Refine routes<commit_after>Rails.application.routes.draw do
  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html

  devise_for :admins
  namespace :admin, path: '/', constraints: {subdomain: "admin"} do
    root 'dashboard#index'

    resources :events do
      resources :products do
        collection do
          put :update_index
        end
      end
    end
  end

  root 'home#index'

  get 'e/:link_name', to: 'events#show', as: 'event'
end
{'fraction_non_alphanumeric': 0.09979838709677419, 'fraction_numerical': 0.0, 'mean_word_length': 2.924901185770751, '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': '571615', 'n_tokens_mistral': 315, 'n_tokens_neox': 306, 'n_words': 93}