<commit_before>module Faker
  module Address
    extend ModuleUtils
    extend self

    def zip_code
      Faker.numerify ZIP_FORMATS.rand
    end

    def us_state
      STATE.rand
    end

    def us_state_abbr
      STATE_ABBR.rand
    end

    def city_prefix
      CITY_PREFIXES.rand
    end

    def city_suffix
      CITY_SUFFIXES.rand
    end

    def city
      case rand(4)
      when 0 then '%s %s%s' % [city_prefix, Name.first_name, city_suffix]
      when 1 then '%s %s'   % [city_prefix, Name.first_name]
      when 2 then '%s%s'    % [Name.first_name, city_suffix]
      when 3 then '%s%s'    % [Name.last_name, city_suffix]
      end
    end

    def street_suffix
      STREET_SUFFIX.rand
    end

    def street_name
      case rand(2)
      when 0 then "#{Name.last_name} #{street_suffix}"
      when 1 then "#{Name.first_name} #{street_suffix}"
      end
    end

    def street_address(include_secondary = false)
      str = ( "#" * rand(3) ) << ('### %s' % street_name)
      str << ' ' << secondary_address  if include_secondary

      Faker.numerify(str)
    end

    def secondary_address
      Faker.numerify(SEC_ADDR.rand)
    end

    # UK Variants
    def uk_county
      UK_COUNTY.rand
    end

    def uk_country
      UK_COUNTRY.rand
    end

    def uk_postcode
      Faker.bothify(UK_POSTCODE.rand).upcase
    end

    def neighborhood
      NEIGHBORHOOD.rand
    end

    ZIP_FORMATS = k ['#####', '#####-####']<commit_msg>added de_county.rand<commit_after>module Faker
  module Address
    extend ModuleUtils
    extend self

    def zip_code
      Faker.numerify ZIP_FORMATS.rand
    end

    def us_state
      STATE.rand
    end

    def us_state_abbr
      STATE_ABBR.rand
    end

    def city_prefix
      CITY_PREFIXES.rand
    end

    def city_suffix
      CITY_SUFFIXES.rand
    end

    def city
      case rand(4)
      when 0 then '%s %s%s' % [city_prefix, Name.first_name, city_suffix]
      when 1 then '%s %s'   % [city_prefix, Name.first_name]
      when 2 then '%s%s'    % [Name.first_name, city_suffix]
      when 3 then '%s%s'    % [Name.last_name, city_suffix]
      end
    end

    def street_suffix
      STREET_SUFFIX.rand
    end

    def street_name
      case rand(2)
      when 0 then "#{Name.last_name} #{street_suffix}"
      when 1 then "#{Name.first_name} #{street_suffix}"
      end
    end

    def street_address(include_secondary = false)
      str = ( "#" * rand(3) ) << ('### %s' % street_name)
      str << ' ' << secondary_address  if include_secondary

      Faker.numerify(str)
    end

    def secondary_address
      Faker.numerify(SEC_ADDR.rand)
    end

    # UK Variants
    def uk_county
      UK_COUNTY.rand
    end

    def uk_country
      UK_COUNTRY.rand
    end

    def uk_postcode
      Faker.bothify(UK_POSTCODE.rand).upcase
    end

    # DE Variants
    def de_county
      DE_COUNTY.rand
    end

    def neighborhood
      NEIGHBORHOOD.rand
    end

    ZIP_FORMATS = k ['#####', '#####-####']
{'fraction_non_alphanumeric': 0.09327983951855567, 'fraction_numerical': 0.006018054162487462, 'mean_word_length': 2.142857142857143, 'pattern_counts': {'":': 0, '<': 15, '<?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': '1640495', 'n_tokens_mistral': 1103, 'n_tokens_neox': 1028, 'n_words': 245}