<commit_before>MongoidTest::Application.routes.draw do

  # User authentication
  devise_for :users, :path => '/',
    :path_names => {:sign_in => 'login', :sign_out => 'logout', :sign_up => "welcome"},
    :controllers => {:registrations => "registrations"}


  match '/gh/:project', :to => 'projects#show', :as => :github_project, :constraints => { :project => /[a-z\/\-A-Z0-9]+/ }, :via => [:get]

  match '/gh/:project', :to => 'builds#create', :as => :project_builds, :constraints => { :project => /[a-z\/\-A-Z0-9]+/ }, :via => [:post]

  match '/admin', :to => 'admin#show', :as => :admin

  # TECHNICAL_DEBT: these aren't RESTful, and they're not clean

  # Main project UI
  resources :projects, :only => [:show]

  # Signup form (for repositories)
  match '/join/dynamic', :to => 'join#dynamic', :via => [:get], :as => :join_dynamic
  match '/join', :to => 'join#all', :via => [:get], :as => :join
  match '/join', :to => 'join#add_projects', :via => [:post], :as => :join_form

  # Github post-commit hook
  match '/hooks/github', :to => 'github#create', :via => [:post]<commit_msg>Allow underscores in github project name, fixing the admin layout for hotel_scraper,<commit_after>MongoidTest::Application.routes.draw do

  # User authentication
  devise_for :users, :path => '/',
    :path_names => {:sign_in => 'login', :sign_out => 'logout', :sign_up => "welcome"},
    :controllers => {:registrations => "registrations"}


  match '/gh/:project', :to => 'projects#show', :as => :github_project, :constraints => { :project => /[a-z\/\-A-Z0-9_]+/ }, :via => [:get]

  match '/gh/:project', :to => 'builds#create', :as => :project_builds, :constraints => { :project => /[a-z\/\-A-Z0-9_]+/ }, :via => [:post]

  match '/admin', :to => 'admin#show', :as => :admin

  # TECHNICAL_DEBT: these aren't RESTful, and they're not clean

  # Main project UI
  resources :projects, :only => [:show]

  # Signup form (for repositories)
  match '/join/dynamic', :to => 'join#dynamic', :via => [:get], :as => :join_dynamic
  match '/join', :to => 'join#all', :via => [:get], :as => :join
  match '/join', :to => 'join#add_projects', :via => [:post], :as => :join_form

  # Github post-commit hook
  match '/hooks/github', :to => 'github#create', :via => [:post]
{'fraction_non_alphanumeric': 0.2303943287549845, 'fraction_numerical': 0.003544528134692069, 'mean_word_length': 4.108597285067873, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 65, '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': '2707394', 'n_tokens_mistral': 832, 'n_tokens_neox': 805, 'n_words': 204}