<commit_before><?php include 'header.phtml'; ?>

<h2>Set: <?php echo $set->name; ?></h2>

<form action="<?php echo $set->get_delete_link(); ?>" method="post">

<ul class="tasks">
    <?php if (count($new_vocabs) != 0): ?>
    <li>
        <a href="<?php echo $set->get_learn_link(); ?>">Learn</a>
        <span><?php echo count($new_vocabs); ?></span>
    </li>
    <?php endif; ?>
    <?php if (count($due_vocabs) != 0): ?>
    <li>
        <a href="<?php echo $set->get_review_link(); ?>">Review</a>
        <span><?php echo count($due_vocabs); ?></span>
    </li>
    <?php endif; ?>
    <li><a href="<?php echo $set->get_add_link(); ?>">Add</a></li>
    <li><a href="<?php echo $set->get_edit_link(); ?>">Edit</a></li>
    <li><button type="submit" class="delete">Delete</button></li>
</ul>

</form>

<h3>Progress</h3>

<ol class="progress">
    <li class="burned" title="Burned">
        Burned:
        <span><?php echo $stats['burned']; ?></span>
    </li>
    <li class="active" title="Active">
        Active:
        <span><?php echo $stats['active']; ?></span>
    </li>
    <li title="Inactive">
        Inactive:
        <span><?php echo $stats['inactive']; ?></span>
    </li>
</ol>

<?php if (count($critical_vocabs) != 0): ?>

<h3>Critical Items</h3>

<ol class="vocabularies">
    <?php foreach ($critical_vocabs as $vocab): ?>
        <li>
            <a href="<?php echo $vocab->get_permalink(); ?>"><?php echo htmlentities($vocab->front); ?></a>
        </li>
    <?php endforeach; ?>
</ol>

<?php endif; ?>

<?php if (count($vocabularies) != 0): ?>

<h3>Vocabularies</h3>

<ol class="vocabularies">
    <?php foreach ($vocabularies as $vocab): ?>
        <li class="<?php echo strtolower($vocab->get_human_level()); ?>">
            <a href="<?php echo $vocab->get_permalink(); ?>"><?php echo htmlentities($vocab->front); ?></a>
        </li><commit_msg>Color-code critical items<commit_after><?php include 'header.phtml'; ?>

<h2>Set: <?php echo $set->name; ?></h2>

<form action="<?php echo $set->get_delete_link(); ?>" method="post">

<ul class="tasks">
    <?php if (count($new_vocabs) != 0): ?>
    <li>
        <a href="<?php echo $set->get_learn_link(); ?>">Learn</a>
        <span><?php echo count($new_vocabs); ?></span>
    </li>
    <?php endif; ?>
    <?php if (count($due_vocabs) != 0): ?>
    <li>
        <a href="<?php echo $set->get_review_link(); ?>">Review</a>
        <span><?php echo count($due_vocabs); ?></span>
    </li>
    <?php endif; ?>
    <li><a href="<?php echo $set->get_add_link(); ?>">Add</a></li>
    <li><a href="<?php echo $set->get_edit_link(); ?>">Edit</a></li>
    <li><button type="submit" class="delete">Delete</button></li>
</ul>

</form>

<h3>Progress</h3>

<ol class="progress">
    <li class="burned" title="Burned">
        Burned:
        <span><?php echo $stats['burned']; ?></span>
    </li>
    <li class="active" title="Active">
        Active:
        <span><?php echo $stats['active']; ?></span>
    </li>
    <li title="Inactive">
        Inactive:
        <span><?php echo $stats['inactive']; ?></span>
    </li>
</ol>

<?php if (count($critical_vocabs) != 0): ?>

<h3>Critical Items</h3>

<ol class="vocabularies">
    <?php foreach ($critical_vocabs as $vocab): ?>
        <li class="<?php echo strtolower($vocab->get_human_level()); ?>">
            <a href="<?php echo $vocab->get_permalink(); ?>"><?php echo htmlentities($vocab->front); ?></a>
        </li>
    <?php endforeach; ?>
</ol>

<?php endif; ?>

<?php if (count($vocabularies) != 0): ?>

<h3>Vocabularies</h3>

<ol class="vocabularies">
    <?php foreach ($vocabularies as $vocab): ?>
        <li class="<?php echo strtolower($vocab->get_human_level()); ?>">
            <a href="<?php echo $vocab->get_permalink(); ?>"><?php echo htmlentities($vocab->front); ?></a>
        </li>
{'fraction_non_alphanumeric': 0.24954224431075073, 'fraction_numerical': 0.006277792309704421, 'mean_word_length': 3.3603192702394526, 'pattern_counts': {'":': 0, '<': 180, '<?xml version=': 0, '>': 203, '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': '1947351', 'n_tokens_mistral': 1429, 'n_tokens_neox': 1451, 'n_words': 298}