<commit_before><?xml version="1.0"?>
<openerp>
    <data>
        <record id="page_rule" model="ir.rule">
            <field name="name">Can only read write and create game page</field>
            <field name="model_id" ref="model_chess_game"/>
            <field name="groups" eval="[(6,0,[ref('base.group_user')])]"/>
            <field name="domain_force">['|', ('first_user_id', '=', user.id), ('second_user_id', '=', user.id)]</field>
            <field name="perm_unlink" eval="0"/>
            <field name="perm_write" eval="1"/>
            <field name="perm_read" eval="1"/>
            <field name="perm_create" eval="1"/>
        </record>
        <record id="game_move_rule" model="ir.rule">
            <field name="name">Can only read and create move</field>
            <field name="model_id" ref="model_chess_game_line"/>
            <field name="groups" eval="[(6,0,[ref('base.group_user')])]"/>
            <field name="domain_force">['|', ('game_id.first_user_id', '=', user.id), ('game_id.second_user_id', '=', user.id)]</field>
            <field name="perm_unlink" eval="0"/>
            <field name="perm_write" eval="1"/>
            <field name="perm_read" eval="1"/>
            <field name="perm_create" eval="1"/>
        </record>
        <record id="chat_message_rule" model="ir.rule">
            <field name="name">Can only read and create message</field>
            <field name="model_id" ref="model_chess_game_chat"/>
            <field name="groups" eval="[(6,0,[ref('base.group_user')])]"/>
            <field name="domain_force">['|', ('game_id.first_user_id', '=', user.id), ('game_id.second_user_id', '=', user.id)]</field>
            <field name="perm_unlink" eval="0"/>
            <field name="perm_write" eval="0"/>
            <field name="perm_read" eval="1"/>
            <field name="perm_create" eval="1"/>
        </record>
        <record id="users_rating_rule" model="ir.rule">
            <field name="name">Can only write and read rating</field>
            <field name="model_id" ref="model_res_users"/>
            <field name="groups" eval="[(6,0,[ref('base.group_user')])]"/>
            <field name="domain_force"></field>
            <field name="perm_unlink" eval="0"/>
            <field name="perm_write" eval="1"/>
            <field name="perm_read" eval="1"/>
            <field name="perm_create" eval="0"/>
        </record>
        <record id="tournament_rule" model="ir.rule">
            <field name="name">Can only read write and create tournament</field>
            <field name="model_id" ref="model_chess_tournament"/>
            <field name="groups" eval="[(6,0,[ref('base.group_user')])]"/>
            <field name="domain_force">[('players', 'in', user.id)]</field>
            <field name="perm_unlink" eval="0"/>
            <field name="perm_write" eval="1"/>
            <field name="perm_read" eval="1"/>
            <field name="perm_create" eval="1"/>
        </record>
         <record id="tournament_edit_rule" model="ir.rule">
            <field name="name">Can only read write delete and create tournament</field>
            <field name="model_id" ref="model_chess_tournament"/>
            <field name="groups" eval="[(6,0,[ref('base.group_user')])]"/>
            <field name="domain_force">[('create_uid', '=', user.id)]</field>
            <field name="perm_unlink" eval="1"/>
            <field name="perm_write" eval="1"/>
            <field name="perm_read" eval="1"/>
            <field name="perm_create" eval="1"/>
        </record>
    </data>
</openerp>
<commit_msg>[FIX] security fix<commit_after><?xml version="1.0"?>
<openerp>
    <data>
        <record id="page_rule" model="ir.rule">
            <field name="name">Can only read write and create game page</field>
            <field name="model_id" ref="model_chess_game"/>
            <field name="groups" eval="[(6,0,[ref('base.group_user')])]"/>
            <field name="domain_force">['|', ('first_user_id', '=', user.id), ('second_user_id', '=', user.id)]</field>
            <field name="perm_unlink" eval="0"/>
            <field name="perm_write" eval="1"/>
            <field name="perm_read" eval="1"/>
            <field name="perm_create" eval="1"/>
        </record>
        <record id="tgame_rule" model="ir.rule">
            <field name="name">Can only read game data</field>
            <field name="model_id" ref="model_chess_game"/>
            <field name="groups" eval="[(6,0,[ref('base.group_user')])]"/>
            <field name="domain_force">[('tournament.players', 'in', user.id)]</field>
            <field name="perm_unlink" eval="0"/>
            <field name="perm_write" eval="0"/>
            <field name="perm_read" eval="1"/>
            <field name="perm_create" eval="0"/>
        </record>
        <record id="game_move_rule" model="ir.rule">
            <field name="name">Can only read and create move</field>
            <field name="model_id" ref="model_chess_game_line"/>
            <field name="groups" eval="[(6,0,[ref('base.group_user')])]"/>
            <field name="domain_force">['|', ('game_id.first_user_id', '=', user.id), ('game_id.second_user_id', '=', user.id)]</field>
            <field name="perm_unlink" eval="0"/>
            <field name="perm_write" eval="1"/>
            <field name="perm_read" eval="1"/>
            <field name="perm_create" eval="1"/>
        </record>
        <record id="chat_message_rule" model="ir.rule">
            <field name="name">Can only read and create message</field>
            <field name="model_id" ref="model_chess_game_chat"/>
            <field name="groups" eval="[(6,0,[ref('base.group_user')])]"/>
            <field name="domain_force">['|', ('game_id.first_user_id', '=', user.id), ('game_id.second_user_id', '=', user.id)]</field>
            <field name="perm_unlink" eval="0"/>
            <field name="perm_write" eval="0"/>
            <field name="perm_read" eval="1"/>
            <field name="perm_create" eval="1"/>
        </record>
        <record id="users_rating_rule" model="ir.rule">
            <field name="name">Can only write and read rating</field>
            <field name="model_id" ref="model_res_users"/>
            <field name="groups" eval="[(6,0,[ref('base.group_user')])]"/>
            <field name="domain_force"></field>
            <field name="perm_unlink" eval="0"/>
            <field name="perm_write" eval="1"/>
            <field name="perm_read" eval="1"/>
            <field name="perm_create" eval="0"/>
        </record>
        <record id="tournament_rule" model="ir.rule">
            <field name="name">Can only read write and create tournament</field>
            <field name="model_id" ref="model_chess_tournament"/>
            <field name="groups" eval="[(6,0,[ref('base.group_user')])]"/>
            <field name="domain_force">[('players', 'in', user.id)]</field>
            <field name="perm_unlink" eval="0"/>
            <field name="perm_write" eval="1"/>
            <field name="perm_read" eval="1"/>
            <field name="perm_create" eval="1"/>
        </record>
         <record id="tournament_edit_rule" model="ir.rule">
            <field name="name">Can only read write delete and create tournament</field>
            <field name="model_id" ref="model_chess_tournament"/>
            <field name="groups" eval="[(6,0,[ref('base.group_user')])]"/>
            <field name="domain_force">[('create_uid', '=', user.id)]</field>
            <field name="perm_unlink" eval="1"/>
            <field name="perm_write" eval="1"/>
            <field name="perm_read" eval="1"/>
            <field name="perm_create" eval="1"/>
        </record>
    </data>
</openerp>

{'fraction_non_alphanumeric': 0.19591783671346855, 'fraction_numerical': 0.010660426417056681, 'mean_word_length': 2.625353440150801, 'pattern_counts': {'":': 0, '<': 169, '<?xml version=': 2, '>': 169, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '2855149', 'n_tokens_mistral': 2415, 'n_tokens_neox': 2391, 'n_words': 458}