<commit_before><?php

use Galahad\LaravelAddressing\AdministrativeAreaCollection;
use Galahad\LaravelAddressing\Country;

/**
 * Class AdministrativeAreaCollectionTest
 *
 * @author <NAME> <<EMAIL>>
 */
class AdministrativeAreaCollectionTest extends PHPUnit_Framework_TestCase
{
    public function testCollectionClass()
    {
        $country = new Country;
        $brazil = $country->getByCode('BR');
        $states = $brazil->getAdministrativeAreas();

        $this->assertInstanceOf(AdministrativeAreaCollection::class, $states);
    }

    public function testUSStatesCount()
    {
        $country = new Country;
        $us = $country->getByCode('US');
        $states = $us->getAdministrativeAreas();

        $this->assertEquals($states->count(), 62);
    }
}<commit_msg>Add test for Brazilian states count<commit_after><?php

use Galahad\LaravelAddressing\AdministrativeAreaCollection;
use Galahad\LaravelAddressing\Country;

/**
 * Class AdministrativeAreaCollectionTest
 *
 * @author <NAME> <<EMAIL>>
 */
class AdministrativeAreaCollectionTest extends PHPUnit_Framework_TestCase
{
    public function testCollectionClass()
    {
        $country = new Country;
        $brazil = $country->getByCode('BR');
        $states = $brazil->getAdministrativeAreas();

        $this->assertInstanceOf(AdministrativeAreaCollection::class, $states);
    }

    public function testUSStatesCount()
    {
        $country = new Country;
        $us = $country->getByCode('US');
        $states = $us->getAdministrativeAreas();

        $this->assertEquals($states->count(), 62);
    }

    public function testBrazilianStatesCount()
    {
        $country = new Country;
        $brazil = $country->getByName('Brazil');
        $states = $brazil->getAdministrativeAreas();

        $this->assertEquals($states->count(), 27);
    }
}
{'fraction_non_alphanumeric': 0.1292257360959651, 'fraction_numerical': 0.003271537622682661, 'mean_word_length': 3.576059850374065, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 27, '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': '3095462', 'n_tokens_mistral': 546, 'n_tokens_neox': 511, 'n_words': 93}