<commit_before>Spree::Core::Engine.routes.prepend do
  namespace :admin do
    resources :users do
      member do
        put :generate_api_key
        put :clear_api_key
      end
    end
  end

  namespace :api do
    scope :module => :v1 do
      resources :products do
        resources :variants
        resources :product_properties
      end

      resources :images
      resources :variants, :only => [:index] do
      end

      resources :orders do
        resources :return_authorizations
        member do
          put :address
          put :delivery
          put :cancel
          put :empty
        end

        resources :line_items
        resources :payments do
          member do
            put :authorize
            put :purchase
            put :void
            put :credit
          end
        end

        resources :shipments do
          member do
            put :ready
            put :ship<commit_msg>Add missing route to api payments capture<commit_after>Spree::Core::Engine.routes.prepend do
  namespace :admin do
    resources :users do
      member do
        put :generate_api_key
        put :clear_api_key
      end
    end
  end

  namespace :api do
    scope :module => :v1 do
      resources :products do
        resources :variants
        resources :product_properties
      end

      resources :images
      resources :variants, :only => [:index] do
      end

      resources :orders do
        resources :return_authorizations
        member do
          put :address
          put :delivery
          put :cancel
          put :empty
        end

        resources :line_items
        resources :payments do
          member do
            put :authorize
            put :capture
            put :purchase
            put :void
            put :credit
          end
        end

        resources :shipments do
          member do
            put :ready
            put :ship
{'fraction_non_alphanumeric': 0.047174701918092275, 'fraction_numerical': 0.0010368066355624676, 'mean_word_length': 1.433795712484237, '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': '6845792', 'n_tokens_mistral': 490, 'n_tokens_neox': 479, 'n_words': 171}