<commit_before>Rails.application.routes.draw do

  mount Bpluser::Engine => '/bpluser'

  # alias for map browse
  get 'places', :to => 'catalog#map', :as => 'places_facet'

  # formats browse
  get 'formats', :to => 'catalog#formats_facet', :as => 'formats_facet'

  # MODS metadata view
  get 'search/:id/metadata_view', :to => 'catalog#metadata_view', :as => 'metadata_view_catalog'

  # collections
  resources :collections, :only => [:index, :show]
  get 'collections/facet/:id', :to => 'collections#facet', :as => 'collections_facet'

  # institutions
  resources :institutions, :only => [:index, :show]
  get 'institutions/facet/:id', :to => 'institutions#facet', :as => 'institutions_facet'

  # contact form
  # for some reason feedback submit won't work w/o this addition
  match 'feedback', :to => 'feedback#show', :via => [:get, :post]
  get 'feedback/complete', :to => 'feedback#complete'

  # folders
  get 'folders/public', :to => 'folders#public_list', :as => 'public_folders'
  resources :folders
  delete 'folder/:id/clear', :to => 'folder_items#clear', :as => 'clear_folder_items'
  put 'folder/:id/item_actions', :to => 'folder_items_actions#folder_item_actions', :as => 'selected_folder_items_actions'

  # folder items
  resources :folder_items

  # image direct paths
  get 'preview/:id', :to => 'preview#preview', :as => 'preview'
  get 'full_image/:id', :to => 'preview#full', :as => 'full_image'
  get 'large_image/:id', :to => 'preview#large', :as => 'large_image'

  # user account management (not login/auth)
  resources :users, :only => [:show, :index]<commit_msg>remove deprecated Preview routes (this behavior is now in ark-manager)<commit_after>Rails.application.routes.draw do

  mount Bpluser::Engine => '/bpluser'

  # alias for map browse
  get 'places', :to => 'catalog#map', :as => 'places_facet'

  # formats browse
  get 'formats', :to => 'catalog#formats_facet', :as => 'formats_facet'

  # MODS metadata view
  get 'search/:id/metadata_view', :to => 'catalog#metadata_view', :as => 'metadata_view_catalog'

  # collections
  resources :collections, :only => [:index, :show]
  get 'collections/facet/:id', :to => 'collections#facet', :as => 'collections_facet'

  # institutions
  resources :institutions, :only => [:index, :show]
  get 'institutions/facet/:id', :to => 'institutions#facet', :as => 'institutions_facet'

  # contact form
  # for some reason feedback submit won't work w/o this addition
  match 'feedback', :to => 'feedback#show', :via => [:get, :post]
  get 'feedback/complete', :to => 'feedback#complete'

  # folders
  get 'folders/public', :to => 'folders#public_list', :as => 'public_folders'
  resources :folders
  delete 'folder/:id/clear', :to => 'folder_items#clear', :as => 'clear_folder_items'
  put 'folder/:id/item_actions', :to => 'folder_items_actions#folder_item_actions', :as => 'selected_folder_items_actions'

  # folder items
  resources :folder_items

  # user account management (not login/auth)
  resources :users, :only => [:show, :index]
{'fraction_non_alphanumeric': 0.16655629139072847, 'fraction_numerical': 0.0, 'mean_word_length': 5.00596421471173, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 55, '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': '7611583', 'n_tokens_mistral': 1045, 'n_tokens_neox': 1016, 'n_words': 257}