<commit_before># encoding: UTF-8
module Spree
  class NotifyMailer < ActionMailer::Base
    default :to => ["<EMAIL>", "<EMAIL>", "<EMAIL>"]

    def file_notification(file)
      attachments[file] = File.read("#{Rails.root}/public/images/uploads/" + file)
      mail(:subject => "Enviando archivo con Items eliminados por Focal")
    end

    def report_notification(readed, updated, deleted, created, directory, file, company)
      attachments[file] = File.read(File.join(directory, file))
      @readed = readed
      @updated = updated
      @deleted = deleted
      @created = created
      @company = company
      mail(:subject => "Enviando Informe con las estadisticas de la actualizacion de la Empresa #{company}")
    end

    def report_deleted_items(deleted, category)
      @deleted = deleted
      @category = category
      mail(:subject => "Enviando Informe de Items Borrados en Articulos")
    end

    def send_email_to_provider(order, line_items, resend = false)
    @order = order
    @line_items = line_items
    subject = (resend ? "[#{t(:resend).upcase}] " : '')
    subject += "Prueba de envio de Orden a la Compañia #{line_items.first.variant.product.supplier.title} #{order.number}"
    mail(:to => "<EMAIL>",
         :subject => subject)
    #mail(:to => ["<EMAIL>", "<EMAIL>", "<EMAIL>"],
    #     :subject => subject)
  end
  end
end<commit_msg>Corregido error en Notify mailer<commit_after># encoding: UTF-8
module Spree
  class NotifyMailer < ActionMailer::Base
    default :to => ["<EMAIL>", "<EMAIL>", "<EMAIL>"]

    def file_notification(file)
      attachments[file] = File.read("#{Rails.root}/public/images/uploads/" + file)
      mail(:subject => "Enviando archivo con Items eliminados por Focal")
    end

    def report_notification(readed, updated, deleted, created, directory, file, company)
      attachments[file] = File.read(File.join(directory, file))
      @readed = readed
      @updated = updated
      @deleted = deleted
      @created = created
      @company = company
      mail(:subject => "Enviando Informe con las estadisticas de la actualizacion de la Empresa #{company}")
    end

    def report_deleted_items(deleted, category)
      @deleted = deleted
      @category = category
      mail(:subject => "Enviando Informe de Items Borrados en Articulos")
    end

    def send_email_to_provider(order, line_items, resend = false)
    @order = order
    @line_items = line_items
    subject = (resend ? "[#{t(:resend).upcase}] " : '')
    subject += "Prueba de envio de Orden a la Compañia #{@line_items.first.variant.product.supplier.title}"
    subject += "#{@order.number}"
    mail(:to => "<EMAIL>",
         :subject => subject)
    #mail(:to => ["<EMAIL>", "<EMAIL>", "<EMAIL>"],
    #     :subject => subject)
  end
  end
end
{'fraction_non_alphanumeric': 0.13753581661891118, 'fraction_numerical': 0.0007163323782234957, 'mean_word_length': 3.3846153846153846, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 33, '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': '649889', 'n_tokens_mistral': 878, 'n_tokens_neox': 875, 'n_words': 232}