<commit_before><?php

use alcea\cif\Cif;

use PHPUnit\Framework\TestCase;

final class CnpTest extends TestCase
{

    /**
     * CIF valide:
     * RO159 - http://www.mfinante.gov.ro/infocodfiscal.html?cod=159
     * RO19 - http://www.mfinante.gov.ro/infocodfiscal.html?cod=19
     */
    public function cifDataProvider()
    {
        return [
            //[CIF, isValid]
            [159, true],
            [19, true],
            [' 19 ', true],
            ['RO159', false],
            ['ro159', false],
            ['R159', false],
            ['0000000', false],
            ['xxx', false],
        ];
    }

    /**
     * @dataProvider cifDataProvider
     */
    public function testCIF($cif, $isValid)
    {
        $_cif = new Cif($cif);
        $this->assertEquals($_cif->isValid(), $isValid);
    }

}<commit_msg>Update CifTest.php<commit_after><?php

use alcea\cif\Cif;

use PHPUnit\Framework\TestCase;

final class CnpTest extends TestCase
{

    /**
     * CIF valide:
     * RO159 - http://www.mfinante.gov.ro/infocodfiscal.html?cod=159
     * RO19 - http://www.mfinante.gov.ro/infocodfiscal.html?cod=19
     */
    public function cifDataProvider()
    {
        return [
            //[CIF, isValid]
            ['0000000', false],
            ['xxx', false],
            ['-1', false],
            [9010105, true], #ORANGE ROMANIA SA
            ['RO 9010105', false],
            [5888716, true], #RCS & RDS SA
            ['R5888716', false],
            [8971726, true], #VODAFONE ROMANIA SA
            ['89717 26', false],
            [159, true], #FRIGOTEHNICA SRL
            ['RO159', false],
            [19, true], #BUCUR OBOR S.A
            [' 19 ', true],
        ];
    }

    /**
     * @dataProvider cifDataProvider
     */
    public function testCIF($cif, $isValid)
    {
        $_cif = new Cif($cif);
        $this->assertEquals($_cif->isValid(), $isValid);
    }

}
{'fraction_non_alphanumeric': 0.1564625850340136, 'fraction_numerical': 0.05389848246991104, 'mean_word_length': 1.7236467236467237, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '6155142', 'n_tokens_mistral': 723, 'n_tokens_neox': 641, 'n_words': 125}