<commit_before>Web::Application.routes.draw do
  # TODO put in authorization so can't hit routes like /settings (obviously)
  constraints subdomain: "api" do
    get "/" => "static#api", as: :api
    get "/users/:id" => "users#show", format: :json
    get "/apps/:id" => "apps#show", format: :json
  end
  authenticated :user do
    root to: "static#dashboard"
  end
  root to: "static#index"
  mount Resque::Server.new, at: "/resque"
  get  "/about" => "static#about", as: :about
  get  "/faq" => "static#faq", as: :faq
  get  "/search" => "static#search", as: :search
  get  "/trust" => "static#trust", as: :trust
  get  "/contact" => "static#contact", as: :contact
  post "/contact" => "static#send_contact_email", as: :send_contact_email
  devise_for :users, controllers: {confirmations: "users/confirmations"}
  resources :users, except: [:edit, :update] do
    # TODO scope keys? so its "/keys/:id"
    resources :keys, except: [:new, :create]
    resources :apps, except: [:new, :create]
  end
  get "/apps/:id" => "apps#show", as: :app
  get "/keys/:id/confirm/:confirmation_token" => "keys#confirm", as: :key_confirmation
  get "/apps/:id/mini" => "apps#mini", as: :show_app_mini
  get "/keys/:id/mini" => "keys#mini", as: :show_key_mini
  get "/settings" => "users#edit", as: :setting
  put "/settings" => "users#update", as: :settings
  get "/upload/app" => "apps#new", as: :new_app
  post "/upload/app" => "apps#create", as: :apps
  post "/upload/key" => "keys#create", as: :keys
  post "/endorsements" => "endorsements#create", as: :endorsements
  post "/github-connect" => "users#github_connect", as: :github_connect
  put "/github-sync" => "users#github_sync", as: :github_sync
end
<commit_msg>simply moved resque related routes to top of routes file for clearness<commit_after>Web::Application.routes.draw do
  mount Resque::Server.new, at: "/resque"
  # TODO put in authorization so can't hit routes like /settings (obviously)
  constraints subdomain: "api" do
    get "/" => "static#api", as: :api
    get "/users/:id" => "users#show", format: :json
    get "/apps/:id" => "apps#show", format: :json
  end
  authenticated :user do
    root to: "static#dashboard"
  end
  root to: "static#index"
  get  "/about" => "static#about", as: :about
  get  "/faq" => "static#faq", as: :faq
  get  "/search" => "static#search", as: :search
  get  "/trust" => "static#trust", as: :trust
  get  "/contact" => "static#contact", as: :contact
  post "/contact" => "static#send_contact_email", as: :send_contact_email
  devise_for :users, controllers: {confirmations: "users/confirmations"}
  resources :users, except: [:edit, :update] do
    # TODO scope keys? so its "/keys/:id"
    resources :keys, except: [:new, :create]
    resources :apps, except: [:new, :create]
  end
  get "/apps/:id" => "apps#show", as: :app
  get "/keys/:id/confirm/:confirmation_token" => "keys#confirm", as: :key_confirmation
  get "/apps/:id/mini" => "apps#mini", as: :show_app_mini
  get "/keys/:id/mini" => "keys#mini", as: :show_key_mini
  get "/settings" => "users#edit", as: :setting
  put "/settings" => "users#update", as: :settings
  get "/upload/app" => "apps#new", as: :new_app
  post "/upload/app" => "apps#create", as: :apps
  post "/upload/key" => "keys#create", as: :keys
  post "/endorsements" => "endorsements#create", as: :endorsements
  post "/github-connect" => "users#github_connect", as: :github_connect
  put "/github-sync" => "users#github_sync", as: :github_sync
end

{'fraction_non_alphanumeric': 0.18705035971223022, 'fraction_numerical': 0.0, 'mean_word_length': 4.298780487804878, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 45, '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': '7351427', 'n_tokens_mistral': 1225, 'n_tokens_neox': 1220, 'n_words': 341}