<commit_before>namespace :spree_3plcentral do
  desc 'Sends unsent orders to 3PLCentral'
  task send_orders: :environment do
    Rails.logger.info '3PLCentral send orders: Starting send'

    shipments = Spree::Shipment.with_3plcentral.where(:sent_to_threeplcentral =>nil)
    total = shipments.count
    Rails.logger.info "3PLCentral send orders: Sending #{total} order(s)"

    shipments.each do |shipment|
      begin
        shipment.send_to_3plcentral
      rescue => ex
        Rails.logger.error "3PLCentral send orders: Error sending: #{ex.message}, shipment ID: #{shipment.id}"
        false
      end
    end

    Rails.logger.info "3PLCentral send orders: sent #{total} shipments"
  end
end<commit_msg>change log levels<commit_after>namespace :spree_3plcentral do
  desc 'Sends unsent orders to 3PLCentral'
  task send_orders: :environment do
    Rails.logger.debug '3PLCentral send orders: Starting send'

    shipments = Spree::Shipment.with_3plcentral.where(:sent_to_threeplcentral =>nil)
    total = shipments.count
    Rails.logger.debug "3PLCentral send orders: Sending #{total} order(s)"

    shipments.each do |shipment|
      begin
        shipment.send_to_3plcentral
      rescue => ex
        Rails.logger.error "3PLCentral send orders: Error sending: #{ex.message}, shipment ID: #{shipment.id}"
        false
      end
    end

    Rails.logger.debug "3PLCentral send orders: sent #{total} shipments"
  end
end
{'fraction_non_alphanumeric': 0.09071877180739707, 'fraction_numerical': 0.011165387299371946, 'mean_word_length': 3.552380952380952, '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': '1679829', 'n_tokens_mistral': 469, 'n_tokens_neox': 440, 'n_words': 121}