<commit_before>require 'resolv'
require 'email_checker/version'

module EmailChecker
  autoload :Config, 'email_checker/config'
  autoload :Checker, 'email_checker/checker'
  autoload :Domain, 'email_checker/domain'

  EMAIL_PATTERN = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z/i
  SERVER_TIMEOUT = 5000

  def self.check(email)
    checker = EmailChecker::Checker.new(email)<commit_msg>add verifier_email param to check method<commit_after>require 'resolv'
require 'email_checker/version'

module EmailChecker
  autoload :Config, 'email_checker/config'
  autoload :Checker, 'email_checker/checker'
  autoload :Domain, 'email_checker/domain'

  EMAIL_PATTERN = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z/i
  SERVER_TIMEOUT = 5000

  def self.check(email, verifier_email=nil)
    config.verifier_email = verifier_email if verifier_email
    checker = EmailChecker::Checker.new(email)
{'fraction_non_alphanumeric': 0.1583710407239819, 'fraction_numerical': 0.01583710407239819, 'mean_word_length': 5.366906474820144, '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': '3583777', 'n_tokens_mistral': 350, 'n_tokens_neox': 342, 'n_words': 55}