<commit_before>Rails.application.routes.draw do
  root to: "dashboard#home"
  match 'register', to: 'users#register', via: [:post]
  match 'upload_user_avatar', to: 'users#upload_user_avatar', via: [:post, :patch]
  # match 'upload_road_photo', to: 'ratings#upload_road_photo', via: [:post, :patch]
  match 'upload', to: 'users#index', via: [:get]

  namespace :admin do
    resources :countries
    resources :districts
    resources :profiles
    resources :role_types
    resources :states
    resources :taluks
    resources :users
    resources :users_roles_maps
    resources :wards
    resources :zones
    root to: "countries#index"
  end

  resources :roads do
    resources :complaints, only: [:show, :create, :index]
  end

  resources :ratings do
    collection do
      get :reset
    end
    member do
      get :approve
      get :reject
    end
  end
  get 'approval', to: 'ratings#approval'
  resources :profiles
  resources :dashboard
  resources :users_roads_photo_maps
  resources :roads, defaults: {format: :json} do
    member do
      get :info
    end
  end
  resources :users do
    member do
      get :my_uploads
    end
  end
  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
end
<commit_msg>Updated default roots to rating approval<commit_after>Rails.application.routes.draw do
  root to: "ratings#approval"
  match 'register', to: 'users#register', via: [:post]
  match 'upload_user_avatar', to: 'users#upload_user_avatar', via: [:post, :patch]
  # match 'upload_road_photo', to: 'ratings#upload_road_photo', via: [:post, :patch]
  match 'upload', to: 'users#index', via: [:get]

  namespace :admin do
    resources :countries
    resources :districts
    resources :profiles
    resources :role_types
    resources :states
    resources :taluks
    resources :users
    resources :users_roles_maps
    resources :wards
    resources :zones
    root to: "countries#index"
  end

  resources :roads do
    resources :complaints, only: [:show, :create, :index]
  end

  resources :ratings do
    collection do
      get :reset
    end
    member do
      get :approve
      get :reject
    end
  end
  get 'approval', to: 'ratings#approval'
  resources :profiles
  resources :dashboard
  resources :users_roads_photo_maps
  resources :roads, defaults: {format: :json} do
    member do
      get :info
    end
  end
  resources :users do
    member do
      get :my_uploads
    end
  end
end

{'fraction_non_alphanumeric': 0.09510319708619992, 'fraction_numerical': 0.0, 'mean_word_length': 3.352112676056338, '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': '4962715', 'n_tokens_mistral': 805, 'n_tokens_neox': 787, 'n_words': 248}