<commit_before>Rails.application.routes.draw do
  # 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 'application#index'

  resources :application, only: [:show]
  resources :users
  resources :sessions
  resources "contacts", only: [:new, :create]

  get '/about' => 'application#about'

  get '/contact' => 'contacts#new'

  get "/login" => "sessions#new", :as => "log_in"

  get '/logout' => "sessions#destroy", :as => "log_out"


  # 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):
  #   resources :products

  # Example resource route with options:
  #   resources :products do
  #     member do
  #       get 'short'
  #       post 'toggle'
  #     end
  #
  #     collection do
  #       get 'sold'
  #     end
  #   end

  # Example resource route with sub-resources:
  #   resources :products do<commit_msg>add username display on users not application model<commit_after>Rails.application.routes.draw do
  # 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 'application#index'

  resources :users
  resources :sessions
  resources "contacts", only: [:new, :create]

  get '/about' => 'application#about'

  get '/contact' => 'contacts#new'

  get "/login" => "sessions#new", :as => "log_in"

  get '/logout' => "sessions#destroy", :as => "log_out"

  get '/:username' => 'users#profile', :constrain => { :username => /[a-zA-Z-]+/ }


  # 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):
  #   resources :products

  # Example resource route with options:
  #   resources :products do
  #     member do
  #       get 'short'
  #       post 'toggle'
  #     end
  #
  #     collection do
  #       get 'sold'
  #     end
  #   end

  # Example resource route with sub-resources:
  #   resources :products do
{'fraction_non_alphanumeric': 0.12066246056782334, 'fraction_numerical': 0.0, 'mean_word_length': 3.145424836601307, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 24, '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': '571653', 'n_tokens_mistral': 789, 'n_tokens_neox': 761, 'n_words': 268}