<commit_before>Rails.application.routes.draw do

  root 'home#index'

  devise_for :users, :skip => [:sessions], controllers: { registrations: 'registrations' }
  devise_scope :user do
    get     'login'    => 'devise/sessions#new',      as: :new_user_session
    post    'login'    => 'devise/sessions#create',   as: :user_session
    delete  'logout'   => 'devise/sessions#destroy',  as: :destroy_user_session
    get     'settings' => 'registrations#edit',       as: :edit_settings
  end

  # Add user profile page & dashboard
  scope 'dashboard' do
    get ''               => 'users#show_dashboard',                as: :dashboard
    get 'visualizations' => 'users#show_dashboard_visualizations', as: :visualizations_dashboard
    get 'stories'        => 'users#show_dashboard_stories',        as: :stories_dashboard
  end
  resources :users, :only => [:show] do
    collection do
      get ':id/visualizations' => 'users#show_visualizations', as: :visualizations
      get ':id/stories'        => 'users#show_stories',        as: :stories
    end
  end

  resources :visualizations, :only => [:show, :edit, :new, :create, :update, :destroy] do
    collection do
      get  ':id/embed'      => 'visualizations#embed'
      get  ':id/edit/info'  => 'visualizations#edit_info'
      post 'publish'
      post 'unpublish'
    end
    post 'duplicate', on: :member
  end

  resources :stories, :only => [:show, :edit, :new, :create, :update, :destroy] do
    collection do
      get  ':id/edit/info'    => 'stories#edit_info'
      post 'publish'
      post 'unpublish'
    end
    post 'duplicate', on: :member
    resources :chapters, :only => [:new, :create]
  end

  resources :chapters, :only => [:edit, :update, :destroy] do
    collection do
      patch ':id/image'   => 'chapters#update_image'
      get   ':id/delete'  => 'chapters#delete'
    end
  end

  resources :datasets, only: [:show], defaults: { format: :xlsx }

  resources :nodes, :only => [:edit, :update] do
    collection do
      get ':id/edit/description' => 'nodes#edit_description'
      get ':id/edit/image'       => 'nodes#edit_image'
      patch':id/image'           => 'nodes#update_image'
    end
  end

  resources :relations, :only => [:update] do
    collection do
      get ':id/edit/date' => 'relations#edit_date'
    end
  end

  get '/explore'                 => 'pages#explore_visualizations'
  get '/explore/visualizations/' => 'pages#explore_visualizations'
  get '/explore/stories/'        => 'pages#explore_stories'
  get '/gallery'                 => 'pages#gallery'

  get   '/gallery/edit', to: 'galleries#edit', as: :edit_gallery
  patch '/gallery',      to: 'galleries#update'
  put   '/gallery',      to: 'galleries#update'

  get '/demo'                    => 'pages#demo'

  get '/terms-of-service'        => 'pages#terms_of_service'
  get '/terms-of-service/modal'  => 'pages#terms_of_service_modal'
  get '/privacy-policy'          => 'pages#privacy_policy'
  get '/tutorials'               => 'pages#documentation'
<commit_msg>Delete explore relative URL from routes.rb for #370<commit_after>Rails.application.routes.draw do

  root 'home#index'

  devise_for :users, :skip => [:sessions], controllers: { registrations: 'registrations' }
  devise_scope :user do
    get     'login'    => 'devise/sessions#new',      as: :new_user_session
    post    'login'    => 'devise/sessions#create',   as: :user_session
    delete  'logout'   => 'devise/sessions#destroy',  as: :destroy_user_session
    get     'settings' => 'registrations#edit',       as: :edit_settings
  end

  # Add user profile page & dashboard
  scope 'dashboard' do
    get ''               => 'users#show_dashboard',                as: :dashboard
    get 'visualizations' => 'users#show_dashboard_visualizations', as: :visualizations_dashboard
    get 'stories'        => 'users#show_dashboard_stories',        as: :stories_dashboard
  end
  resources :users, :only => [:show] do
    collection do
      get ':id/visualizations' => 'users#show_visualizations', as: :visualizations
      get ':id/stories'        => 'users#show_stories',        as: :stories
    end
  end

  resources :visualizations, :only => [:show, :edit, :new, :create, :update, :destroy] do
    collection do
      get  ':id/embed'      => 'visualizations#embed'
      get  ':id/edit/info'  => 'visualizations#edit_info'
      post 'publish'
      post 'unpublish'
    end
    post 'duplicate', on: :member
  end

  resources :stories, :only => [:show, :edit, :new, :create, :update, :destroy] do
    collection do
      get  ':id/edit/info'    => 'stories#edit_info'
      post 'publish'
      post 'unpublish'
    end
    post 'duplicate', on: :member
    resources :chapters, :only => [:new, :create]
  end

  resources :chapters, :only => [:edit, :update, :destroy] do
    collection do
      patch ':id/image'   => 'chapters#update_image'
      get   ':id/delete'  => 'chapters#delete'
    end
  end

  resources :datasets, only: [:show], defaults: { format: :xlsx }

  resources :nodes, :only => [:edit, :update] do
    collection do
      get ':id/edit/description' => 'nodes#edit_description'
      get ':id/edit/image'       => 'nodes#edit_image'
      patch':id/image'           => 'nodes#update_image'
    end
  end

  resources :relations, :only => [:update] do
    collection do
      get ':id/edit/date' => 'relations#edit_date'
    end
  end

  get '/gallery'                 => 'pages#gallery'

  get   '/gallery/edit', to: 'galleries#edit', as: :edit_gallery
  patch '/gallery',      to: 'galleries#update'
  put   '/gallery',      to: 'galleries#update'

  get '/demo'                    => 'pages#demo'

  get '/terms-of-service'        => 'pages#terms_of_service'
  get '/terms-of-service/modal'  => 'pages#terms_of_service_modal'
  get '/privacy-policy'          => 'pages#privacy_policy'
  get '/tutorials'               => 'pages#documentation'

{'fraction_non_alphanumeric': 0.14309878213802435, 'fraction_numerical': 0.0005074424898511502, 'mean_word_length': 2.792815907633098, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 70, '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': '3988050', 'n_tokens_mistral': 1993, 'n_tokens_neox': 1897, 'n_words': 458}