<commit_before>Rails.application.routes.draw do
  root 'maker/concepts#index'

  namespace :raw_node do
    root 'nodes#index'
    resources :nodes do
      get 'filtered/:filter', on: :collection, action: :filtered, as: :filtered
    end
  end


  namespace :me do
    root 'actors#index'
    resources :actors do
      get 'filtered/:filter', on: :collection, action: :filtered, as: :filtered
    end
    resources :contributions do
      get 'filtered/:filter', on: :collection, action: :filtered, as: :filtered
    end
  end

  namespace :maker do
    root 'concepts#index'
    resources :topics do
      get 'filtered/:filter', on: :collection, action: :filtered, as: :filtered
    end
    resources :concepts do
      get 'filtered/:filter', on: :collection, action: :filtered, as: :filtered
    end
    resources :traits do
      get 'filtered/:filter', on: :collection, action: :filtered, as: :filtered
    end
    resources :skills do
      get 'filtered/:filter', on: :collection, action: :filtered, as: :filtered
    end
    resources :bundles do
      get 'filtered/:filter', on: :collection, action: :filtered, as: :filtered
    end
    resources :items do
      get 'filtered/:filter', on: :collection, action: :filtered, as: :filtered
    end
    resources :trait_values do
      get 'filtered/:filter', on: :collection, action: :filtered, as: :filtered
    end

    resources :relationships do
      match 'between/:first_node/:second_node', action: :between, on: :collection, as: :between_nodes, via: [:get, :post]
      get :related_nodes, action: :related_nodes, on: :member
    end
  end


  namespace :blog do
    root 'posts#index'
    resources :posts do
      get 'filtered/:filter', on: :collection, action: :filtered, as: :filtered
    end
  end


end<commit_msg>* using concerns in routes<commit_after>Rails.application.routes.draw do
  root 'maker/concepts#index'

  concern :filterable do
    get 'filtered/:filter', on: :collection, action: :filtered, as: :filtered
  end

  namespace :raw_node do
    root 'nodes#index'
    resources :nodes, concerns: [:filterable]
  end


  namespace :me do
    root 'actors#index'
    resources :actors, concerns: [:filterable]
    resources :contributions, concerns: [:filterable]
  end

  namespace :maker do
    root 'concepts#index'
    resources :topics, concerns: [:filterable]
    resources :concepts, concerns: [:filterable]
    resources :traits, concerns: [:filterable]
    resources :skills, concerns: [:filterable]
    resources :bundles, concerns: [:filterable]
    resources :items, concerns: [:filterable]
    resources :trait_values, concerns: [:filterable]

    resources :relationships do
      match 'between/:first_node/:second_node', action: :between, on: :collection, as: :between_nodes, via: [:get, :post]
      get :related_nodes, action: :related_nodes, on: :member
    end
  end


  namespace :blog do
    root 'posts#index'
    resources :posts, concerns: [:filterable]
  end


end
{'fraction_non_alphanumeric': 0.11663865546218487, 'fraction_numerical': 0.0, 'mean_word_length': 3.5925925925925926, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2434802', 'n_tokens_mistral': 946, 'n_tokens_neox': 897, 'n_words': 291}