<commit_before><?php namespace Zephyrus\Tests\network;

use PHPUnit\Framework\TestCase;
use Zephyrus\Network\ResponseFactory;

class ResponseFactoryTest extends TestCase
{
    public function testInstance()
    {
        $response = ResponseFactory::getInstance()->plain("hello world");
        self::assertEquals("hello world", $response->getContent());
    }
}
<commit_msg>Added test for invalid download<commit_after><?php namespace Zephyrus\Tests\network;

use PHPUnit\Framework\TestCase;
use Zephyrus\Network\ResponseFactory;

class ResponseFactoryTest extends TestCase
{
    public function testInstance()
    {
        $response = ResponseFactory::getInstance()->plain("hello world");
        self::assertEquals("hello world", $response->getContent());
    }

    public function testInvalidDownload()
    {
        $this->expectException(\InvalidArgumentException::class);
        ResponseFactory::getInstance()->download("non-present-file.bob");
    }
}

{'fraction_non_alphanumeric': 0.12357217030114226, 'fraction_numerical': 0.0, 'mean_word_length': 4.572254335260116, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7233507', 'n_tokens_mistral': 248, 'n_tokens_neox': 242, 'n_words': 49}