<commit_before>private

def uniRoutes
  get 'entities/classes'
  resources :entities
  get '/entities/:id/destroy' => 'entities#destroy'
  get '/entities/insert/:parent' => 'entities#insert'


  scope ['/show/:name(/:subname)', '/'] do
    get '' => 'main#show'
    post '/refresh' => 'main#refresh'
    post '/click' => 'main#click'
    post '/change' => 'main#change'
    post '/touchstart' => 'main#touchstart'
    post '/touchend' => 'main#touchend'
  end
  post '/refresh' => 'main#refresh'

  post '/admin/reboot'
  

  post '/main/design_apply'

  scope :butler do
    post '/command' => "butler#command"
    get '/command' => "butler#command"
  end

#  post '/remote' => "remote#execute"
  get '/remote' => "remote#execute"

#  get '/driver/read' => "http_driver#read"
#  get '/driver/write' => "http_driver#write"

  # The priority is based upon order of creation: first created -> highest priority.
  # See how all your routes lay out with "rake routes".

  # You can have the root of your site routed with "root"
  root 'main#show'

  scope :api do
    get "/tts/:lang/" => "speech#speak"
    get "/command/:command/" => "speech#speak"
  end

  devise_for :users, controllers: { sessions: "users/sessions" }
  resources :users
  resources :drivers
  resource :network
end

public

Home::Engine.routes.draw do
  uniRoutes
end

Rails.application.routes.draw do
  uniRoutes
end

<commit_msg>Action root rout<commit_after>private

def actions
  get '' => 'main#show'
  post '/refresh' => 'main#refresh'
  post '/click' => 'main#click'
  post '/change' => 'main#change'
  post '/touchstart' => 'main#touchstart'
  post '/touchend' => 'main#touchend'
end

def uniRoutes
  get 'entities/classes'
  resources :entities
  get '/entities/:id/destroy' => 'entities#destroy'
  get '/entities/insert/:parent' => 'entities#insert'


  scope '/show/:name(/:subname)' do
    actions
  end

  scope '/' do
    actions
  end

  post '/refresh' => 'main#refresh'

  post '/admin/reboot'
  

  post '/main/design_apply'

  scope :butler do
    post '/command' => "butler#command"
    get '/command' => "butler#command"
  end

#  post '/remote' => "remote#execute"
  get '/remote' => "remote#execute"

#  get '/driver/read' => "http_driver#read"
#  get '/driver/write' => "http_driver#write"

  # The priority is based upon order of creation: first created -> highest priority.
  # See how all your routes lay out with "rake routes".

  # You can have the root of your site routed with "root"
  root 'main#show'

  scope :api do
    get "/tts/:lang/" => "speech#speak"
    get "/command/:command/" => "speech#speak"
  end

  devise_for :users, controllers: { sessions: "users/sessions" }
  resources :users
  resources :drivers
  resource :network
end

public

Home::Engine.routes.draw do
  uniRoutes
end

Rails.application.routes.draw do
  uniRoutes
end


{'fraction_non_alphanumeric': 0.15214335910049193, 'fraction_numerical': 0.0, 'mean_word_length': 3.4764150943396226, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 39, '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': '1627459', 'n_tokens_mistral': 983, 'n_tokens_neox': 971, 'n_words': 268}