<commit_before>module Cb
  module Models
    class User
      attr_accessor :external_id, :user_status, :password, :email, :address_1, :address_2, :city, :state,
                    :province, :postal_code, :zip, :country_code, :first_name,
                    :last_name, :phone, :fax, :last_login, :created, :allow_partner_emails,
                    :allow_newsletter_emails, :allow_email_from_headhunter, :domain, :registration_path,
                    :user_type, :gender, :birth_date, :cobrand_code, :resume_stats, :custom_values, :work_status

      def initialize(args = {})
        return if args.nil?

        @external_id                  = args['ResponseExternalID'] || ''
        @user_status                  = args['UserStatus'] || ''
        @password                     = ''
        @email                        = args['Email'] || ''
        @address_1                    = args['Address1'] || ''
        @address_2                    = args['Address2'] || ''
        @city                         = args['City'] || ''
        @state                        = args['State'] || ''
        @province                     = args['Province'] || ''
        @postal_code                  = args['PostalCode'] || ''<commit_msg>Adding a flexible location code for user model<commit_after>module Cb
  module Models
    class User
      attr_accessor :external_id, :user_status, :password, :email, :address_1, :address_2, :city, :state,
                    :province, :location_code, :postal_code, :zip, :country_code, :first_name,
                    :last_name, :phone, :fax, :last_login, :created, :allow_partner_emails,
                    :allow_newsletter_emails, :allow_email_from_headhunter, :domain, :registration_path,
                    :user_type, :gender, :birth_date, :cobrand_code, :resume_stats, :custom_values, :work_status

      def initialize(args = {})
        return if args.nil?

        @external_id                  = args['ResponseExternalID'] || ''
        @user_status                  = args['UserStatus'] || ''
        @password                     = ''
        @email                        = args['Email'] || ''
        @address_1                    = args['Address1'] || ''
        @address_2                    = args['Address2'] || ''
        @city                         = args['City'] || ''
        @state                        = args['State'] || ''
        @province                     = args['Province'] || ''
        @location_code                = args['PostalCode'] || args['Zip'] || ''
        @postal_code                  = args['PostalCode'] || ''
{'fraction_non_alphanumeric': 0.13205374280230325, 'fraction_numerical': 0.004606525911708253, 'mean_word_length': 1.6138415245737212, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5884208', 'n_tokens_mistral': 735, 'n_tokens_neox': 695, 'n_words': 133}