<commit_before># frozen_string_literal: true
require "spec_helper"

describe "Case: BR TLD" do
  %w(
    <EMAIL>
    <EMAIL>
    <EMAIL>
    <EMAIL>
    <EMAIL>
    <EMAIL>
  ).each do |kase|
    it "proposes a hint for #{kase}" do
      response = EmailInquire.validate(kase)
      expect(response.status).to eq(:hint)
      expect(response.replacement).to eq("<EMAIL>")
    end
  end

  # https://en.wikipedia.org/wiki/.br
  # https://registro.br/dominio/categoria.html
  %w(
    <EMAIL>
    <EMAIL>
    <EMAIL>
    <EMAIL>
    <EMAIL>
    <EMAIL><commit_msg>Quality: Lint<commit_after># frozen_string_literal: true

require "spec_helper"

describe "Case: BR TLD" do
  %w(
    <EMAIL>
    <EMAIL>
    <EMAIL>
    <EMAIL>
    <EMAIL>
    <EMAIL>
  ).each do |kase|
    it "proposes a hint for #{kase}" do
      response = EmailInquire.validate(kase)
      expect(response.status).to eq(:hint)
      expect(response.replacement).to eq("<EMAIL>")
    end
  end

  # https://en.wikipedia.org/wiki/.br
  # https://registro.br/dominio/categoria.html
  %w(
    <EMAIL>
    <EMAIL>
    <EMAIL>
    <EMAIL>
    <EMAIL>q.br
    <EMAIL>
{'fraction_non_alphanumeric': 0.1526175687666371, 'fraction_numerical': 0.0, 'mean_word_length': 2.638709677419355, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, 'https://': 4, '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': '2852092', 'n_tokens_mistral': 448, 'n_tokens_neox': 446, 'n_words': 88}