<commit_before><?php

namespace luya\admin\dashboards;

use Yii;
use yii\helpers\Html;
use luya\helpers\ArrayHelper;

/**
 * Fast generated Dashboard Objects.
 *
 * @author <NAME> <<EMAIL>>
 */
class DefaultObject extends BaseDashboardObject
{
    /**
     * @var array Options to generate the wrapper element. Generates a tag like:
     *
     * ```
     * <div class="card-panel" ng-controller="DefaultDashboardObjectController" ng-init="loadData(\'{{dataApiUrl}}\');">
     *     <!-- content from: $outerTemplate -->
     * </div>
     * ```
     */
    public $wrapperOptions = [
        'class' => 'card',
        'ng-controller' => 'DefaultDashboardObjectController',
        'ng-init' => 'loadData(\'{{dataApiUrl}}\')',
    ];
    
    /**
     * @var string The wrapper template which is by default:
     *
     * ```
     * <h3>{{title}}</h3>{{template}}
     * ```
     */
    public $outerTemplate = '<div class="card-body"><h5 class="card-title">{{title}}</h4>{{template}}</div>';

    public function getTitle()
    {
        $title = parent::getTitle();
        
        if (!is_array($title)) {
            return $title;
        }
        
        list($category, $message) = $title;
        
        return Yii::t($category, $message);
    }
    
    /**
     * @inheritdoc
     */
    public function getTemplate()
    {
        $template = parent::getTemplate();
        
        $wrapper = Html::tag(ArrayHelper::remove($this->wrapperOptions, 'tag', 'div'), $this->outerTemplate, $this->wrapperOptions);
        <commit_msg>dashboard object styles<commit_after><?php

namespace luya\admin\dashboards;

use Yii;
use yii\helpers\Html;
use luya\helpers\ArrayHelper;

/**
 * Fast generated Dashboard Objects.
 *
 * @author <NAME> <<EMAIL>>
 */
class DefaultObject extends BaseDashboardObject
{
    /**
     * @var array Options to generate the wrapper element. Generates a tag like:
     *
     * ```
     * <div class="card-panel" ng-controller="DefaultDashboardObjectController" ng-init="loadData(\'{{dataApiUrl}}\');">
     *     <!-- content from: $outerTemplate -->
     * </div>
     * ```
     */
    public $wrapperOptions = [
        'class' => 'card',
        'ng-controller' => 'DefaultDashboardObjectController',
        'ng-init' => 'loadData(\'{{dataApiUrl}}\')',
    ];
    
    /**
     * @var string The wrapper template which is by default:
     *
     * ```
     * <h3>{{title}}</h3>{{template}}
     * ```
     */
    public $outerTemplate = '<div class="card-header">{{title}}</div><div class="card-body">{{template}}</div>';

    public function getTitle()
    {
        $title = parent::getTitle();
        
        if (!is_array($title)) {
            return $title;
        }
        
        list($category, $message) = $title;
        
        return Yii::t($category, $message);
    }
    
    /**
     * @inheritdoc
     */
    public function getTemplate()
    {
        $template = parent::getTemplate();
        
        $wrapper = Html::tag(ArrayHelper::remove($this->wrapperOptions, 'tag', 'div'), $this->outerTemplate, $this->wrapperOptions);
        
{'fraction_non_alphanumeric': 0.17531421205285208, 'fraction_numerical': 0.0019336126329358686, 'mean_word_length': 2.3849509269356597, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 39, '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': '5822658', 'n_tokens_mistral': 937, 'n_tokens_neox': 938, 'n_words': 182}