<commit_before>Rails.application.routes.draw do
  scope :module => 'effective' do
    resources :orders
    resources :carts
  end
end
<commit_msg>routes<commit_after>EffectiveOrders::Engine.routes.draw do
  scope '/effective', :module => 'effective' do
    resources :orders, :only => [:new, :create, :index]

    match 'cart', :to => 'carts#show', :as => 'cart', :via => :get
    match 'cart', :to => 'carts#destroy', :via => :delete

    # If you Tweak this route, please update EffectiveOrdersHelper too
    match 'cart/:purchasable_type/:purchasable_id', :to => 'carts#add_to_cart', :via => [:get, :post], :as => 'add_to_cart'

    match 'cart/:id', :to => 'carts#remove_from_cart', :via => [:delete], :as => 'remove_from_cart'
  end
end

{'fraction_non_alphanumeric': 0.17362045760430686, 'fraction_numerical': 0.0, 'mean_word_length': 4.511111111111111, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '606035', 'n_tokens_mistral': 260, 'n_tokens_neox': 261, 'n_words': 67}