<commit_before><?php

/*
 * php-cs-fixer plugin for HiDev
 *
 * @link      https://github.com/hiqdev/hidev-php-cs-fixer
 * @package   hidev-php-cs-fixer
 * @license   BSD-3-Clause
 * @copyright Copyright (c) 2015, HiQDev (https://hiqdev.com/)
 */

namespace hidev\phpcsfixer\goals;

use hidev\helpers\Helper;

/**
 * Goal for php-cs-fixer.
 */
class PhpCsFixerGoal extends \hidev\goals\BaseGoal
{
    public function init()
    {
        $this->setDeps('.php_cs');
    }

    public function getFinder1()
    {
        $res = [];
        foreach ($this->rawItem('finder') as $k => $vs) {
            $res[$k] = Helper::asplit($vs);
        }

        return 'finder';
    }

    public function save()
    {
        $this->actionFix();
    }

    public function actionFix()
    {
        exec('php-cs-fixer fix');
    }
}<commit_msg>used passthre for php-cs-fixer fix<commit_after><?php

/*
 * php-cs-fixer plugin for HiDev
 *
 * @link      https://github.com/hiqdev/hidev-php-cs-fixer
 * @package   hidev-php-cs-fixer
 * @license   BSD-3-Clause
 * @copyright Copyright (c) 2015, HiQDev (https://hiqdev.com/)
 */

namespace hidev\phpcsfixer\goals;

use hidev\helpers\Helper;

/**
 * Goal for php-cs-fixer.
 */
class PhpCsFixerGoal extends \hidev\goals\BaseGoal
{
    public function init()
    {
        $this->setDeps('.php_cs');
    }

    public function getFinder1()
    {
        $res = [];
        foreach ($this->rawItem('finder') as $k => $vs) {
            $res[$k] = Helper::asplit($vs);
        }

        return 'finder';
    }

    public function save()
    {
        $this->actionFix();
    }

    public function actionFix()
    {
        passthru('php-cs-fixer fix');
    }
}
{'fraction_non_alphanumeric': 0.16302421736562314, 'fraction_numerical': 0.0070880094506792675, 'mean_word_length': 2.2022684310018903, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 4, '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': '7214612', 'n_tokens_mistral': 632, 'n_tokens_neox': 618, 'n_words': 112}