<commit_before><?php

namespace bedezign\yii2\audit\panels;

use bedezign\yii2\audit\components\panels\PanelTrait;
use Yii;
use yii\debug\models\search\Mail;

/**
 * MailPanel
 * @package bedezign\yii2\audit\panels
 */
class MailPanel extends \yii\debug\panels\MailPanel
{
    use PanelTrait;

    /**
     * @return string
     */
    public function getDetail()
    {
        $searchModel = new Mail();
        $dataProvider = $searchModel->search(Yii::$app->request->get(), $this->data);

        return Yii::$app->view->render('panels/mail/detail', [
            'panel'        => $this,
            'dataProvider' => $dataProvider,
            'searchModel'  => $searchModel
        ]);
    }
}<commit_msg>register assets for mail panel<commit_after><?php

namespace bedezign\yii2\audit\panels;

use bedezign\yii2\audit\components\panels\PanelTrait;
use Yii;
use yii\debug\models\search\Mail;
use yii\widgets\ActiveFormAsset;

/**
 * MailPanel
 * @package bedezign\yii2\audit\panels
 */
class MailPanel extends \yii\debug\panels\MailPanel
{
    use PanelTrait;

    /**
     * @return string
     */
    public function getDetail()
    {
        $searchModel = new Mail();
        $dataProvider = $searchModel->search(Yii::$app->request->get(), $this->data);

        return Yii::$app->view->render('panels/mail/detail', [
            'panel'         => $this,
            'dataProvider'  => $dataProvider,
            'searchModel'   => $searchModel
        ]);
    }

    /**
     *
     */
    public function registerAssets()
    {
        ActiveFormAsset::register(Yii::$app->getView());
    }
}
{'fraction_non_alphanumeric': 0.1526479750778816, 'fraction_numerical': 0.003738317757009346, 'mean_word_length': 2.5142231947483586, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 22, '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': '5686016', 'n_tokens_mistral': 532, 'n_tokens_neox': 531, 'n_words': 84}