<commit_before>module SimpleForm
  module BankAccountNumber
    COUNTRIES = {
      "AU" => [
        { label: "6 digit BSB number", format: /\d{6}/ },
        { label: "9 digit account number", format: /\d{9}/ },
      ],
      "CA" => [
        { label: "5 digit branch number", format: /\d{5}/ },
        { label: "3 digit institution number", format: /\d{3}/ },
        { label: "account number", format: /\d+/ },
      ],
      "GB" => [
        { label: "6 digit sort code", format: /\d{6}/ },
        { label: "8 digit account number", format: /\d{8}/ },
      ],
      "NZ" => [
        { label: "2 digit bank number", format: /\d{2}/ },
        { label: "4 digit branch number", format: /\d{4}/ },
        { label: "7 digit account number", format: /\d{7}/ },
        { label: "2 or 3 digit suffix", format: /\d{2,3}/ },
      ],
    }

    DEFAULT_FORMAT = [
      { label: "account number", format: /[A-Z0-9]+/ }
    ]
  end
end

<commit_msg>Update formats to include edge cases<commit_after>module SimpleForm
  module BankAccountNumber
    COUNTRIES = {
      "AU" => [
        { label: "6 digit BSB number", format: /\d{6}/ },
        { label: "6 to 9 digit account number", format: /\d{6,9}/ },
      ],
      "CA" => [
        { label: "8 or 9 digit transit number", format: /\d{8,9}/ },
        { label: "7 to 12 digit account number", format: /\d{7,12}/ },
      ],
      "GB" => [
        { label: "6 digit sort code", format: /\d{6}/ },
        { label: "7 to 10 digit account number", format: /\d{7,10}/ },
      ],
      "NZ" => [
        { label: "2 digit bank number", format: /\d{2}/ },
        { label: "4 digit branch number", format: /\d{4}/ },
        { label: "7 digit account number", format: /\d{7}/ },
        { label: "2 or 3 digit suffix", format: /\d{2,3}/ },
      ],
    }

    DEFAULT_FORMAT = [
      { label: "account number", format: /[A-Z0-9]+/ }
    ]
  end
end


{'fraction_non_alphanumeric': 0.1993704092339979, 'fraction_numerical': 0.03147953830010493, 'mean_word_length': 1.8547904191616766, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '3624464', 'n_tokens_mistral': 675, 'n_tokens_neox': 639, 'n_words': 194}