<commit_before><?php

namespace spec\Imagery;

use Imagery\Image;
use org\bovigo\vfs\vfsStream;
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;

class TransformerSpec extends ObjectBehavior
{
    /**
     * @var vfsStreamDirectory
     */
    private $workDir;


    function let()
    {
        $this->workDir = vfsStream::setup('dir');
        $jpeg = vfsStream::newFile('file.jpg');
        $jpeg->setContent($this->getJpeg());

        $this->workDir->addChild($jpeg);
    }

    function it_is_initializable()
    {
        $this->beConstructedWith(new Image(vfsStream::url("dir/file.jpg")));
        $this->shouldHaveType('Imagery\Transformer');
    }

    /**
     * https://github.com/mikey179/vfsStream/issues/57
     */
    function xit_should_save_the_image()
    {
        $this->beConstructedWith(new Image(vfsStream::url("dir/file.jpg")));
        $this->save(vfsStream::url("dir/file2.jpg"));
    }

    function getJpeg()
    {
        $gd = imagecreate(500, 400);
        ob_start();
        imagejpeg($gd);
        $content = ob_get_clean();

        return $content;
    }


}
<commit_msg>Commented out Transformer spec<commit_after><?php

namespace spec\Imagery;

use Imagery\Image;
use org\bovigo\vfs\vfsStream;
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;

class TransformerSpec extends ObjectBehavior
{
    /**
     * @var vfsStreamDirectory
     */
    private $workDir;


    /*function let()
    {
        $this->workDir = vfsStream::setup('dir');
        $jpeg = vfsStream::newFile('file.jpg');
        $jpeg->setContent($this->getJpeg());

        $this->workDir->addChild($jpeg);
    }*/

/*    function it_is_initializable()
    {
        $this->beConstructedWith(new Image(vfsStream::url("dir/file.jpg")));
        $this->shouldHaveType('Imagery\Transformer');
    }*/

    /**
     * https://github.com/mikey179/vfsStream/issues/57
     */
    /*function xit_should_save_the_image()
    {
        $this->beConstructedWith(new Image(vfsStream::url("dir/file.jpg")));
        $this->save(vfsStream::url("dir/file2.jpg"));
    }*/

    /*function getJpeg()
    {
        $gd = imagecreate(500, 400);
        ob_start();
        imagejpeg($gd);
        $content = ob_get_clean();

        return $content;
    }*/


}

{'fraction_non_alphanumeric': 0.1614190687361419, 'fraction_numerical': 0.010643015521064302, 'mean_word_length': 2.6862745098039214, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, 'https://': 2, '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': '1342802', 'n_tokens_mistral': 792, 'n_tokens_neox': 758, 'n_words': 101}