<commit_before>Tfpullrequests::Application.routes.draw do
  resources :users
  resources :projects, :only => [:index, :new, :create]
  resource  :dashboard # Singular, only applies to current user

  match '/email', to: 'dashboards#email', as: 'email'
  match '/email/update', to: 'dashboards#update_email', as: 'update_email'

  match '/login',  to: 'sessions#new',     as: 'login'
  match '/logout', to: 'sessions#destroy', as: 'logout'

  match '/auth/:provider/callback', to: 'sessions#create'
  match '/auth/failure',            to: 'sessions#failure'

  match 'about', :to => 'static#about'
  match 'contributing', :to => 'static#contributing'

  root :to => 'static#homepage'

  match '/:id', to: 'users#show' # User public vanity url, must be lowest priority
end<commit_msg>NOP: #123 - redirect /:username to /users/:username<commit_after>Tfpullrequests::Application.routes.draw do
  resources :users
  resources :projects, :only => [:index, :new, :create]
  resource  :dashboard # Singular, only applies to current user

  match '/email', to: 'dashboards#email', as: 'email'
  match '/email/update', to: 'dashboards#update_email', as: 'update_email'

  match '/login',  to: 'sessions#new',     as: 'login'
  match '/logout', to: 'sessions#destroy', as: 'logout'

  match '/auth/:provider/callback', to: 'sessions#create'
  match '/auth/failure',            to: 'sessions#failure'

  match 'about', :to => 'static#about'
  match 'contributing', :to => 'static#contributing'

  root :to => 'static#homepage'

  match '/:id' => redirect('/users/%{id}') # User public vanity url, must be lowest priority
end
{'fraction_non_alphanumeric': 0.1662531017369727, 'fraction_numerical': 0.0018610421836228288, 'mean_word_length': 4.467796610169492, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, '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': '6295426', 'n_tokens_mistral': 530, 'n_tokens_neox': 521, 'n_words': 151}