<commit_before>Taskar::Application.routes.draw do |map|
  map.resources :users, :member => {:set_admin => :put}
  map.resources :projects, :member => {:complete => :put} do |projects|
    projects.resources :statuses, :only => [:create, :index, :destroy], :collection => {:clear => :delete}
    projects.resources :aside, :only => :index
    projects.resources :tasks, :collection => {:reorder => :put, :search => :get}, :only => [:index]
    projects.resources :sections, :shallow => true, :collection => {:reorder => :put, :tasks => :get, :archived => :get}, :member => {:archive => :put} do |sections|
      sections.resources :tasks, :shallow => true, :except => [:new, :index], :member => {:state => :put, :archive => :put, :section => :put}, :collection => {:archived => :get} do |tasks|
        tasks.resources :comments, :shallow => true, :except => [:index, :new]
      end
    end
  end

  devise_for :users, :as => "sign", :path_names => {:sign_in => "in", :sign_out => "out", :sign_up => "up"}

  SprocketsApplication.routes(map)

  map.root :controller => "dashboard", :action => "index"
end<commit_msg>apply new Rails Routing API<commit_after>Taskar::Application.routes.draw do
  resources :users do
    member do
      put :set_admin
    end
  end

  resources :projects do
    member do
      put :complete
    end

    resources :statuses, :only => [:create, :index, :destroy] do
      collection do
        delete :clear
      end
    end

    resources :aside, :only => :index

    resources :tasks, :only => [:index] do
      collection do
        put :reorder
        get :search
      end
    end

    resources :sections, :shallow => true do
      member do
        put :archive
      end

      collection do
        put :reorder
        get :tasks
        get :archived
      end

      resources :tasks, :shallow => true, :except => [:new, :index] do
        member do
          put :state
          put :archive
          put :section
        end

        collection do
          get :archived
        end

        resources :comments, :shallow => true, :except => [:index, :new]
      end
    end
  end

  devise_for :users, :path => "sign", :path_names => {:sign_in => "in", :sign_out => "out", :sign_up => "up"}

  #SprocketsApplication.routes(self)

  root :to => "dashboard#index"
end
{'fraction_non_alphanumeric': 0.15328151986183075, 'fraction_numerical': 0.0, 'mean_word_length': 2.755267423014587, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 53, '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': '181169', 'n_tokens_mistral': 733, 'n_tokens_neox': 710, 'n_words': 219}