<commit_before>Rails.application.routes.draw do
  devise_for :users

  namespace :editorial do
    get '/:section/nodes' => 'nodes#index'
    resources :nodes, only: [:show, :create, :new, :edit, :update]
  end

  namespace :admin do
    resources :agencies
    resources :topics
    resources :nodes
    resources :content_blocks
    resources :sections

    root to: 'agencies#index'
  end

  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
  namespace :api do
    resources :nodes, only: :create
    resources :templates, only: :index
    resources :sections, only: :index
  end

  get root 'sections#index'
  get '/preview/:token' => 'nodes#preview', as: :previews
  get '/:section' => 'sections#show', as: :sections
  get '/:section(/*path)' => 'nodes#show', as: :nodes

end<commit_msg>Mount in parent app<commit_after>Rails.application.routes.draw do
  devise_for :users

  namespace :editorial do
    get '/:section/nodes' => 'nodes#index'
    resources :nodes, only: [:show, :create, :new, :edit, :update]
  end

  namespace :admin do
    resources :agencies
    resources :topics
    resources :nodes
    resources :content_blocks
    resources :sections

    root to: 'agencies#index'
  end

  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
  namespace :api do
    resources :nodes, only: :create
    resources :templates, only: :index
    resources :sections, only: :index
  end

  get root 'sections#index'
  get '/preview/:token' => 'nodes#preview', as: :previews
  get '/:section' => 'sections#show', as: :sections
  get '/:section(/*path)' => 'nodes#show', as: :nodes

  mount Synergy::Engine => "/"

end
{'fraction_non_alphanumeric': 0.12935034802784223, 'fraction_numerical': 0.0, 'mean_word_length': 3.739010989010989, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, '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': '1950229', 'n_tokens_mistral': 548, 'n_tokens_neox': 535, 'n_words': 168}