<commit_before>Rails.application.routes.draw do
  
  get 'admin' => 'admin#index'
  
  controller :sessions do
    get  'login' => :new
    post 'login' => :create
    delete 'logout' => :destroy
  end

  get 'sessions/create'
  get 'sessions/destroy'

  resources :users
  resources :orders
  resources :line_items do
    put 'decrease', on: :member
  end
  
  resources :carts
  get 'store/index'
  root 'store#index', as: 'store'
  resources :products do
    get :who_bought, on: :member
  end
  # The priority is based upon order of creation: first created -> highest priority.
  # See how all your routes lay out with "rake routes".
<commit_msg>Add routes to use locales<commit_after>Rails.application.routes.draw do
  get 'admin' => 'admin#index'
  
  controller :sessions do
    get  'login' => :new
    post 'login' => :create
    delete 'logout' => :destroy
  end

  get 'sessions/create'
  get 'sessions/destroy'

  resources :users

  resources :products do
    get :who_bought, on: :member
  end

  scope '(:locale)' do
    resources :orders
  
    resources :line_items do
      put 'decrease', on: :member
    end
    
    resources :carts
    root 'store#index', as: 'store', via: :all
  end

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

{'fraction_non_alphanumeric': 0.10452186805040771, 'fraction_numerical': 0.0, 'mean_word_length': 3.078549848942598, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '1151101', 'n_tokens_mistral': 436, 'n_tokens_neox': 428, 'n_words': 152}