<commit_before><?php
namespace TinyHelpers\Tests;

require_once '../src/TinyHelpers/TinyLoader.php';

class RouteTests extends \PHPUnit_Framework_TestCase
{

    public function testSimple()
    {
        $loader = new \TinyHelpers\TinyLoader();
        $loader->setNamespacePath('Aardvark', __DIR__ . DIRECTORY_SEPARATOR . 'LoaderTests');
        $loader->setNamespacePath('GeneratedNamespace', __DIR__ . DIRECTORY_SEPARATOR . 'LoaderTests' . DIRECTORY_SEPARATOR . 'generated');
        $loader->register();

        $classes = array(
            'Aardvark' => 'ants',
            'Aardvark\\Boardwalk' => 'water',
            'Aardvark\\Boardwalk\\Cat' => 'scratch',
            'GeneratedNamespace\\GenClass' => 'manufactured',
        );

        foreach ($classes as $class => $ret) {
            $a = new $class();
            $this->assertEquals($ret, $a->ident());
        }
    }
}
<commit_msg>just a note<commit_after><?php
namespace TinyHelpers\Tests;

require_once '../src/TinyHelpers/TinyLoader.php';

class RouteTests extends \PHPUnit_Framework_TestCase
{

    public function testSimple()
    {
        $loader = new \TinyHelpers\TinyLoader();
        $loader->setNamespacePath('Aardvark', __DIR__ . DIRECTORY_SEPARATOR . 'LoaderTests');
        $loader->setNamespacePath('GeneratedNamespace', __DIR__ . DIRECTORY_SEPARATOR . 'LoaderTests' . DIRECTORY_SEPARATOR . 'generated');
        $loader->register();

        $classes = array(
            // This class has no namespace, but it matches our "Aardvark" namespace prefix. Kinda quirky.
            'Aardvark' => 'ants',
            'Aardvark\\Boardwalk' => 'water',
            'Aardvark\\Boardwalk\\Cat' => 'scratch',
            'GeneratedNamespace\\GenClass' => 'manufactured',
        );

        foreach ($classes as $class => $ret) {
            $a = new $class();
            $this->assertEquals($ret, $a->ident());
        }
    }
}

{'fraction_non_alphanumeric': 0.1450261780104712, 'fraction_numerical': 0.0, 'mean_word_length': 2.5921052631578947, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, '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': '782894', 'n_tokens_mistral': 571, 'n_tokens_neox': 561, 'n_words': 108}