<commit_before><?php

namespace eecli\CodeIgniter;

use Symfony\Component\Console\Application;
use Symfony\Component\Console\Output\OutputInterface;

class Functions extends \EE_Functions
{
    /**
     * @var \Symfony\Component\Console\Output\OutputInterface
     */
    protected $output;

    /**
     * Success message culled from flashdata
     * @var string|null
     */
    protected $successMessage;

    /**
     * Error message culled from flashdata
     * @var string|null
     */
    protected $errorMessage;

    /**
     * Query string variables from redirect
     * @var array
     */
    protected $variables;

    /**
     * Controller instance
     * @var \CI_Controller
     */
    protected $EE;

    /**
     * @var \Symfony\Component\Console\Application
     */
    protected $app;

    public function __construct(OutputInterface $output, Application $app)
    {
        $this->output = $output;

        // for EE 2.5
        $this->EE = get_instance();<commit_msg>Fix bug where app was not set in Functions class<commit_after><?php

namespace eecli\CodeIgniter;

use Symfony\Component\Console\Application;
use Symfony\Component\Console\Output\OutputInterface;

class Functions extends \EE_Functions
{
    /**
     * @var \Symfony\Component\Console\Output\OutputInterface
     */
    protected $output;

    /**
     * Success message culled from flashdata
     * @var string|null
     */
    protected $successMessage;

    /**
     * Error message culled from flashdata
     * @var string|null
     */
    protected $errorMessage;

    /**
     * Query string variables from redirect
     * @var array
     */
    protected $variables;

    /**
     * Controller instance
     * @var \CI_Controller
     */
    protected $EE;

    /**
     * @var \Symfony\Component\Console\Application
     */
    protected $app;

    public function __construct(OutputInterface $output, Application $app)
    {
        $this->output = $output;

        $this->app = $app;

        // for EE 2.5
        $this->EE = get_instance();
{'fraction_non_alphanumeric': 0.11073003429691328, 'fraction_numerical': 0.0019598236158745713, 'mean_word_length': 2.3095623987034037, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '1757516', 'n_tokens_mistral': 594, 'n_tokens_neox': 569, 'n_words': 140}