<commit_before><?xml version="1.0"?>
<object name="AnalysisRequest"
        meta_type="Factory-based Type Information with dynamic views"
        xmlns:i18n="http://xml.zope.org/namespaces/i18n"
        i18n:domain="plone"
        purge="True">
<property name="title" i18n:translate="">Analysis Request</property>
 <property name="description"></property>
 <property name="content_icon">++resource++bika.lims.images/analysisrequest.png</property>
 <property name="content_meta_type">AnalysisRequest</property>
 <property name="product">bika.lims</property>
 <property name="factory">addAnalysisRequest</property>
 <property name="add_view_expr"></property>
 <property name="link_target"></property>
 <property name="global_allow">False</property>
 <property name="filter_content_types">True</property>
 <property name="allowed_content_types">
  <element value="Analysis"/>
  <element value="ARReport"/>
 </property>
 <property name="allow_discussion">False</property>
 <property name="default_view_fallback">False</property>
 <property name="default_view">base_view</property>

 <alias from="(Default)" to="base_view"/>

 <action title="View"
         action_id="view"
         category="object"
         condition_expr=""
         icon_expr=""
         link_target=""
         url_expr="string:${object_url}/base_view"
         i18n:attributes="title"
         i18n:domain="plone"
         visible="True">
     <permission value="View"/>
 </action>

 <action title="Manage Analyses"
         action_id="analyses"
         category="object"
         condition_expr="python:here.guard_cancelled_object()"
         icon_expr=""
         link_target=""
         url_expr="string:${object_url}/analyses"
         i18n:attributes="title"
         i18n:domain="plone"
         visible="True">
     <permission value="BIKA: Add Analysis"/>
 </action>

 <action title="Manage Results"
         action_id="manage_results"
         category="object"
         condition_expr="python:here.guard_cancelled_object()"
         icon_expr=""
         link_target=""
         url_expr="string:${object_url}/manage_results"
         i18n:attributes="title"
         visible="True">
     <permission value="BIKA: Edit Results"/>
 </action>

 <action title="Results not requested"
         action_id="analyses_not_requested"
         category="object"
         condition_expr="python:here.guard_cancelled_object()"
         icon_expr=""
         link_target=""
         url_expr="string:${object_url}/not_requested"
         i18n:attributes="title"
         visible="True">
     <permission value="BIKA: Results not requested"/>
 </action>

 <action title="Published results"
         action_id="published_results"
         category="object"
         condition_expr="python:here.guard_cancelled_object()"
         icon_expr=""
         link_target=""
         url_expr="string:${object_url}/published_results"
         i18n:attributes="title"
         visible="True">
     <permission value="View"/>
 </action>

 <action title="Invoice"
         action_id="invoice"
         category="object"
         condition_expr=""
         url_expr="string:${object_url}/invoice"
         i18n:attributes="title"
         visible="True">
     <permission value="BIKA: Manage Invoices"/>
 </action>

 <action title="Log"
         action_id="log"
         category="object"
         condition_expr=""
         url_expr="string:${object_url}/log"
         i18n:attributes="title"
         visible="True">
     <permission value="BIKA: View Log Tab"/>
 </action>

 <action title="Create Invoice"
         action_id="Create Invoice"
         category="document_actions"
         condition_expr="context/REQUEST/verified|nothing"
         link_target=""
         url_expr="string:${object_url}/invoice_create"
         i18n:attributes="title"
         visible="True">
     <permission value="BIKA: Manage Invoices"/>
 </action>

 <action title="Print"
         action_id="invoice_print"
         category="document_actions"
         condition_expr="context/REQUEST/verified|nothing"
         icon_expr="string:${object_url}/print_icon.png"
         link_target=""
         url_expr="string:${object_url}/invoice_print"
         i18n:attributes="title"
         visible="True">
     <permission value="BIKA: Manage Invoices"/>
 </action>

 <action title="Large Sticker"
         action_id="sticker_large"
         category="document_actions"
         condition_expr=""
         icon_expr="string:${object_url}/++resource++bika.lims.images/sticker_large.png"
         link_target=""
         url_expr="string:${object_url}/sticker?template=bika.lims:sticker_large.pt"
         i18n:attributes="title"
         visible="True">
     <permission value="View"/><commit_msg>Not shown 'invoice create' label if invoice has been created before.<commit_after><?xml version="1.0"?>
<object name="AnalysisRequest"
        meta_type="Factory-based Type Information with dynamic views"
        xmlns:i18n="http://xml.zope.org/namespaces/i18n"
        i18n:domain="plone"
        purge="True">
<property name="title" i18n:translate="">Analysis Request</property>
 <property name="description"></property>
 <property name="content_icon">++resource++bika.lims.images/analysisrequest.png</property>
 <property name="content_meta_type">AnalysisRequest</property>
 <property name="product">bika.lims</property>
 <property name="factory">addAnalysisRequest</property>
 <property name="add_view_expr"></property>
 <property name="link_target"></property>
 <property name="global_allow">False</property>
 <property name="filter_content_types">True</property>
 <property name="allowed_content_types">
  <element value="Analysis"/>
  <element value="ARReport"/>
 </property>
 <property name="allow_discussion">False</property>
 <property name="default_view_fallback">False</property>
 <property name="default_view">base_view</property>

 <alias from="(Default)" to="base_view"/>

 <action title="View"
         action_id="view"
         category="object"
         condition_expr=""
         icon_expr=""
         link_target=""
         url_expr="string:${object_url}/base_view"
         i18n:attributes="title"
         i18n:domain="plone"
         visible="True">
     <permission value="View"/>
 </action>

 <action title="Manage Analyses"
         action_id="analyses"
         category="object"
         condition_expr="python:here.guard_cancelled_object()"
         icon_expr=""
         link_target=""
         url_expr="string:${object_url}/analyses"
         i18n:attributes="title"
         i18n:domain="plone"
         visible="True">
     <permission value="BIKA: Add Analysis"/>
 </action>

 <action title="Manage Results"
         action_id="manage_results"
         category="object"
         condition_expr="python:here.guard_cancelled_object()"
         icon_expr=""
         link_target=""
         url_expr="string:${object_url}/manage_results"
         i18n:attributes="title"
         visible="True">
     <permission value="BIKA: Edit Results"/>
 </action>

 <action title="Results not requested"
         action_id="analyses_not_requested"
         category="object"
         condition_expr="python:here.guard_cancelled_object()"
         icon_expr=""
         link_target=""
         url_expr="string:${object_url}/not_requested"
         i18n:attributes="title"
         visible="True">
     <permission value="BIKA: Results not requested"/>
 </action>

 <action title="Published results"
         action_id="published_results"
         category="object"
         condition_expr="python:here.guard_cancelled_object()"
         icon_expr=""
         link_target=""
         url_expr="string:${object_url}/published_results"
         i18n:attributes="title"
         visible="True">
     <permission value="View"/>
 </action>

 <action title="Invoice"
         action_id="invoice"
         category="object"
         condition_expr=""
         url_expr="string:${object_url}/invoice"
         i18n:attributes="title"
         visible="True">
     <permission value="BIKA: Manage Invoices"/>
 </action>

 <action title="Log"
         action_id="log"
         category="object"
         condition_expr=""
         url_expr="string:${object_url}/log"
         i18n:attributes="title"
         visible="True">
     <permission value="BIKA: View Log Tab"/>
 </action>

 <action title="Create Invoice"
         action_id="Create Invoice"
         category="document_actions"
         condition_expr="python: context.portal_workflow.getInfoFor(context,'review_state') in ['verified', 'published'] and not context.getInvoice()"
         link_target=""
         url_expr="string:${object_url}/invoice_create"
         i18n:attributes="title"
         visible="True">
     <permission value="BIKA: Manage Invoices"/>
 </action>

 <action title="Print"
         action_id="invoice_print"
         category="document_actions"
         condition_expr="context/REQUEST/verified|nothing"
         icon_expr="string:${object_url}/print_icon.png"
         link_target=""
         url_expr="string:${object_url}/invoice_print"
         i18n:attributes="title"
         visible="True">
     <permission value="BIKA: Manage Invoices"/>
 </action>

 <action title="Large Sticker"
         action_id="sticker_large"
         category="document_actions"
         condition_expr=""
         icon_expr="string:${object_url}/++resource++bika.lims.images/sticker_large.png"
         link_target=""
         url_expr="string:${object_url}/sticker?template=bika.lims:sticker_large.pt"
         i18n:attributes="title"
         visible="True">
     <permission value="View"/>
{'fraction_non_alphanumeric': 0.1411764705882353, 'fraction_numerical': 0.007079646017699115, 'mean_word_length': 3.327027027027027, 'pattern_counts': {'":': 0, '<': 127, '<?xml version=': 2, '>': 127, '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': '8177', 'n_tokens_mistral': 2829, 'n_tokens_neox': 2718, 'n_words': 418}