<commit_before><?xml version="1.0"?>
<openerp>
    <data>
        <record model="ir.ui.view" id="docnaet_document_tree_view">
            <field name="name">Docnaet document</field>
            <field name="model">docnaet.document</field>
            <field name="inherit_id" ref="docnaet.docnaet_document_tree_view"/>
            <field name="arch" type="xml">
                <button name="button_call_url_docnaet" position="before">
                    <button name="document_text_preview" string="Text preview" type="object" icon="terp-stock_zoom" attrs="{'invisible':[('docnaet_extension','not in',('doc', 'pdf', 'odt', 'docx', 'eml'))]}"/>
                </button>
            </field>
        </record>
        
        <record model="ir.ui.view" id="view_document_text_preview_form">
            <field name="name">docnaet.document.form</field>
            <field name="model">docnaet.document</field>
            <field name="priority" eval="50" />
            <field name="arch" type="xml">
                <form string="Text preview" version="7.0">        
                    <sheet>
                        <group col="4" colspan="4">
                            <field name="name" colspan="4"/>
                            <field name="protocol_id" />
                            <field name="number" />
                            <field name="partner_id" />
                            <field name="date" />
                            <separator string="Text preview" colspan="4"/>
                            <field name="text_preview" colspan="4" nolabel="1"/>
                        </group>
                    </sheet>        
                </form>
            </field><commit_msg>add other extension<commit_after><?xml version="1.0"?>
<openerp>
    <data>
        <record model="ir.ui.view" id="docnaet_document_tree_view">
            <field name="name">Docnaet document</field>
            <field name="model">docnaet.document</field>
            <field name="inherit_id" ref="docnaet.docnaet_document_tree_view"/>
            <field name="arch" type="xml">
                <button name="button_call_url_docnaet" position="before">
                    <button name="document_text_preview" string="Text preview" type="object" icon="terp-stock_zoom" attrs="{'invisible':[('docnaet_extension','not in',('doc', 'pdf', 'xls', 'ods', 'odt', 'docx', 'eml'))]}" widget="html"/>
                </button>
            </field>
        </record>
        
        <record model="ir.ui.view" id="view_document_text_preview_form">
            <field name="name">docnaet.document.form</field>
            <field name="model">docnaet.document</field>
            <field name="priority" eval="50" />
            <field name="arch" type="xml">
                <form string="Text preview" version="7.0">        
                    <sheet>
                        <group col="4" colspan="4">
                            <field name="name" colspan="4"/>
                            <field name="protocol_id" />
                            <field name="number" />
                            <field name="partner_id" />
                            <field name="date" />
                            <separator string="Text preview" colspan="4"/>
                            <field name="text_preview" colspan="4" nolabel="1"/>
                        </group>
                    </sheet>        
                </form>
            </field>
{'fraction_non_alphanumeric': 0.15226218097447797, 'fraction_numerical': 0.0069605568445475635, 'mean_word_length': 1.6089258698940998, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 2, '>': 75, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '2961447', 'n_tokens_mistral': 952, 'n_tokens_neox': 922, 'n_words': 164}