<commit_before>Openfoodnetwork::Application.routes.draw do
  namespace :api do
    resources :products do
      collection do
        get :bulk_products
        get :overridable
      end
      delete :soft_delete
      post :clone

      resources :variants do
        delete :soft_delete
      end
    end

    resources :variants, :only => [:index]

    resources :orders, only: [:index, :show] do
      get :managed, on: :collection

      resources :shipments, :only => [:create, :update] do
        member do
          put :ready
          put :ship
          put :add
          put :remove
        end
      end
    end

    resources :enterprises do
      post :update_image, on: :member
      get :managed, on: :collection
      get :accessible, on: :collection

      resource :logo, only: [:destroy]
      resource :promo_image, only: [:destroy]

      member do
        get :shopfront
      end
    end

    resources :order_cycles do
      get :managed, on: :collection
      get :accessible, on: :collection

      get :products, on: :member
      get :taxons, on: :member
      get :properties, on: :member
    end

    resource :status do
      get :job_queue
    end
<commit_msg>Remove dead routes api/order_cycles, these endpoints were removed in PR 4059 because they were unused, implemented in rabl and not correctly named for the future<commit_after>Openfoodnetwork::Application.routes.draw do
  namespace :api do
    resources :products do
      collection do
        get :bulk_products
        get :overridable
      end
      delete :soft_delete
      post :clone

      resources :variants do
        delete :soft_delete
      end
    end

    resources :variants, :only => [:index]

    resources :orders, only: [:index, :show] do
      get :managed, on: :collection

      resources :shipments, :only => [:create, :update] do
        member do
          put :ready
          put :ship
          put :add
          put :remove
        end
      end
    end

    resources :enterprises do
      post :update_image, on: :member
      get :managed, on: :collection
      get :accessible, on: :collection

      resource :logo, only: [:destroy]
      resource :promo_image, only: [:destroy]

      member do
        get :shopfront
      end
    end

    resources :order_cycles do
      get :products, on: :member
      get :taxons, on: :member
      get :properties, on: :member
    end

    resource :status do
      get :job_queue
    end

{'fraction_non_alphanumeric': 0.07751623376623376, 'fraction_numerical': 0.0016233766233766235, 'mean_word_length': 2.077403245942572, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5283866', 'n_tokens_mistral': 714, 'n_tokens_neox': 686, 'n_words': 252}