<commit_before>ActionController::Routing::Routes.draw do |map|


  map.resources :galleries

  map.namespace :admin do |admin|
    admin.resources :users
    admin.resource :session
    admin.resources :pictures
    admin.resources :galleries do |gallery|
      gallery.resources :pictures
    end
    admin.login '/login', :controller => 'sessions', :action => 'new'
    admin.logout '/logout', :controller => 'sessions', :action => 'destroy'
    admin.root :controller => 'galleries'
    admin.signup '/signup', :controller => 'users', :action => 'new'
    admin.resources :settings 
  end

  map.root :controller => 'galleries'

  # The priority is based upon order of creation: first created -> highest priority.

  # Sample of regular route:
  #   map.connect 'products/:id', :controller => 'catalog', :action => 'view'
  # Keep in mind you can assign values other than :controller and :action<commit_msg> * Update a better route in page for the caching<commit_after>ActionController::Routing::Routes.draw do |map|

  map.resources :galleries

  # route to the paginate of galleries
  map.connect '/galleries/page/:page',
    :controller => 'galleries', :action => 'index',
    :page => /\d+/


  map.namespace :admin do |admin|
    admin.resources :users
    admin.resource :session
    admin.resources :pictures
    admin.resources :galleries do |gallery|
      gallery.resources :pictures
    end
    admin.login '/login', :controller => 'sessions', :action => 'new'
    admin.logout '/logout', :controller => 'sessions', :action => 'destroy'
    admin.root :controller => 'galleries'
    admin.signup '/signup', :controller => 'users', :action => 'new'
    admin.resources :settings 
  end

  map.root :controller => 'galleries'

  # The priority is based upon order of creation: first created -> highest priority.

  # Sample of regular route:
  #   map.connect 'products/:id', :controller => 'catalog', :action => 'view'
  # Keep in mind you can assign values other than :controller and :action
{'fraction_non_alphanumeric': 0.13216957605985039, 'fraction_numerical': 0.0, 'mean_word_length': 3.6978922716627634, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 28, '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': '1726515', 'n_tokens_mistral': 596, 'n_tokens_neox': 564, 'n_words': 188}