<commit_before><?php

namespace Tests\Core\Processor;

use Tests\Core\BaseTest;

/**
 * Class ExtractProcessorTest
 * @package Tests\Core\Processor
 */
class ExtractProcessorTest extends BaseTest
{

    public function testExecuteSuccess()
    {
        $image = $this->ImageHandler->processImage('e_1,p1x_100,p1y_100,p2x_300,p2y_300,o_jpg,rf_1', parent::EXTRACT_TEST_IMAGE);
        $image1 = new \Imagick($image->getOutputImagePath());
        $image2 = new \Imagick(parent::EXTRACT_TEST_IMAGE_RESULT);
        $result = $image1->compareImages($image2, \Imagick::METRIC_MEANSQUAREERROR);
        $this->generatedImage[] = $image;
        $this->assertFileExists($image->getOutputImagePath());
        $this->assertEquals(0, $result[1]);
    }
}<commit_msg>Fix phpcs warining, closes #110<commit_after><?php

namespace Tests\Core\Processor;

use Tests\Core\BaseTest;

/**
 * Class ExtractProcessorTest
 * @package Tests\Core\Processor
 */
class ExtractProcessorTest extends BaseTest
{

    public function testExecuteSuccess()
    {
        $image = $this->ImageHandler->processImage(
            'e_1,p1x_100,p1y_100,p2x_300,p2y_300,o_jpg,rf_1',
            parent::EXTRACT_TEST_IMAGE
        );
        $image1 = new \Imagick($image->getOutputImagePath());
        $image2 = new \Imagick(parent::EXTRACT_TEST_IMAGE_RESULT);
        $result = $image1->compareImages($image2, \Imagick::METRIC_MEANSQUAREERROR);
        $this->generatedImage[] = $image;
        $this->assertFileExists($image->getOutputImagePath());
        $this->assertEquals(0, $result[1]);
    }
}
{'fraction_non_alphanumeric': 0.14030612244897958, 'fraction_numerical': 0.032525510204081634, 'mean_word_length': 3.949526813880126, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '519850', 'n_tokens_mistral': 542, 'n_tokens_neox': 515, 'n_words': 71}