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

        <record id="res_users_form_view" model="ir.ui.view">
            <field name="name">user.form.state</field>
            <field name="model">res.users</field>
            <field name="inherit_id" ref="base.view_users_form"/>
            <field name="arch" type="xml">
                <!-- add state field in header -->
                <xpath expr="//header" position="inside">
                    <button string="Send Reset Password Instructions"
                                type="object" name="action_reset_password"
                                attrs="{'invisible': [('state', '!=', 'active')]}"/>
                    <button string="Send an Invitation Email"
                                type="object" name="action_reset_password" context="{'create_user': 1}"
                                attrs="{'invisible': [('state', '!=', 'new')]}"/>
                    <field name="state" widget="statusbar"/>
                </xpath>

                <xpath expr="//sheet/div[@name='button_box']" position="before">
                    <div class="alert alert-success text-center o_form_header" attrs="{'invisible': [('signup_valid', '!=', True)]}">
                        <a class="close" data-dismiss="alert" href="#" aria-hidden="true">x</a>
                        <div attrs="{'invisible': [('state', '!=', 'active')]}">
                            <strong>A password reset has been requested for this user. An email containing the following link has been sent:</strong>
                        </div>
                        <div attrs="{'invisible': [('state', '!=', 'new')]}">
                            <strong>An invitation email containing the following subscription link has been sent:</strong>
                        </div>
                        <div><field name="signup_url" widget="url"/></div>
                         <field name="signup_valid" invisible="1"/>
                     </div>
                 </xpath>
            </field>
        </record>

    </data>
</openerp>
<commit_msg>[IMP] res.users layout form view, message top<commit_after><?xml version="1.0" encoding="UTF-8"?>
<openerp>
    <data>

        <record id="res_users_form_view" model="ir.ui.view">
            <field name="name">user.form.state</field>
            <field name="model">res.users</field>
            <field name="inherit_id" ref="base.view_users_form"/>
            <field name="arch" type="xml">
                <!-- add state field in header -->
                <xpath expr="//header" position="inside">
                    <button string="Send Reset Password Instructions"
                                type="object" name="action_reset_password"
                                attrs="{'invisible': [('state', '!=', 'active')]}"/>
                    <button string="Send an Invitation Email"
                                type="object" name="action_reset_password" context="{'create_user': 1}"
                                attrs="{'invisible': [('state', '!=', 'new')]}"/>
                    <field name="state" widget="statusbar"/>
                </xpath>

                <xpath expr="//sheet/div[@name='button_box']" position="after">
                    <div class="alert alert-success text-center o_form_header" attrs="{'invisible': [('signup_valid', '!=', True)]}">
                        <a class="close" data-dismiss="alert" href="#" aria-hidden="true">x</a>
                        <div attrs="{'invisible': [('state', '!=', 'active')]}">
                            <strong>A password reset has been requested for this user. An email containing the following link has been sent:</strong>
                        </div>
                        <div attrs="{'invisible': [('state', '!=', 'new')]}">
                            <strong>An invitation email containing the following subscription link has been sent:</strong>
                        </div>
                        <div><field name="signup_url" widget="url"/></div>
                         <field name="signup_valid" invisible="1"/>
                     </div>
                 </xpath>
            </field>
        </record>

    </data>
</openerp>

{'fraction_non_alphanumeric': 0.16292798110979928, 'fraction_numerical': 0.0023612750885478157, 'mean_word_length': 1.6641509433962265, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 2, '>': 79, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '1065433', 'n_tokens_mistral': 1112, 'n_tokens_neox': 1062, 'n_words': 244}