<commit_before><?php

/**
 * This file is the template for the contents of: widget.php
 * Used by the console command when creating widgets.
 */

return <<<'EOD'
<?php

/**
 * This is the "{{SLUG}}" CMS widget definition
 */

namespace App\Cms\Widget;

use Nails\Cms\Widget\WidgetBase;

class {{SLUG}} extends WidgetBase
{
    /**
     * Construct {{SLUG}}
     */
    public function __construct()
    {
        parent::__construct();

        $this->label       = '{{NAME}}';
        $this->description = '{{DESCRIPTION}}';
        $this->grouping    = '{{GROUPING}}';
        $this->keywords    = '{{KEYWORDS}}';
    }

    // --------------------------------------------------------------------------

    /**
     * Can be used to ensure that $aWidgetData has fields defined in both the
     * editor and render views.
     *
     * @param array $aWidgetData The widget's data
     */
    protected function populateWidgetData(&$aWidgetData)<commit_msg>Minor correction to widget template<commit_after><?php

/**
 * This file is the template for the contents of: widget.php
 * Used by the console command when creating widgets.
 */

return <<<'EOD'
<?php

/**
 * This is the "{{SLUG}}" CMS widget definition
 */

namespace App\Cms\Widget;

use Nails\Cms\Widget\WidgetBase;

class {{SLUG}} extends WidgetBase
{
    /**
     * Construct {{SLUG}}
     */
    public function __construct()
    {
        parent::__construct();

        $this->label       = '{{NAME}}';
        $this->description = '{{DESCRIPTION}}';
        $this->grouping    = '{{GROUPING}}';
        $this->keywords    = '{{KEYWORDS}}';
    }

    // --------------------------------------------------------------------------

    /**
     * Can be used to ensure that $aWidgetData has fields defined in both the
     * editor and render views.
     *
     * @param array $aWidgetData The widget's data
     */
    protected function populateWidgetData(array &$aWidgetData)
{'fraction_non_alphanumeric': 0.2088477366255144, 'fraction_numerical': 0.0, 'mean_word_length': 1.9559270516717324, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 11, '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': '3086565', 'n_tokens_mistral': 550, 'n_tokens_neox': 539, 'n_words': 158}