<commit_before><?php
namespace Aura\Filter\Rule\Validate;

/**
 * Copyright © 2008-2011, <NAME>
 * Test schema documentation Copyright © 2011, <NAME>
 * All rights reserved.
 * @author  <NAME> <<EMAIL>>
 * @copyright   2008-2011 <NAME>
 * @license http://www.opensource.org/licenses/bsd-license.php BSD License
 * @link    http://www.dominicsayers.com/isemail
 * @version 3.04.1 - Changed my link to http://isemail.info throughout
 */
class EmailTest extends AbstractValidateTest
{
    public function providerIs()
    {
        $xml = simplexml_load_file(__DIR__ . DIRECTORY_SEPARATOR . 'EmailTest.xml');
        $provide = array();
        foreach ($xml->test as $test) {
            if ($this->isValidAddressRegardlessOfDns($test)) {
                $provide[(string) $test['id']] = array((string) $test->address);
            }
        }
        return $provide;
    }

    public function providerIsNot()
    {
        $xml = simplexml_load_file(__DIR__ . DIRECTORY_SEPARATOR . 'EmailTest.xml');
        $provide = array();
        foreach ($xml->test as $test) {
            if (! $this->isValidAddressRegardlessOfDns($test)) {
                $provide[(string) $test['id']] = array((string) $test->address);
            }
        }
        return $provide;
    }

    protected function isValidAddressRegardlessOfDns($test)
    {
        return $test->diagnosis == 'ISEMAIL_VALID'
            || $test->category == 'ISEMAIL_RFC5321'
            || $test->category == 'ISEMAIL_DNSWARN';
    }
}<commit_msg>set correct expectations<commit_after><?php
namespace Aura\Filter\Rule\Validate;

/**
 * Copyright © 2008-2011, <NAME>
 * Test schema documentation Copyright © 2011, <NAME>
 * All rights reserved.
 * @author  <NAME> <<EMAIL>>
 * @copyright   2008-2011 <NAME>
 * @license http://www.opensource.org/licenses/bsd-license.php BSD License
 * @link    http://www.dominicsayers.com/isemail
 * @version 3.04.1 - Changed my link to http://isemail.info throughout
 */
class EmailTest extends AbstractValidateTest
{
    public function providerIs()
    {
        $xml = simplexml_load_file(__DIR__ . DIRECTORY_SEPARATOR . 'EmailTest.xml');
        $provide = array();
        foreach ($xml->test as $test) {
            if ($this->isValidAddressRegardlessOfDns($test)) {
                $provide[(string) $test['id']] = array((string) $test->address);
            }
        }
        return $provide;
    }

    public function providerIsNot()
    {
        $xml = simplexml_load_file(__DIR__ . DIRECTORY_SEPARATOR . 'EmailTest.xml');
        $provide = array();
        foreach ($xml->test as $test) {
            if (! $this->isValidAddressRegardlessOfDns($test)) {
                $provide[(string) $test['id']] = array((string) $test->address);
            }
        }
        return $provide;
    }

    protected function isValidAddressRegardlessOfDns($test)
    {
        return $test->diagnosis == 'ISEMAIL_VALID'
            || $test->diagnosis == 'ISEMAIL_RFC5321_IPV6DEPRECATED'
            || $test->category == 'ISEMAIL_RFC5321'
            || $test->category == 'ISEMAIL_DNSWARN';
    }
}
{'fraction_non_alphanumeric': 0.14340960360941024, 'fraction_numerical': 0.019658395101514663, 'mean_word_length': 2.584295612009238, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 34, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 16}, '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': '1863551', 'n_tokens_mistral': 1001, 'n_tokens_neox': 927, 'n_words': 190}