<commit_before><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
         <record id="view_hr_payslip_form" model="ir.ui.view">
            <field name="name">hr.payslip.form</field>
            <field name="model">hr.payslip</field>
            <field name="inherit_id" ref="hr_payroll.view_hr_payslip_form"/>
            <field name="arch" type="xml">
                <xpath expr="//field[@name='worked_days_line_ids']//field[@name='name']" position="replace">
                    <field
                        name="date_from"
                        attrs="{'required': [('number_of_hours', '>', 0)]}"
                    />
                    <field
                        name="date_to"
                        attrs="{'required': [('number_of_hours', '>', 0)]}"
                    />
                    <field name="name"/>
                </xpath>

                <xpath expr="//field[@name='worked_days_line_ids']//field[@name='number_of_hours']" position="replace">
                    <field name="number_of_hours"/>
                    <field
                        name="hourly_rate"
                        attrs="{'required': [('number_of_hours', '>', 0)]}"
                    />
                    <field
                        name="rate"
                        attrs="{'required': [('number_of_hours', '>', 0)]}"
                    />
                </xpath>
<commit_msg>removed required attribute on hourly_rate and rate fields.<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
         <record id="view_hr_payslip_form" model="ir.ui.view">
            <field name="name">hr.payslip.form</field>
            <field name="model">hr.payslip</field>
            <field name="inherit_id" ref="hr_payroll.view_hr_payslip_form"/>
            <field name="arch" type="xml">
                <xpath expr="//field[@name='worked_days_line_ids']//field[@name='name']" position="replace">
                    <field
                        name="date_from"
                        attrs="{'required': [('number_of_hours', '>', 0)]}"
                    />
                    <field
                        name="date_to"
                        attrs="{'required': [('number_of_hours', '>', 0)]}"
                    />
                    <field name="name"/>
                </xpath>

                <xpath expr="//field[@name='worked_days_line_ids']//field[@name='number_of_hours']" position="replace">
                    <field name="number_of_hours"/>
                    <field
                        name="hourly_rate"
                    />
                    <field
                        name="rate"
                    />
                </xpath>

{'fraction_non_alphanumeric': 0.15715863084284137, 'fraction_numerical': 0.004416635995583364, 'mean_word_length': 1.3451251078515962, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 2, '>': 49, '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': '969645', 'n_tokens_mistral': 783, 'n_tokens_neox': 716, 'n_words': 101}