<commit_before><?php
    $categories = array(
        'pattern' => array(
            'branding',
            'base',
            'component',
            'demo',
            'helper',
            'utility',
            'template'
        )
    );
?>
<nav>
    <ol>
        <?php foreach($categories as $topLevelCategory => $categoryChildren){
            foreach($categoryChildren as $category) { ?>
                <li>
                    <a href="<?php echo getUrl('/'.$topLevelCategory.'/' .$category) ?>/"><?php echo ucwords($category) ?></a>
                    <ol>
                        <?php $subCategories = Navigation::getSubCategories($category); ?>
                        <?php foreach($subCategories as $subCategory){ ?>
                            <li class="level1">
                                <a href="<?php echo getUrl('/'.$topLevelCategory.'/' . $category . '/#section-' . $subCategory )?>">
                                    <?php echo str_replace('-', ' ', ucwords($subCategory)) ?>
                                </a>
                            </li>
                        <?php } ?>
                    </ol>
                </li>
            <?php } ?>
        <?php } ?>
    </ol>
</nav><commit_msg>142 improve nav (#171)<commit_after><?php
    $categories = array(
        'pattern' => array(
            'branding',
            'base',
            'component',
            'demo',
            'helper',
            'utility',
            'template'
        )
    );
?>
<nav>
    <ol>
        <?php foreach($categories as $topLevelCategory => $categoryChildren){
            foreach($categoryChildren as $category) { ?>
                <li>
                    <a href="<?php echo getUrl('/'.$topLevelCategory.'/' .$category) ?>/"><?php echo ucwords($category) ?></a>
                    <ol>
                        <?php $subCategories = Navigation::getSubCategories($category); ?>
                        <?php foreach($subCategories as $subCategory) {
                            $subCategoryLink = ( $category == 'template' ? '' : '#section-');
                            $subCategoryLink .= $subCategory;
                            ?>
                            <li class="level1">
                                <a href="<?php echo getUrl('/'.$topLevelCategory.'/' . $category . '/' . $subCategoryLink )?>">
                                    <?php echo str_replace('-', ' ', ucwords($subCategory)) ?>
                                </a>
                            </li>
                        <?php } ?>
                    </ol>
                </li>
            <?php } ?>
        <?php } ?>
    </ol>
</nav>
{'fraction_non_alphanumeric': 0.1597300337457818, 'fraction_numerical': 0.0029996250468691415, 'mean_word_length': 1.099134539732494, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 57, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '193565', 'n_tokens_mistral': 672, 'n_tokens_neox': 646, 'n_words': 131}