<commit_before><div class="osf-sidenav hidden-print" role="complementary">

    <ul class="nav bs-sidenav">

        <h4 style="margin-left: 10px;">Project Wiki Pages</h4>


        % for item in toc:
         <li>

            <a href="${item['url']}">
                % if item['is_pointer']:
                    <i class="icon-hand-right"></i>
                %endif

                ${'home'}
                % if item['category']:
                    ${item['category']}
                % endif
            </a>


            <ul style="list-style-type: none;">
            % for k in pages_current:
                % if k != 'home':
                    <li>
                     <a href="/${node['id']}/wiki/${k}">${k}</a>

                    </li>
                % endif
             %endfor
             </ul>
        </li>
        %endfor
    </ul>




        % if category == 'project':
            <hr />
            <h4 style="margin-left: 10px;">Component Wiki Pages</h4>

            % for child in toc:
                <li>

                    <a href="${child['url']}">
                        % if child['is_pointer']:
                            <i class="icon-hand-right"></i>
                        % endif

                        ${child['title']}
                        % if child['category']:
                            (${child['category']})
                        % endif
                    </a>

                    <ul style="list-style-type: none;">
                        % for k in child['pages']:
                            % if k != 'home':
                                <li class="">
                                    <a href="/${node['id']}/node/${child['id']}/wiki/${k}">${k}</a>

                                </li>
                            % endif
                        % endfor
                    </ul>

                </li>
            % endfor
        % endif
</div><commit_msg>Format both project and component wiki pages correctly with sorting feature<commit_after><div class="osf-sidenav hidden-print" role="complementary">

    <ul class="nav bs-sidenav">

        <h4 style="margin-left: 10px;">Project Wiki Pages</h4>


        % for item in toc:
         <li>
            % for k in pages_current:
               %if k == 'home':
                     <a href="/${node['id']}/wiki/${k}">
                        ${'home'}
                     </a>
                %endif
            %endfor

            % for k in pages_current:
                % if k != 'home':
                    <li>
                     <a href="/${node['id']}/wiki/${k}">${k}</a>
                    </li>
                % endif
             %endfor
        %endfor


        <hr />
        <h4 style="margin-left: 10px;">Component Wiki Pages</h4>

        % if category == 'project':


            % for child in toc:
                <li>
                    <a href="${child['url']}">
                        % if child['is_pointer']:
                            <i class=""></i>
                        % endif

                        ${child['title']}
                            % if child['category']:
                                (${child['category']})
                            % endif
                    </a>

                    <ul style="list-style-type: none;">
                        % for k in child['pages']:
                            % if k != 'home':
                                <li class="">
                                    <a href="/${node['id']}/node/${child['id']}/wiki/${k}">${k}</a>
                                </li>
                            % endif
                        % endfor
                    </ul>
                </li>
            % endfor
        % endif
    </ul>
</div>
{'fraction_non_alphanumeric': 0.14871659169092352, 'fraction_numerical': 0.004233924318602805, 'mean_word_length': 0.8173076923076923, 'pattern_counts': {'":': 0, '<': 64, '<?xml version=': 0, '>': 64, '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': '511308', 'n_tokens_mistral': 1049, 'n_tokens_neox': 932, 'n_words': 202}