<commit_before><%inherit file="project/project_base.mako"/>
<%def name="title()">${node['title']} Settings</%def>

##<!-- Show API key settings -->
##<div mod-meta='{
##        "tpl": "util/render_keys.mako",
##        "uri": "${node["api_url"]}keys/",
##        "replace": true,
##        "kwargs": {
##            "route": "${node["url"]}"
##        }
##    }'></div>

<div class="row">
    <div class="col-md-3">
        <div class="panel panel-default">
            <ul class="nav nav-stacked nav-pills">
                % if 'admin' in user['permissions'] and not node['is_registration']:
                  <li><a href="#configureNode">Configure ${node['node_type'].capitalize()}</a></li>
                % endif
                <li><a href="#configureCommenting">Configure Commenting</a></li>
                % if not node['is_registration']:
                    <li><a href="#selectAddons">Select Add-ons</a></li>
                % endif
                % if addon_enabled_settings:
                    <li><a href="#configureAddons">Configure Add-ons</a></li>
                % endif
            </ul>
        </div><!-- end sidebar -->
    </div>

    <div class="col-md-6">

        % if 'admin' in user['permissions'] and not node['is_registration']:

            <div class="panel panel-default">
                <span id="configureNode" class="anchor"></span>

                <div class="panel-heading">
                  <h3 class="panel-title">Configure ${node['node_type'].capitalize()}</h3>
                </div>
                <div class="panel-body">
                    <div class="help-block">
                        A project cannot be deleted if it has any components within it.
                        To delete a parent project, you must first delete all child components
                        by visiting their settings pages.
                    </div>
                    <button id="deleteNode" class="btn btn-danger btn-delete-node">Delete ${node['node_type']}</button>

                </div>
                <!-- Delete node -->

            </div>

        % endif
        <div class="panel panel-default">
            <span id="configureCommenting" class="anchor"></span>

            <div class="panel-heading">
                <h3 class="panel-title">Configure Commenting</h3>
            </div>
<commit_msg>Fix project navigation when on Settings page<commit_after><%inherit file="project/project_base.mako"/>
<%def name="title()">${node['title']} Settings</%def>

##<!-- Show API key settings -->
##<div mod-meta='{
##        "tpl": "util/render_keys.mako",
##        "uri": "${node["api_url"]}keys/",
##        "replace": true,
##        "kwargs": {
##            "route": "${node["url"]}"
##        }
##    }'></div>

<div class="row">
    <div class="col-md-3">
        <div class="panel panel-default">
            <ul class="nav nav-stacked nav-pills">
                % if 'admin' in user['permissions'] and not node['is_registration']:
                  <li><a href="#configureNode">Configure ${node['node_type'].capitalize()}</a></li>
                % endif
                <li><a href="#configureCommenting">Configure Commenting</a></li>
                % if not node['is_registration']:
                    <li><a href="#selectAddons">Select Add-ons</a></li>
                % endif
                % if addon_enabled_settings:
                    <li><a href="#configureAddons">Configure Add-ons</a></li>
                % endif
            </ul>
        </div><!-- end sidebar -->
    </div>

    <div class="col-md-6">

        % if 'admin' in user['permissions'] and not node['is_registration']:

            <div class="panel panel-default">

                <div class="panel-heading">
                    <h3 id="configureNode" class="anchor panel-title">Configure ${node['node_type'].capitalize()}</h3>
                </div>
                <div class="panel-body">
                    <div class="help-block">
                        A project cannot be deleted if it has any components within it.
                        To delete a parent project, you must first delete all child components
                        by visiting their settings pages.
                    </div>
                    <button id="deleteNode" class="btn btn-danger btn-delete-node">Delete ${node['node_type']}</button>

                </div>
                <!-- Delete node -->

            </div>

        % endif
        <div class="panel panel-default">
            <span id="configureCommenting" class="anchor"></span>

            <div class="panel-heading">
                <h3 class="panel-title">Configure Commenting</h3>
            </div>

{'fraction_non_alphanumeric': 0.16613418530351437, 'fraction_numerical': 0.0025559105431309905, 'mean_word_length': 1.7542521994134896, 'pattern_counts': {'":': 10, '<': 107, '<?xml version=': 0, '>': 107, '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': '2636024', 'n_tokens_mistral': 1333, 'n_tokens_neox': 1243, 'n_words': 291}