<commit_before><?php
use yii\helpers\Html;
use mmelcor\babelfish\assets\AppAsset;

/* @var $this \yii\web\View */
/* @var $content string */

$bundle = AppAsset::register($this);

$baseUrl = $bundle->baseUrl;

$avatar = Yii::$app->user->identity->avatar_base_url .'/'. Yii::$app->user->identity->avatar_path;
if ($avatar === '/') {
    $avatar = $baseUrl . '/images/avatar_default.jpg';
}
$fullName = Yii::$app->user->identity->firstname .' '.Yii::$app->user->identity->lastname;


if (Yii::$app->controller->action->id === 'login') { 
/**
 * Do not use this code in your template. Remove it. 
 * Instead, use the code  $this->layout = '//main-login'; in your controller.
 */
    echo $this->render(
        'main-login',
        ['content' => $content]
    );
} else {

    if (class_exists('backend\modules\babelfish\assets\AppAsset')) {
        backend\modules\babelfish\assets\AppAsset::register($this);
    } else {
        app\assets\AppAsset::register($this);
    }

    dmstr\web\AdminLteAsset::register($this);

    $directoryAsset = Yii::$app->assetManager->getPublishedUrl('@vendor/almasaeed2010/adminlte/dist');
    ?>
    <?php $this->beginPage() ?><commit_msg>fixed asset call in main layout<commit_after><?php
use yii\helpers\Html;
use mmelcor\babelfish\assets\AppAsset;

/* @var $this \yii\web\View */
/* @var $content string */

$bundle = AppAsset::register($this);

$baseUrl = $bundle->baseUrl;

$avatar = Yii::$app->user->identity->avatar_base_url .'/'. Yii::$app->user->identity->avatar_path;
if ($avatar === '/') {
    $avatar = $baseUrl . '/images/avatar_default.jpg';
}
$fullName = Yii::$app->user->identity->firstname .' '.Yii::$app->user->identity->lastname;


if (Yii::$app->controller->action->id === 'login') { 
/**
 * Do not use this code in your template. Remove it. 
 * Instead, use the code  $this->layout = '//main-login'; in your controller.
 */
    echo $this->render(
        'main-login',
        ['content' => $content]
    );
} else {

    if (class_exists('mmelcor\babelfish\assets\AppAsset')) {
        mmelcor\babelfish\assets\AppAsset::register($this);
    } else {
        app\assets\AppAsset::register($this);
    }

    dmstr\web\AdminLteAsset::register($this);

    $directoryAsset = Yii::$app->assetManager->getPublishedUrl('@vendor/almasaeed2010/adminlte/dist');
    ?>
    <?php $this->beginPage() ?>
{'fraction_non_alphanumeric': 0.2025531914893617, 'fraction_numerical': 0.003404255319148936, 'mean_word_length': 3.6462450592885376, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 51, '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': '477719', 'n_tokens_mistral': 826, 'n_tokens_neox': 815, 'n_words': 133}