<commit_before><?php
/** @var $station Entity\Station */
/** @var $frontend AzuraCast\Radio\Frontend\FrontendAbstract */
/** @var $backend AzuraCast\Radio\Backend\BackendAbstract */
?>
<ul class="main-menu">
    <li class="menu-header">
        <a href="<?=$url->named('stations:index:index', ['station' => $station->getId()]) ?>">
            <?=$this->e($station->getName()) ?>
        </a>
    </li>

<?php if ($acl->userAllowed($user, 'manage station broadcasting', $station->getId())): ?>
    <?php if (!$station->getHasStarted()): ?>
    <li class="menu-info">
        <a href="<?=$url->named('stations:util:restart', ['station' => $station->getId()]) ?>">
            <i class="zmdi zmdi-refresh-sync"></i>
            <?=_('<b>Ready to Broadcast?</b><br>Click to Start Station') ?>
        </a>
    </li>
    <?php elseif ($station->getNeedsRestart()): ?>
    <li class="menu-alert">
        <a href="<?=$url->named('stations:util:restart', ['station' => $station->getId()]) ?>">
            <i class="zmdi zmdi-refresh-sync-alert"></i>
            <?=_('<b>Apply Pending Changes</b><br>Click to Restart Station') ?>
        </a>
    </li>
    <?php endif; ?>

<?php endif; ?>

<?php if ($station->getEnablePublicPage()): ?>
    <li><a href="<?=$url->named('public:index', ['station' => $station->getShortName()]) ?>" target="_blank"><i class="zmdi zmdi-globe"></i> <?=_('Public Page') ?></a></li>
<?php endif; ?>

    <li><a href="<?=$url->named('stations:profile:index', ['station' => $station->getId()]) ?>"><i class="zmdi zmdi-image"></i> <?=_('Profile') ?></a></li>

    <?php if ($acl->userAllowed($user, 'manage station media', $station->getId()) && $backend->supportsMedia()): ?>
        <li><a href="<?=$url->named('stations:files:index', ['station' => $station->getId()]) ?>"><i class="zmdi zmdi-collection-music"></i> <?=_('Music Files') ?></a></li>
        <li><a href="<?=$url->named('stations:playlists:index', ['station' => $station->getId()]) ?>"><i class="zmdi zmdi-format-list-bulleted"></i> <?=_('Playlists') ?></a></li>
    <?php endif; ?>

    <?php if ($acl->userAllowed($user, 'manage station streamers', $station->getId()) && $backend->supportsStreamers()): ?>
        <li><a href="<?=$url->named('stations:streamers:index', ['station' => $station->getId()]) ?>"><i class="zmdi zmdi-account"></i> <?=_('Streamer/DJ Accounts') ?></a></li>
    <?php endif; ?>

    <?php if ($acl->userAllowed($user, 'manage station mounts', $station->getId()) && $frontend->supportsMounts()): ?><commit_msg>#437 -- Correct route on stations sidebar.<commit_after><?php
/** @var $station Entity\Station */
/** @var $frontend AzuraCast\Radio\Frontend\FrontendAbstract */
/** @var $backend AzuraCast\Radio\Backend\BackendAbstract */
?>
<ul class="main-menu">
    <li class="menu-header">
        <a href="<?=$url->named('stations:index:index', ['station' => $station->getId()]) ?>">
            <?=$this->e($station->getName()) ?>
        </a>
    </li>

<?php if ($acl->userAllowed($user, 'manage station broadcasting', $station->getId())): ?>
    <?php if (!$station->getHasStarted()): ?>
    <li class="menu-info">
        <a class="api-call" href="<?=$url->named('api:stations:restart', ['station' => $station->getId()]) ?>">
            <i class="zmdi zmdi-refresh-sync"></i>
            <?=_('<b>Ready to Broadcast?</b><br>Click to Start Station') ?>
        </a>
    </li>
    <?php elseif ($station->getNeedsRestart()): ?>
    <li class="menu-alert">
        <a class="api-call" href="<?=$url->named('api:stations:restart', ['station' => $station->getId()]) ?>">
            <i class="zmdi zmdi-refresh-sync-alert"></i>
            <?=_('<b>Apply Pending Changes</b><br>Click to Restart Station') ?>
        </a>
    </li>
    <?php endif; ?>

<?php endif; ?>

<?php if ($station->getEnablePublicPage()): ?>
    <li><a href="<?=$url->named('public:index', ['station' => $station->getShortName()]) ?>" target="_blank"><i class="zmdi zmdi-globe"></i> <?=_('Public Page') ?></a></li>
<?php endif; ?>

    <li><a href="<?=$url->named('stations:profile:index', ['station' => $station->getId()]) ?>"><i class="zmdi zmdi-image"></i> <?=_('Profile') ?></a></li>

    <?php if ($acl->userAllowed($user, 'manage station media', $station->getId()) && $backend->supportsMedia()): ?>
        <li><a href="<?=$url->named('stations:files:index', ['station' => $station->getId()]) ?>"><i class="zmdi zmdi-collection-music"></i> <?=_('Music Files') ?></a></li>
        <li><a href="<?=$url->named('stations:playlists:index', ['station' => $station->getId()]) ?>"><i class="zmdi zmdi-format-list-bulleted"></i> <?=_('Playlists') ?></a></li>
    <?php endif; ?>

    <?php if ($acl->userAllowed($user, 'manage station streamers', $station->getId()) && $backend->supportsStreamers()): ?>
        <li><a href="<?=$url->named('stations:streamers:index', ['station' => $station->getId()]) ?>"><i class="zmdi zmdi-account"></i> <?=_('Streamer/DJ Accounts') ?></a></li>
    <?php endif; ?>

    <?php if ($acl->userAllowed($user, 'manage station mounts', $station->getId()) && $frontend->supportsMounts()): ?>
{'fraction_non_alphanumeric': 0.27709190672153633, 'fraction_numerical': 0.0005878894767783657, 'mean_word_length': 4.240246406570842, 'pattern_counts': {'":': 0, '<': 167, '<?xml version=': 0, '>': 247, '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': '1992122', 'n_tokens_mistral': 1712, 'n_tokens_neox': 1739, 'n_words': 313}