<commit_before><?php

namespace OxErpTest\Services\Collectors;

use Symfony\Component\Config\Definition\Exception\Exception;

class AbstractCollector
{
    const VAR_PATH = __DIR__ . '/../../../var';
    const CALL_PATH = self::VAR_PATH . '/calls';
    const RESPONSES_PATH = self::VAR_PATH . '/responses';

    /**
     * @return bool
     */
    protected function ensurePath()
    {
        if (!is_dir(self::VAR_PATH)) {
            throw new Exception('could not find ./var directory plz create it');
        }

        if (!is_dir(self::CALL_PATH)) {
            throw new Exception('could not find ./var/calls directory plz create it, and add some calls');
        }

        if (!is_dir(self::RESPONSES_PATH)) {
            throw new Exception('could not find ./var/responses directory plz create it, and add some responses');
        }

        return true;
    }
}<commit_msg>- editing abstract class<commit_after><?php

namespace OxErpTest\Services\Collectors;

abstract class AbstractCollector
{
    const VAR_PATH = __DIR__ . '/../../../var';
    const CALL_PATH = self::VAR_PATH . '/calls';
    const RESPONSES_PATH = self::VAR_PATH . '/responses';

    /**
     * @return bool
     * @throws \Exception
     */
    protected function ensurePath()
    {
        if (!is_dir(self::VAR_PATH)) {
            throw new \Exception('could not find ./var directory plz create it');
        }

        if (!is_dir(self::CALL_PATH)) {
            throw new \Exception('could not find ./var/calls directory plz create it, and add some calls');
        }

        if (!is_dir(self::RESPONSES_PATH)) {
            throw new \Exception('could not find ./var/responses directory plz create it, and add some responses');
        }

        return true;
    }
}
{'fraction_non_alphanumeric': 0.1267765776009096, 'fraction_numerical': 0.0, 'mean_word_length': 2.3587786259541983, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '2264879', 'n_tokens_mistral': 519, 'n_tokens_neox': 508, 'n_words': 144}