<commit_before><?xml version="1.0" encoding="utf-8"?>
<odoo>
    <!-- Front-end/Back-end integration -->
    <template id="user_navbar" inherit_id="website.layout">
        <xpath expr="//t[@t-set='html_data']" position="after">
            <t t-set="body_classname" t-value="(body_classname if body_classname else '') + (' o_connected_user' if env['ir.ui.view'].user_has_groups('base.group_user') else '')"/>
        </xpath>
        <xpath expr="//div[@id='wrapwrap']" position="before">
            <nav groups="base.group_user" t-if="website and menu_data" id="oe_main_menu_navbar" class="o_main_navbar">
                <ul id="oe_applications">
                    <li class="dropdown active">
                        <a class="dropdown-toggle full" data-toggle="dropdown" href="#">
                            <i class="fa fa-th-large"/> WEBSITE
                        </a>
                        <div class="dropdown-menu" role="menu">
                            <t t-as="menu" t-foreach="menu_data['children']">
                                <a role="menuitem"
                                   t-attf-class="dropdown-item #{'oe_menu_toggler' if menu.get('children') else 'oe_menu_leaf'}"
                                   t-att-data-action-id="menu['action'] and menu['action'].split(',')[1] or None"
                                   t-att-data-action-model="menu['action'] and menu['action'].split(',')[0] or None"
                                   t-att-data-menu="menu['id']"
                                   t-att-data-menu-xmlid="menu.get('xmlid')"
                                   t-att-href="'/web#menu_id=%s&amp;action=%s' % (menu['id'], menu['action'] and menu['action'].split(',')[1] or '')">
                                    <i t-attf-class="fa #{menu.get('icon')} fa-lg fa-fw" t-if="menu.get('icon')" role="img" aria-label="Menu" title="Menu"/>
                                    <span class="oe_menu_text">
                                        <t t-esc="menu['name']"/>
                                    </span>
                                </a>
                            </t>
                        </div>
                    </li>
                </ul>

                <button type="button" class="fa fa-bars float-right d-block d-md-none o_mobile_menu_toggle" aria-label="Menu" title="Menu"/>

                <ul class="o_menu_sections" groups="website.group_website_designer">
                    <!-- Content -->
                    <li t-if="editable" class="dropdown" id="content-menu">
                        <a id="content-menu-button" class="dropdown-toggle o-no-caret waves" data-toggle="dropdown" data-display="static" href="#">Pages</a>
                        <div class="dropdown-menu" role="menu">
                            <a role="menuitem" data-action="edit_menu" href="#" title="Edit Top Menu" class="dropdown-item">Edit Menu</a>
                            <a role="menuitem" href="/website/pages" title="Manage Your Website Pages" class="dropdown-item">Manage Pages</a>
                            <div t-if="deletable" role="separator" class="dropdown-divider"/>
                            <a role="menuitem" href="#" data-action="page_properties" class="dropdown-item" t-if="deletable">Page Properties</a>
                        </div>
                    </li>
                    <!-- Customize -->
                    <li class="dropdown" id="customize-menu">
                        <a class="dropdown-toggle o-no-caret waves" data-toggle="dropdown" data-display="static" href="#">Customize</a>
                        <div class="dropdown-menu" role="menu">
                            <a role="menuitem" href="#" data-action="customize_theme" class="dropdown-item" id="theme_customize">Customize Theme</a>
                            <a role="menuitem" href="#" data-action="ace" class="dropdown-item" id="html_editor">HTML/CSS/JS Editor</a>
                            <a role="menuitem" href="/web#action=website.action_website_add_features" class="dropdown-item" id="install_apps" context="{'search_default_web_features' : 1}">Add Features</a>
                        </div>
                    </li>
                    <!-- Promote -->
                    <li class="dropdown" id="promote-menu">
                        <a class="dropdown-toggle o-no-caret waves" data-toggle="dropdown" href="#">Promote</a>
                        <div class="dropdown-menu oe_promote_menu" role="menu">
                            <a role="menuitem" data-action="promote-current-page" href="#" title="Promote page on the web" class="dropdown-item">Optimize SEO</a>
                        </div>
                    </li>
                </ul>

                <ul class="o_menu_systray d-none d-md-block" groups="website.group_website_publisher">
                    <li t-if="'website_published' in main_object.fields_get() and ('can_publish' not in main_object.fields_get() or main_object.can_publish)" t-attf-class="js_publish_management #{main_object.website_published and 'css_published' or 'css_unpublished'}" t-att-data-id="main_object.id" t-att-data-object="main_object._name" t-att-data-controller="publish_controller">
                        <label class="o_switch o_switch_danger js_publish_btn" for="id">
                            <input type="checkbox" t-att-checked="main_object.website_published" id="id"/>
                            <span/>
                            <span class="css_publish">Unpublished</span><commit_msg>[REM] website: redundant `context` attribute on a link<commit_after><?xml version="1.0" encoding="utf-8"?>
<odoo>
    <!-- Front-end/Back-end integration -->
    <template id="user_navbar" inherit_id="website.layout">
        <xpath expr="//t[@t-set='html_data']" position="after">
            <t t-set="body_classname" t-value="(body_classname if body_classname else '') + (' o_connected_user' if env['ir.ui.view'].user_has_groups('base.group_user') else '')"/>
        </xpath>
        <xpath expr="//div[@id='wrapwrap']" position="before">
            <nav groups="base.group_user" t-if="website and menu_data" id="oe_main_menu_navbar" class="o_main_navbar">
                <ul id="oe_applications">
                    <li class="dropdown active">
                        <a class="dropdown-toggle full" data-toggle="dropdown" href="#">
                            <i class="fa fa-th-large"/> WEBSITE
                        </a>
                        <div class="dropdown-menu" role="menu">
                            <t t-as="menu" t-foreach="menu_data['children']">
                                <a role="menuitem"
                                   t-attf-class="dropdown-item #{'oe_menu_toggler' if menu.get('children') else 'oe_menu_leaf'}"
                                   t-att-data-action-id="menu['action'] and menu['action'].split(',')[1] or None"
                                   t-att-data-action-model="menu['action'] and menu['action'].split(',')[0] or None"
                                   t-att-data-menu="menu['id']"
                                   t-att-data-menu-xmlid="menu.get('xmlid')"
                                   t-att-href="'/web#menu_id=%s&amp;action=%s' % (menu['id'], menu['action'] and menu['action'].split(',')[1] or '')">
                                    <i t-attf-class="fa #{menu.get('icon')} fa-lg fa-fw" t-if="menu.get('icon')" role="img" aria-label="Menu" title="Menu"/>
                                    <span class="oe_menu_text">
                                        <t t-esc="menu['name']"/>
                                    </span>
                                </a>
                            </t>
                        </div>
                    </li>
                </ul>

                <button type="button" class="fa fa-bars float-right d-block d-md-none o_mobile_menu_toggle" aria-label="Menu" title="Menu"/>

                <ul class="o_menu_sections" groups="website.group_website_designer">
                    <!-- Content -->
                    <li t-if="editable" class="dropdown" id="content-menu">
                        <a id="content-menu-button" class="dropdown-toggle o-no-caret waves" data-toggle="dropdown" data-display="static" href="#">Pages</a>
                        <div class="dropdown-menu" role="menu">
                            <a role="menuitem" data-action="edit_menu" href="#" title="Edit Top Menu" class="dropdown-item">Edit Menu</a>
                            <a role="menuitem" href="/website/pages" title="Manage Your Website Pages" class="dropdown-item">Manage Pages</a>
                            <div t-if="deletable" role="separator" class="dropdown-divider"/>
                            <a role="menuitem" href="#" data-action="page_properties" class="dropdown-item" t-if="deletable">Page Properties</a>
                        </div>
                    </li>
                    <!-- Customize -->
                    <li class="dropdown" id="customize-menu">
                        <a class="dropdown-toggle o-no-caret waves" data-toggle="dropdown" data-display="static" href="#">Customize</a>
                        <div class="dropdown-menu" role="menu">
                            <a role="menuitem" href="#" data-action="customize_theme" class="dropdown-item" id="theme_customize">Customize Theme</a>
                            <a role="menuitem" href="#" data-action="ace" class="dropdown-item" id="html_editor">HTML/CSS/JS Editor</a>
                            <a role="menuitem" href="/web#action=website.action_website_add_features" class="dropdown-item" id="install_apps">Add Features</a>
                        </div>
                    </li>
                    <!-- Promote -->
                    <li class="dropdown" id="promote-menu">
                        <a class="dropdown-toggle o-no-caret waves" data-toggle="dropdown" href="#">Promote</a>
                        <div class="dropdown-menu oe_promote_menu" role="menu">
                            <a role="menuitem" data-action="promote-current-page" href="#" title="Promote page on the web" class="dropdown-item">Optimize SEO</a>
                        </div>
                    </li>
                </ul>

                <ul class="o_menu_systray d-none d-md-block" groups="website.group_website_publisher">
                    <li t-if="'website_published' in main_object.fields_get() and ('can_publish' not in main_object.fields_get() or main_object.can_publish)" t-attf-class="js_publish_management #{main_object.website_published and 'css_published' or 'css_unpublished'}" t-att-data-id="main_object.id" t-att-data-object="main_object._name" t-att-data-controller="publish_controller">
                        <label class="o_switch o_switch_danger js_publish_btn" for="id">
                            <input type="checkbox" t-att-checked="main_object.website_published" id="id"/>
                            <span/>
                            <span class="css_publish">Unpublished</span>
{'fraction_non_alphanumeric': 0.15636034404708013, 'fraction_numerical': 0.0011770031688546855, 'mean_word_length': 1.7443478260869565, 'pattern_counts': {'":': 0, '<': 147, '<?xml version=': 2, '>': 147, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 24, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1555616', 'n_tokens_mistral': 3125, 'n_tokens_neox': 2991, 'n_words': 528}