<commit_before><?php

namespace bedezign\yii2\audit\panels;

use Yii;
use yii\debug\models\search\Db;

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

    /**
     * @return string
     */
    public function getLabel()
    {
        $timings = $this->calculateTimings();
        $queryCount = count($timings);
        $queryTime = number_format($this->getTotalQueryTime($timings) * 1000) . ' ms';
        return $this->getName() . ' <small>(' . $queryCount . ' / ' . $queryTime . ')</small>';<commit_msg>add method doc<commit_after><?php

namespace bedezign\yii2\audit\panels;

use Yii;
use yii\debug\models\search\Db;

/**
 * DbPanel
 * @package bedezign\yii2\audit\panels
 *
 * @method bool hasExplain()
 */
class DbPanel extends \yii\debug\panels\DbPanel
{
    use PanelTrait;

    /**
     * @return string
     */
    public function getLabel()
    {
        $timings = $this->calculateTimings();
        $queryCount = count($timings);
        $queryTime = number_format($this->getTotalQueryTime($timings) * 1000) . ' ms';
        return $this->getName() . ' <small>(' . $queryCount . ' / ' . $queryTime . ')</small>';
{'fraction_non_alphanumeric': 0.16680497925311202, 'fraction_numerical': 0.00995850622406639, 'mean_word_length': 2.840764331210191, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, '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': '318612', 'n_tokens_mistral': 430, 'n_tokens_neox': 417, 'n_words': 74}