<commit_before>Rails.application.routes.draw do

  root 'application#welcome'
  resources :user_produce, :produce, :juice_produce, :juices
  devise_for :users, :controllers => { registrations: 'registrations', :omniauth_callbacks => "users/omniauth_callbacks" }

  resources :users do
    resources :juices, only: [:index, :new]
  end

  resources :produce do
    resources :juices, only: :index
  end

  get 'users/:id/produce/index' => 'produce#index', as: :user_user_produce_index
  post 'eaten' => 'user_produce#eaten'
  get '/welcome' => 'application#welcome'
  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
end<commit_msg>added *path in routes to handle any misguided urls<commit_after>Rails.application.routes.draw do

  root 'application#welcome'
  resources :user_produce, :produce, :juice_produce, :juices
  devise_for :users, :controllers => { registrations: 'registrations', :omniauth_callbacks => "users/omniauth_callbacks" }

  resources :users do
    resources :juices, only: [:index, :new]
  end

  resources :produce do
    resources :juices, only: :index
  end

  get 'users/:id/produce/index' => 'produce#index', as: :user_user_produce_index
  post 'eaten' => 'user_produce#eaten'
  get '/welcome' => 'application#welcome'
  get '*path' => redirect('/')
  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
end
{'fraction_non_alphanumeric': 0.12639664804469275, 'fraction_numerical': 0.0, 'mean_word_length': 5.0210084033613445, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, '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': '6369104', 'n_tokens_mistral': 494, 'n_tokens_neox': 479, 'n_words': 122}