<commit_before><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <template id="editor_head" inherit_id="website.editor_head"
            name="Event Editor">
            <xpath expr="//script[@id='website_tour_js']" position="after">
                <script type="text/javascript"
                    src="/website_forum/static/src/js/website.tour.forum.js"/>
                <!--
                    FP Note: Why do we need this ? Can we remove this code?
                    The problem is that you add your script for every page, not only for the forum
                -->
                <script type="text/javascript"
                    src="/website_forum/static/src/js/website_forum.editor.js"/>
                <script type="text/javascript"
                    src="/website_forum/static/src/js/website_forum.js"/>
                <script type="text/javascript" 
                    src="/web/static/lib/jquery.textext/jquery.textext.js"/>
                <script type="text/javascript">
                    CKEDITOR.config.toolbar = [['Bold','Italic','Underline','Strike'],['NumberedList','BulletedList', 'Blockquote']
                    ,['Outdent','Indent','Link','Unlink'],] ;
                </script>
            </xpath>
        </template>

        <!-- Layout add nav and footer -->
        <template id="header_footer_custom" inherit_id="website.layout"
            name="Footer Questions Link">
            <xpath expr="//footer//ul[@name='products']" position="inside">
                <li>
                    <a t-attf-href="/forum/%(website_forum.forum_help)d/">Q&amp;A</a>
                </li>
            </xpath>
        </template>

        <!-- List of Questions -->
        <template id="post_list">
            <div class="question clearfix">
                <div class="pull-left text-center">
                    <div t-attf-class="box #{question.child_count and 'oe_green' or 'oe_grey'}">
                        <span t-esc="question.child_count"/>
                        <div t-if="question.child_count&gt;1">Answers</div>
                        <div t-if="question.child_count&lt;=1">Answer</div>
                    </div>
                    <div class="text-muted text-center">
                        <span t-field="question.views"/> Views
                    </div>
                </div>
                <div style="margin-left: 95px;">
                    <div class="question-name">
                        <a t-attf-href="/forum/#{ slug(forum) }/question/#{ slug(question) }" t-field="question.name"/>
                            <span t-if="not question.active"><b> [Deleted]</b></span>
                            <span t-if="question.state == 'close'"><b> [Closed]</b></span>
                    </div>
                    <div class="text-muted">
                        by <a t-attf-href="/forum/#{ slug(forum) }/user/#{ question.user_id.id }" t-field="question.user_id"/>, 
                        on <span t-field="question.write_date"/>
                        <div t-if="question.vote_count">
                            <strong>with <span t-esc="question.vote_count"/> votes</strong>
                        </div>
                    </div>
                    <t t-foreach="question.tags" t-as="tag">
                        <a t-attf-href="/forum/#{ slug(forum) }/tag/#{ tag.id }" class="badge" t-field="tag.name"/>
                    </t>
                </div>
            </div>
        </template>

        <!-- Page Index -->
        <template id="header" name="Forum Index">
            <t t-call="website.layout">
                <t t-set="head">
                    <link rel='stylesheet' href="/web/static/lib/jquery.textext/jquery.textext.css"/>
                    <link rel='stylesheet' href='/website_forum/static/src/css/website_forum.css'/>
                </t>
                <div class="container mt16">
                    <div class="navbar navbar-default">
                        <div class="navbar-header">
                            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#oe-help-navbar-collapse">
                                <span class="sr-only">Toggle navigation</span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                            </button>
                            <a class="navbar-brand" t-attf-href="/forum/#{slug(forum)}">
                                <span t-field="forum.name"/>
                            </a>
                        </div>
                        <div class="collapse navbar-collapse" id="oe-help-navbar-collapse">
                            <ul class="nav navbar-nav">
                                <li t-att-class="filters in ('all', 'unanswered','followed','question') and 'active' or '' ">
                                    <a t-attf-href="/forum/#{ slug(forum) }">Questions</a>
                                </li>
                                <li t-att-class="searches.get('users') and 'active' or '' ">
                                    <a t-attf-href="/forum/#{ slug(forum) }/users">People</a>
                                </li>
                                <li t-att-class="searches.get('tags') and 'active' or '' ">
                                    <a t-attf-href="/forum/#{ slug(forum) }/tag">Tags</a>
                                </li>
                                <li t-att-class="searches.get('badges') and 'active' or '' ">
                                    <a t-attf-href="/forum/#{ slug(forum) }/badge">Badges</a>
                                </li><commit_msg>[IMP] load js file in header.<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <template id="editor_head" inherit_id="website.editor_head"
            name="Event Editor">
            <xpath expr="//script[@id='website_tour_js']" position="after">
                <script type="text/javascript"
                    src="/website_forum/static/src/js/website.tour.forum.js"/>
                <script type="text/javascript" 
                    src="/website_forum/static/src/js/website_forum.editor.js"/>
            </xpath>
        </template>

        <!-- Layout add nav and footer -->
        <template id="header_footer_custom" inherit_id="website.layout"
            name="Footer Questions Link">
            <xpath expr="//footer//ul[@name='products']" position="inside">
                <li>
                    <a t-attf-href="/forum/%(website_forum.forum_help)d/">Q&amp;A</a>
                </li>
            </xpath>
        </template>

        <!-- List of Questions -->
        <template id="post_list">
            <div class="question clearfix">
                <div class="pull-left text-center">
                    <div t-attf-class="box #{question.child_count and 'oe_green' or 'oe_grey'}">
                        <span t-esc="question.child_count"/>
                        <div t-if="question.child_count&gt;1">Answers</div>
                        <div t-if="question.child_count&lt;=1">Answer</div>
                    </div>
                    <div class="text-muted text-center">
                        <span t-field="question.views"/> Views
                    </div>
                </div>
                <div style="margin-left: 95px;">
                    <div class="question-name">
                        <a t-attf-href="/forum/#{ slug(forum) }/question/#{ slug(question) }" t-field="question.name"/>
                            <span t-if="not question.active"><b> [Deleted]</b></span>
                            <span t-if="question.state == 'close'"><b> [Closed]</b></span>
                    </div>
                    <div class="text-muted">
                        by <a t-attf-href="/forum/#{ slug(forum) }/user/#{ question.user_id.id }" t-field="question.user_id"/>, 
                        on <span t-field="question.write_date"/>
                        <div t-if="question.vote_count">
                            <strong>with <span t-esc="question.vote_count"/> votes</strong>
                        </div>
                    </div>
                    <t t-foreach="question.tags" t-as="tag">
                        <a t-attf-href="/forum/#{ slug(forum) }/tag/#{ tag.id }" class="badge" t-field="tag.name"/>
                    </t>
                </div>
            </div>
        </template>

        <!-- Page Index -->
        <template id="header" name="Forum Index">
            <t t-call="website.layout">
                <t t-set="head">
                    <link rel='stylesheet' href="/web/static/lib/jquery.textext/jquery.textext.css"/>
                    <link rel='stylesheet' href='/website_forum/static/src/css/website_forum.css'/>
                    <!--
                    FP Note: Why do we need this ? Can we remove this code?
                    The problem is that you add your script for every page, not only for the forum
                    -->
                    <script type="text/javascript" src="/website_forum/static/src/js/website_forum.js"/>
                    <script type="text/javascript" src="/web/static/lib/jquery.textext/jquery.textext.js"/>
                    <script type="text/javascript">
                        CKEDITOR.config.toolbar = [['Bold','Italic','Underline','Strike'],['NumberedList','BulletedList', 'Blockquote']
                        ,['Outdent','Indent','Link','Unlink'],] ;
                    </script>
                </t>
                <div class="container mt16">
                    <div class="navbar navbar-default">
                        <div class="navbar-header">
                            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#oe-help-navbar-collapse">
                                <span class="sr-only">Toggle navigation</span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                            </button>
                            <a class="navbar-brand" t-attf-href="/forum/#{slug(forum)}">
                                <span t-field="forum.name"/>
                            </a>
                        </div>
                        <div class="collapse navbar-collapse" id="oe-help-navbar-collapse">
                            <ul class="nav navbar-nav">
                                <li t-att-class="filters in ('all', 'unanswered','followed','question') and 'active' or '' ">
                                    <a t-attf-href="/forum/#{ slug(forum) }">Questions</a>
                                </li>
                                <li t-att-class="searches.get('users') and 'active' or '' ">
                                    <a t-attf-href="/forum/#{ slug(forum) }/users">People</a>
                                </li>
                                <li t-att-class="searches.get('tags') and 'active' or '' ">
                                    <a t-attf-href="/forum/#{ slug(forum) }/tag">Tags</a>
                                </li>
                                <li t-att-class="searches.get('badges') and 'active' or '' ">
                                    <a t-attf-href="/forum/#{ slug(forum) }/badge">Badges</a>
                                </li>
{'fraction_non_alphanumeric': 0.15604376519624868, 'fraction_numerical': 0.0015630427231677665, 'mean_word_length': 1.2631165258400472, 'pattern_counts': {'":': 0, '<': 217, '<?xml version=': 2, '>': 217, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '967382', 'n_tokens_mistral': 3281, 'n_tokens_neox': 2977, 'n_words': 536}