<commit_before>require "resque/server"

Shipit::Application.routes.draw do
  root :to => 'stacks#index'

  resources :stacks, :only => [:new, :create, :index] do
    resource :webhooks, :only => [] do
      post :push, :state
    end
  end

  resources :stacks, :path => "/", :id => %r{[^/]+/[^/]+/[^/]+}, :only => [:show, :destroy] do
    member do
      get :settings
    end

    resources :deploys, :id => /\d+/, :only =>  [:new, :show, :create] do
      resources :chunks, :id => /\d+/, :only =>  [:index], defaults: {format: :json} do
        collection do
          get :tail
        end
      end
    end
  end

  mount Resque::Server.new, :at => "/resque"
end<commit_msg>Move /resque up to avoid clashes with stack paths<commit_after>require "resque/server"

Shipit::Application.routes.draw do
  root :to => 'stacks#index'

  mount Resque::Server.new, :at => "/resque"

  resources :stacks, :only => [:new, :create, :index] do
    resource :webhooks, :only => [] do
      post :push, :state
    end
  end

  resources :stacks, :path => "/", :id => %r{[^/]+/[^/]+/[^/]+}, :only => [:show, :destroy] do
    member do
      get :settings
    end

    resources :deploys, :id => /\d+/, :only =>  [:new, :show, :create] do
      resources :chunks, :id => /\d+/, :only =>  [:index], defaults: {format: :json} do
        collection do
          get :tail
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.19126074498567336, 'fraction_numerical': 0.0, 'mean_word_length': 2.563775510204082, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 25, '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': '5126903', 'n_tokens_mistral': 508, 'n_tokens_neox': 490, 'n_words': 145}