<commit_before>module Amber
  module Support
    module LocaleFormat
      ALPHA = {
        "en-US"       => /^[A-Z]+$/i,
        "cs-CZ"       => /^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,
        "de-DE"       => /^[A-ZÄÖÜß]+$/i,
        "es-ES"       => /^[A-ZÁÉÍÑÓÚÜ]+$/i,
        "fr-FR"       => /^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,
        "hr-HR"       => /^[A-ZČĆĐŠŽ]+$/i,
        "hu-HU"       => /^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,
        "nl-NL"       => /^[A-ZÉËÏÓÖÜ]+$/i,
        "pl-PL"       => /^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,
        "pt-PT"       => /^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,
        "ru-RU"       => /^[А-ЯЁ]+$/i,
        "sr-RS@latin" => /^[A-ZČĆŽŠĐ]+$/i,
        "sr-RS"       => /^[А-ЯЂЈЉЊЋЏ]+$/i,
        "tr-TR"       => /^[A-ZÇĞİıÖŞÜ]+$/i,
        "uk-UA"       => /^[А-ЯЄIЇҐ]+$/i,
      }

      ALPHA_NUM = {
        "en-US"       => /^[0-9A-Z]+$/i,
        "cs-CZ"       => /^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,
        "de-DE"       => /^[0-9A-ZÄÖÜß]+$/i,
        "es-ES"       => /^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,
        "fr-FR"       => /^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,
        "hr-HR"       => /^[0-9A-ZČĆĐŠŽ]+$/i,
        "hu-HU"       => /^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,
        "nl-NL"       => /^[0-9A-ZÉËÏÓÖÜ]+$/i,
        "pl-PL"       => /^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,
        "pt-PT"       => /^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,
        "ru-RU"       => /^[0-9А-ЯЁ]+$/i,
        "sr-RS@latin" => /^[0-9A-ZČĆŽŠĐ]+$/i,
        "sr-RS"       => /^[0-9А-ЯЂЈЉЊЋЏ]+$/i,
        "tr-TR"       => /^[0-9A-ZÇĞİıÖŞÜ]+$/i,
        "uk-UA"       => /^[0-9А-ЯЄIЇҐ]+$/i,
      }

      PHONE_FORMAT = {
        "ar-DZ" => /^(\+?213|0)(5|6|7)\d{8}$/,
        "ar-SY" => /^(!?(\+?963)|0)?9\d{8}$/,
        "ar-SA" => /^(!?(\+?966)|0)?5\d{8}$/,
        "en-US" => /^(\+?1)?[2-9]\d{2}[2-9](?!11)\d{6}$/,
        "cs-CZ" => /^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,
        "de-DE" => /^(\+?49[ \.\-])?([\(]{1}[0-9]{1,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,
        "da-DK" => /^(\+?45)?(\d{8})$/,
        "el-GR" => /^(\+?30)?(69\d{8})$/,
        "en-AU" => /^(\+?61|0)4\d{8}$/,
        "en-GB" => /^(\+?44|0)7\d{9}$/,
        "en-HK" => /^(\+?852\-?)?[569]\d{3}\-?\d{4}$/,
        "en-IN" => /^(\+?91|0)?[789]\d{9}$/,
        "en-NZ" => /^(\+?64|0)2\d{7,9}$/,
        "en-ZA" => /^(\+?27|0)\d{9}$/,
        "en-ZM" => /^(\+?26)?09[567]\d{7}$/,
        "es-ES" => /^(\+?34)?(6\d{1}|7[1234])\d{7}$/,<commit_msg>Add México to the PHONE_FORMAT locale list (#1268)<commit_after>module Amber
  module Support
    module LocaleFormat
      ALPHA = {
        "en-US"       => /^[A-Z]+$/i,
        "cs-CZ"       => /^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,
        "de-DE"       => /^[A-ZÄÖÜß]+$/i,
        "es-ES"       => /^[A-ZÁÉÍÑÓÚÜ]+$/i,
        "fr-FR"       => /^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,
        "hr-HR"       => /^[A-ZČĆĐŠŽ]+$/i,
        "hu-HU"       => /^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,
        "nl-NL"       => /^[A-ZÉËÏÓÖÜ]+$/i,
        "pl-PL"       => /^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,
        "pt-PT"       => /^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,
        "ru-RU"       => /^[А-ЯЁ]+$/i,
        "sr-RS@latin" => /^[A-ZČĆŽŠĐ]+$/i,
        "sr-RS"       => /^[А-ЯЂЈЉЊЋЏ]+$/i,
        "tr-TR"       => /^[A-ZÇĞİıÖŞÜ]+$/i,
        "uk-UA"       => /^[А-ЯЄIЇҐ]+$/i,
      }

      ALPHA_NUM = {
        "en-US"       => /^[0-9A-Z]+$/i,
        "cs-CZ"       => /^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,
        "de-DE"       => /^[0-9A-ZÄÖÜß]+$/i,
        "es-ES"       => /^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,
        "fr-FR"       => /^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,
        "hr-HR"       => /^[0-9A-ZČĆĐŠŽ]+$/i,
        "hu-HU"       => /^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,
        "nl-NL"       => /^[0-9A-ZÉËÏÓÖÜ]+$/i,
        "pl-PL"       => /^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,
        "pt-PT"       => /^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,
        "ru-RU"       => /^[0-9А-ЯЁ]+$/i,
        "sr-RS@latin" => /^[0-9A-ZČĆŽŠĐ]+$/i,
        "sr-RS"       => /^[0-9А-ЯЂЈЉЊЋЏ]+$/i,
        "tr-TR"       => /^[0-9A-ZÇĞİıÖŞÜ]+$/i,
        "uk-UA"       => /^[0-9А-ЯЄIЇҐ]+$/i,
      }

      PHONE_FORMAT = {
        "ar-DZ" => /^(\+?213|0)(5|6|7)\d{8}$/,
        "ar-SY" => /^(!?(\+?963)|0)?9\d{8}$/,
        "ar-SA" => /^(!?(\+?966)|0)?5\d{8}$/,
        "en-US" => /^(\+?1)?[2-9]\d{2}[2-9](?!11)\d{6}$/,
        "cs-CZ" => /^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,
        "de-DE" => /^(\+?49[ \.\-])?([\(]{1}[0-9]{1,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,
        "da-DK" => /^(\+?45)?(\d{8})$/,
        "el-GR" => /^(\+?30)?(69\d{8})$/,
        "en-AU" => /^(\+?61|0)4\d{8}$/,
        "en-GB" => /^(\+?44|0)7\d{9}$/,
        "en-HK" => /^(\+?852\-?)?[569]\d{3}\-?\d{4}$/,
        "en-IN" => /^(\+?91|0)?[789]\d{9}$/,
        "en-NZ" => /^(\+?64|0)2\d{7,9}$/,
        "en-ZA" => /^(\+?27|0)\d{9}$/,
        "en-ZM" => /^(\+?26)?09[567]\d{7}$/,
        "es-ES" => /^(\+?34)?(6\d{1}|7[1234])\d{7}$/,
        "es-MX" => /^(\+?52)?\d{10}$/,
{'fraction_non_alphanumeric': 0.36735537190082646, 'fraction_numerical': 0.06363636363636363, 'mean_word_length': 1.4523809523809523, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 96, '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': '7468882', 'n_tokens_mistral': 2962, 'n_tokens_neox': 3054, 'n_words': 222}