<commit_before>package mailck

// CheckResult contains the information about an email check.
type CheckResult string

var (
	// The mailbox could be completely verified.
	// We know for sure, that the target mailserver would receive mail.
	Valid = CheckResult("valid")

	// Invalid means, that we know for sure, that the mailbox does not exist.
	// e.g. the server syntax is invalid, the hostname does not exist or the
	// target mailserver said that the mailbox does not exist.
	Invalid = CheckResult("invalid")

	// The mailserver is a throw-away mail gateway like mailinator.com
	Disposable = CheckResult("disposable")

	// Undefined result in case of an error
	Undefined = CheckResult("undefined")
)<commit_msg>changed the result type to be a struct<commit_after>package mailck

// Result contains the information about an email check.
type Result struct {
	Result       string `json:"result"`
	ResultDetail string `json:"resultDetail"`
	Message      string `json:"message"`
}

var (
	Valid                 = Result{"valid", "mailboxChecked", "The mail address is valid."}
	InvalidSyntax         = Result{"invalid", "invalidSyntax", "The format is invalid."}
	InvalidDomain         = Result{"invalid", "invalidDomain", "The domain does not exist."}
	MailboxUnavailable    = Result{"invalid", "mailboxUnavailable", "The username does not exist."}
	Disposable            = Result{"invalid", "disposable", "The mailserver is a throw-away mail gateway."}
	DetailMailserverError = Result{"error", "mailserverError", "The target mailserver responded with an error."}
	DetailServiceError    = Result{"error", "serviceError", "An internal error occured while checking."}
)
{'fraction_non_alphanumeric': 0.09832134292565947, 'fraction_numerical': 0.0, 'mean_word_length': 4.072948328267477, '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': '3572892', 'n_tokens_mistral': 441, 'n_tokens_neox': 430, 'n_words': 180}