<commit_before>Rails.application.routes.draw do

  devise_for :users,
             controllers: {
                 omniauth_callbacks: 'callbacks'
             }

  namespace :author do
    resources :site_types
    resources :widgets
    resources :site_storages do
      resources :site_versions
    end
    resources :site_versions do
      resources :site_storages
    end
    resources :widget_categories
  end

  get '/sites/:key', to: 'author/site_storages#show'
  put '/sites/:key', to: 'author/site_storages#update'
  put '/sites/activate/:key', to: 'author/site_storages#activate'

  get '/author', to: 'author/author#index'
<commit_msg>add mode route<commit_after>Rails.application.routes.draw do

  devise_for :users,
             controllers: {
                 omniauth_callbacks: 'callbacks'
             }

  namespace :author do
    resources :site_types
    resources :widgets
    resources :site_storages do
      resources :site_versions
    end
    resources :site_versions do
      resources :site_storages
    end
    resources :widget_categories
  end

  get '/sites/:key', to: 'author/site_storages#show'
  get '/sites/:key/:mode', to: 'author/site_storages#show'

  put '/sites/:key', to: 'author/site_storages#update'
  put '/sites/activate/:key', to: 'author/site_storages#activate'

  get '/author', to: 'author/author#index'

{'fraction_non_alphanumeric': 0.1055350553505535, 'fraction_numerical': 0.0, 'mean_word_length': 2.988235294117647, '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': '3463866', 'n_tokens_mistral': 438, 'n_tokens_neox': 427, 'n_words': 96}