<commit_before>Cms::Engine.routes.draw do
  devise_for :cms_user,
             :class_name => "Cms::User",
             :path => 'users',
             :controllers => { :sessions => "cms/sessions" },
             :skip => [:passwords],
             :path_names => { :sign_out => 'logout', :sign_in => 'login' }

  namespace :admin do
    resources :settings, :only => [:index, :edit, :update]
    resources :users
    resources :navigations, :except => [:show]
    resources :images
    resources :sidebars, :except => [:show, :destroy]
    resources :ckeditor, :only => [:index, :create]
    resources :pages, :except => [:show] do
      get :children, :on => :member
      get :children_selector, :on => :collection
    end
    root :to => 'users#index'
  end

  unless Rails.env.development?
    match "*initial_path", to: redirect {|params, req| req.url.gsub(/^https/, 'http')}, constraints: lambda {|request| puts request.path; request.ssl? && !(request.path =~ /users/ || request.path =~ /admin/)}
  end<commit_msg>removed unnecessary contraints<commit_after>Cms::Engine.routes.draw do
  devise_for :cms_user,
             :class_name => "Cms::User",
             :path => 'users',
             :controllers => { :sessions => "cms/sessions" },
             :skip => [:passwords],
             :path_names => { :sign_out => 'logout', :sign_in => 'login' }

  namespace :admin do
    resources :settings, :only => [:index, :edit, :update]
    resources :users
    resources :navigations, :except => [:show]
    resources :images
    resources :sidebars, :except => [:show, :destroy]
    resources :ckeditor, :only => [:index, :create]
    resources :pages, :except => [:show] do
      get :children, :on => :member
      get :children_selector, :on => :collection
    end
    root :to => 'users#index'
  end

  unless Rails.env.development?
    match "*initial_path", to: redirect {|params, req| req.url.gsub(/^https/, 'http')}, constraints: lambda {|request| request.ssl?}
  end
{'fraction_non_alphanumeric': 0.16893595562279376, 'fraction_numerical': 0.0, 'mean_word_length': 3.032520325203252, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 35, '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': '606050', 'n_tokens_mistral': 634, 'n_tokens_neox': 625, 'n_words': 163}