<commit_before>module Bsale
  #code: Rut del cliente (String).
  #city: Ciudad del cliente (String).
  #company: Razón social del cliente (String).
  #municipality: Comuna del cliente (String).
  #activity: Giro del cliente (String).
  #address: Dirección del cliente (String).
  class Client < Base
    def initialize(opts = {})
      set_values(attrs.merge(opts))
    end

    def attrs
      { code: "", city: "", company: "", municipality: "", activity: "", address: "" }
    end

    def set_values(opts = {})
      opts.each do |k,v|
        singleton_class.send(:attr_accessor, k)
        instance_variable_set("@#{k}", v)
      end
    end
  end
end<commit_msg>Fix: Add more attributes to client. Add email for notifications<commit_after>module Bsale
  #code: Rut del cliente (String).
  #city: Ciudad del cliente (String).
  #company: Razón social del cliente (String).
  #municipality: Comuna del cliente (String).
  #activity: Giro del cliente (String).
  #address: Dirección del cliente (String).
  class Client < Base
    def initialize(opts = {})
      set_values(attrs.merge(opts))
    end

    def attrs
      { code: "", city: "", company: "", municipality: "", activity: "", address: "", email: "", firstName: "", note: "", lastName: "", city: "" }
    end

    def set_values(opts = {})
      opts.each do |k,v|
        singleton_class.send(:attr_accessor, k)
        instance_variable_set("@#{k}", v)
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.14226519337016574, 'fraction_numerical': 0.0, 'mean_word_length': 3.128205128205128, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '3175223', 'n_tokens_mistral': 464, 'n_tokens_neox': 460, 'n_words': 137}