<commit_before><?php
namespace Sandbox\Demos;

require 'autoload.php';

use Sandbox\Actions;

class Action
{


    /**
     * @param string $text
     */
    public function firstFunc()
    {
        echo "Called first\n";
    }

    /**
     * @param string $text
     */
    public function secondFunc()
    {
        echo "Called second\n";
    }

    /**
     * Register and call the actions.
     *
     * @return mixed
     */
    public function execute()
    {
        Actions::addAction('say_hello', [$this, 'firstFunc'], 0);
        Actions::addAction('say_hello', [$this, 'secondFunc'], 1);
        return Actions::doAction('say_hello');
    }
}

$instance = new Action;
/**<commit_msg>Scrutinizer Auto-Fixes<commit_after><?php
namespace Sandbox\Demos;

require 'autoload.php';

use Sandbox\Actions;

class Action
{


    /**
     */
    public function firstFunc()
    {
        echo "Called first\n";
    }

    /**
     */
    public function secondFunc()
    {
        echo "Called second\n";
    }

    /**
     * Register and call the actions.
     *
     * @return string
     */
    public function execute()
    {
        Actions::addAction('say_hello', [$this, 'firstFunc'], 0);
        Actions::addAction('say_hello', [$this, 'secondFunc'], 1);
        return Actions::doAction('say_hello');
    }
}

$instance = new Action;
/**
{'fraction_non_alphanumeric': 0.15037037037037038, 'fraction_numerical': 0.002962962962962963, 'mean_word_length': 2.193853427895981, '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': '1276075', 'n_tokens_mistral': 441, 'n_tokens_neox': 423, 'n_words': 95}