<commit_before>ActionController::Routing::Routes.draw do |map|
  map.resources :authors, :only => [ :index, :show ]
  map.resources :priorities, :only => [ :index, :show ]
  map.resources :reviews
  map.resources :tags, :only => [ :index, :show ]
  map.resources :task_views, :only => [ :index, :show ]
  map.resources :timeline_events, :only => [ :index, :show ]
  map.resources :users
  map.resources :versions, :only => [ :index ], :collection => { :feed => :get }

  map.resources :packages,
                :collection => { :all => :get, :feed => :get },
                :member => { :index => :post },
                :except => [ :create, :update, :edit ] do |p|
    p.resources :versions, :only => [ :show ] do |v|
      v.resources :reviews
    end
    p.resources :ratings, :except => [ :edit, :update ]
    p.resources :reviews
    p.resources :taggings, :only => [ :new, :create, :destroy ]
  end

  # Singleton resources
  map.resource :search, :controller => "search", :only => [ :show ]
  map.resource :session, :collection => { :rpx_now => :get },
                         :except => [ :update, :edit ]

  map.root :controller => "welcome", :action => "index"

  map.with_options :controller => "static" do |static|
    static.about "about", :action => "about"
    static.error_404 "error_404", :action => "error_404"
    static.error_500 "error_500", :action => "error_500"
  end

  map.signup   '/signup', :controller => 'users', :action => 'new'
  map.thanks   '/thanks', :controller => 'users', :action => 'signup'
  map.activate '/activate/:activation_code', :controller => 'users', :action => 'activate'
  map.login    '/login', :controller => 'sessions', :action => 'new'
  map.logout   '/logout', :controller => 'sessions', :action => 'destroy'

  map.connect ':controller/:action/:id.:format'<commit_msg>Route fix<commit_after>ActionController::Routing::Routes.draw do |map|
  map.resources :authors, :only => [ :index, :show ]
  map.resources :priorities, :only => [ :index, :show ]
  map.resources :reviews
  map.resources :tags, :only => [ :index, :show ]
  map.resources :task_views, :only => [ :index, :show ]
  map.resources :timeline_events, :only => [ :index, :show ]
  map.resources :users
  map.resources :versions, :only => [ :index ], :collection => { :feed => :get }

  map.resources :packages,
                :collection => { :all => :get, :feed => :get },
                :member => { :index => :post },
                :except => [ :create, :update, :edit ] do |p|
    p.resources :versions, :only => [ :show ] do |v|
      v.resources :reviews
    end
    p.resources :ratings, :except => [ :edit, :update ]
    p.resources :reviews
    p.resources :taggings, :only => [ :new, :create, :destroy ]
  end

  # Singleton resources
  map.resource :search, :controller => "search", :only => [ :show ]
  map.resource :session, :collection => { :rpx_token => :get },
                         :except => [ :update, :edit ]

  map.root :controller => "welcome", :action => "index"

  map.with_options :controller => "static" do |static|
    static.about "about", :action => "about"
    static.error_404 "error_404", :action => "error_404"
    static.error_500 "error_500", :action => "error_500"
  end

  map.signup   '/signup', :controller => 'users', :action => 'new'
  map.thanks   '/thanks', :controller => 'users', :action => 'signup'
  map.activate '/activate/:activation_code', :controller => 'users', :action => 'activate'
  map.login    '/login', :controller => 'sessions', :action => 'new'
  map.logout   '/logout', :controller => 'sessions', :action => 'destroy'

  map.connect ':controller/:action/:id.:format'
{'fraction_non_alphanumeric': 0.187636761487965, 'fraction_numerical': 0.009846827133479213, 'mean_word_length': 3.282201405152225, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 79, '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': '2682919', 'n_tokens_mistral': 1214, 'n_tokens_neox': 1165, 'n_words': 298}