<commit_before><?php
/**
 * AdminLTE plugin configuration
 */

// get logo path
$path = WWW_ROOT . 'img' . DS . 'logo.default.png';
if (file_exists(WWW_ROOT . 'img' . DS . 'logo.png')) {
    $path = WWW_ROOT . 'img' . DS . 'logo.png';
}

// convert to base64 image
$data = file_get_contents($path);
$base64 = 'data:image/png;base64,' . base64_encode($data);

// create logo html img
$logo = '<img src="' . $base64 . '" alt="Site Logo" />';

return [
    'Theme' => [
        'folder' => ROOT,
        'title' => 'AdminLTE',
        'logo' => [
            'mini' => $logo,
            'large' => $logo,
        ],
        'login' => [
            'show_remember' => true,
            'show_register' => false,
            'show_social' => false,
        ]
    ],
];
<commit_msg>use project name as theme title (task #3151)<commit_after><?php
/**
 * AdminLTE plugin configuration
 */

// get logo path
$path = WWW_ROOT . 'img' . DS . 'logo.default.png';
if (file_exists(WWW_ROOT . 'img' . DS . 'logo.png')) {
    $path = WWW_ROOT . 'img' . DS . 'logo.png';
}

// convert to base64 image
$data = file_get_contents($path);
$base64 = 'data:image/png;base64,' . base64_encode($data);

// create logo html img
$logo = '<img src="' . $base64 . '" alt="Site Logo" />';

return [
    'Theme' => [
        'folder' => ROOT,
        'title' => getenv('PROJECT_NAME'),
        'logo' => [
            'mini' => $logo,
            'large' => $logo,
        ],
        'login' => [
            'show_remember' => true,
            'show_register' => false,
            'show_social' => false,
        ]
    ],
];

{'fraction_non_alphanumeric': 0.1957473420888055, 'fraction_numerical': 0.0150093808630394, 'mean_word_length': 2.076923076923077, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 25, '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': '726941', 'n_tokens_mistral': 577, 'n_tokens_neox': 559, 'n_words': 125}