<commit_before><?hh

require_once 'quizzer/loaders/TestsLoader.php';

class TestsLoaderTest extends PHPUnit_Framework_TestCase
{
    private static $testsUrl = 'tests/resources/tests.json';

    public function testLoadAssessmentFromUrls()
    {
        $this->assertTrue(file_exists(self::$testsUrl), "Missing tests file");

        try {
            $tests = TestsLoader::loadTests(self::$testsUrl);
            $this->assertTrue(count($tests) == 1, 'Unexpected tests array size');<commit_msg>Change php extension to hh on required files<commit_after><?hh

require_once 'quizzer/loaders/TestsLoader.hh';

class TestsLoaderTest extends PHPUnit_Framework_TestCase
{
    private static $testsUrl = 'tests/resources/tests.json';

    public function testLoadAssessmentFromUrls()
    {
        $this->assertTrue(file_exists(self::$testsUrl), "Missing tests file");

        try {
            $tests = TestsLoader::loadTests(self::$testsUrl);
            $this->assertTrue(count($tests) == 1, 'Unexpected tests array size');
{'fraction_non_alphanumeric': 0.12156862745098039, 'fraction_numerical': 0.00196078431372549, 'mean_word_length': 4.105, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6600796', 'n_tokens_mistral': 286, 'n_tokens_neox': 288, 'n_words': 60}