<commit_before>Bookies::Application.routes.draw do
  # root of site, set to bookmarks index page
  root :to => 'bookmarks#index'

  # resources creates CRUD routes for these models
  resources :users, :bookmarks, :tags, :sessions, :identities

  # for omniauth
  match 'auth/:provider/callback', to: 'sessions#create'
  # match 'auth/failure', to: redirect('/')
  match 'auth/failure' => 'sessions#new', :notice => "Email or password incorrect"
  match 'signout', to: 'sessions#destroy', as: 'signout'

  get "logout" => "sessions#destroy", :as => "logout"
  get "login" => "sessions#new", :as => "login"
  get "register" => "users#new", :as => "register"
  get "signup" => "users#new", :as => "signup"

  get "my_bookmarks" => "bookmarks#user_bookmarks", :as => "my_bookmarks"

  get "tag/:id" => "tag#show"

  match "search" => "search#index" 

  # show stream of bookmarks for specific tag
  get "tags/:id/bookmarks" => "tags#bookmarks"
  get "tags/name/:name" => "tags#name"
  get "tags/user/:id" => "tags#user"

  get "bookmarks/user/:id" => "bookmarks#user"
  get "user/:id/bookmarks" => "bookmarks#user"
  get "bookmarklet" => "bookmarks#bookmarklet"
  get "bookmarklet/success" => "bookmarks#success"

  # for delicious API v1
  get "api/posts/all" => "api#posts_all"
  get "api/posts/all/:tag" => "api#posts_all"
  get "api/posts/:id" => "api#index"

  # # 1. returns a form with a single textfield labeled "new name" 
  # get "tag/:id/rename" => "tag#rename"

  # # 2. rename tag with id to name 
  # get "tag/:id/rename/:name" => "tag#update"

  # get "tag/:id/delete" => "tag#delete"

  # get "tag/:name/search" => "tag#search"

  # get "user/login" => "users#login"
<commit_msg>updated routes as match is deprecated<commit_after>Bookies::Application.routes.draw do
  # root of site, set to bookmarks index page
  root :to => 'bookmarks#index'

  # resources creates CRUD routes for these models
  resources :users, :bookmarks, :tags, :sessions, :identities

  # for omniauth
  match 'auth/:provider/callback', to: 'sessions#create', via: :get
  # match 'auth/failure', to: redirect('/')
  match 'auth/failure' => 'sessions#new', :notice => "Email or password incorrect", via: :get
  match 'signout', to: 'sessions#destroy', as: 'signout', via: :get

  get "logout" => "sessions#destroy", :as => "logout"
  get "login" => "sessions#new", :as => "login"
  get "register" => "users#new", :as => "register"
  get "signup" => "users#new", :as => "signup"

  get "my_bookmarks" => "bookmarks#user_bookmarks", :as => "my_bookmarks"

  get "tag/:id" => "tag#show"

  match "search" => "search#index", via: :get

  # show stream of bookmarks for specific tag
  get "tags/:id/bookmarks" => "tags#bookmarks"
  get "tags/name/:name" => "tags#name"
  get "tags/user/:id" => "tags#user"

  get "bookmarks/user/:id" => "bookmarks#user"
  get "user/:id/bookmarks" => "bookmarks#user"
  get "bookmarklet" => "bookmarks#bookmarklet"
  get "bookmarklet/success" => "bookmarks#success"

  # for delicious API v1
  get "api/posts/all" => "api#posts_all"
  get "api/posts/all/:tag" => "api#posts_all"
  get "api/posts/:id" => "api#index"

  # # 1. returns a form with a single textfield labeled "new name" 
  # get "tag/:id/rename" => "tag#rename"

  # # 2. rename tag with id to name 
  # get "tag/:id/rename/:name" => "tag#update"

  # get "tag/:id/delete" => "tag#delete"

  # get "tag/:name/search" => "tag#search"

  # get "user/login" => "users#login"

{'fraction_non_alphanumeric': 0.1849811539576689, 'fraction_numerical': 0.0017396346767178893, 'mean_word_length': 4.203619909502263, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 63, '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': '5126909', 'n_tokens_mistral': 1260, 'n_tokens_neox': 1255, 'n_words': 323}