<commit_before><?php

namespace Croogo\Dashboards\View\Helper;

use Cake\View\Helper;
use Cake\Utility\Hash;
use Cake\Core\Configure;
use Cake\View\View;
use Croogo\Core\Croogo;
use Croogo\Dashboards\CroogoDashboard;
use Cake\ORM\TableRegistry;

/**
 * Dashboards Helper
 *
 * @category Helper
 * @package  Croogo.Dashboards.View.Helper
 * @version  2.2
 * @author   <NAME> <<EMAIL>>
 * @license  http://www.opensource.org/licenses/mit-license.php The MIT License
 * @link     http://www.croogo.org
 */
class DashboardsHelper extends Helper
{

    public $helpers = [
        'Html' => ['className' => 'Croogo/Core.CroogoHtml'],
        'Croogo/Core.Layout',
        'Croogo/Core.Theme',
    ];

/**
 * Constructor
 */
    public function __construct(View $View, $settings = [])
    {
        $settings = Hash::merge([
            'dashboardTag' => 'div',<commit_msg>Fix: settings needs to be persisted in the instance<commit_after><?php

namespace Croogo\Dashboards\View\Helper;

use Cake\View\Helper;
use Cake\Utility\Hash;
use Cake\Core\Configure;
use Cake\View\View;
use Croogo\Core\Croogo;
use Croogo\Dashboards\CroogoDashboard;
use Cake\ORM\TableRegistry;

/**
 * Dashboards Helper
 *
 * @category Helper
 * @package  Croogo.Dashboards.View.Helper
 * @version  2.2
 * @author   <NAME> <<EMAIL>>
 * @license  http://www.opensource.org/licenses/mit-license.php The MIT License
 * @link     http://www.croogo.org
 */
class DashboardsHelper extends Helper
{

    public $helpers = [
        'Html' => ['className' => 'Croogo/Core.CroogoHtml'],
        'Croogo/Core.Layout',
        'Croogo/Core.Theme',
    ];

/**
 * Constructor
 */
    public function __construct(View $View, $settings = [])
    {
        $this->settings = Hash::merge([
            'dashboardTag' => 'div',
{'fraction_non_alphanumeric': 0.15016872890888638, 'fraction_numerical': 0.0022497187851518562, 'mean_word_length': 3.1957547169811322, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '362890', 'n_tokens_mistral': 617, 'n_tokens_neox': 597, 'n_words': 119}