<commit_before><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
	lang="en"
	xmlns:tal="http://xml.zope.org/namespaces/tal"
	xmlns:metal="http://xml.zope.org/namespaces/metal"
	xmlns:i18n="http://xml.zope.org/namespaces/i18n"
	metal:use-macro="here/main_template/macros/master"
	i18n:domain="bika">

<body tal:define="
	portal context/@@plone_portal_state/portal;
	specification python:request.get('specification', 'lab');
	global out_of_range python:0;
	global late python:0;
	tabindex view/tabindex;
	now view/now">

<metal:content-title fill-slot="content-title">
    <h1>
    <img tal:condition="view/icon | nothing"
         src="" tal:attributes="src view/icon"/>
	<span class="documentFirstHeading" tal:content="context/title_or_id"/>
	<img src=""
		tal:condition="here/getInvoiceExclude"
		tal:attributes="src string:++resource++bika.lims.images/no_invoice.png"/>
    </h1>
</metal:content-title>

<metal:content-description fill-slot="content-description">
</metal:content-description>

<metal:content-core fill-slot="content-core"
	tal:define="
		tabindex view/tabindex;
		portal context/@@plone_portal_state/portal;
		specification python: request.get('specification', view.getDefaultSpec());
		ar_attach_allowed here/bika_setup/getARAttachmentsPermitted;
		ar_review_state python: context.portal_workflow.getInfoFor(context, 'review_state');
		analysis_attach_allowed here/bika_setup/getAnalysisAttachmentsPermitted;
		attachments_allowed here/bika_setup/getAttachmentsPermitted;
		attachments here/getAttachment | nothing;
		delete_attachments python:True;
		update_attachments python:True">

	<div tal:condition="attachments_allowed">
		<metal:block use-macro="here/attachments/macros/attachments"/>
	</div>

	<form
		name="folderContentsForm"
		id="folderContentsForm"
		class="folderContentsForm"
		method="post"
		action="workflow_action"
		tal:define="pagenumber string:1">

	<table width="100%">
		<tr>
			<td>
				<form name="specificationForm"
					enctype="multipart/form-data"
					method="post">
				<span i18n:translate="label_range_specification">Range Specification</span>
				<input class="noborder"
					type="radio"
					name="specification"
					value="lab"
					tal:attributes="
						checked python:specification == 'lab' and 'checked' or None;
						tabindex tabindex/next"/>
				<label i18n:translate="label_lab">Lab</label>
				<input class="noborder"
					type="radio"
					name="specification"
					value="client"
					tal:attributes="
						checked python:specification == 'client' and 'checked' or None;
						tabindex tabindex/next"/>
				<label i18n:translate="label_client">Client</label>
				</form>
			</td>
			<td align="right">
				<img tal:condition="view/getHazardous"
                    title="Hazardous"
					src=""
                    tal:attributes="src string:++resource++bika.lims.images/hazardous_big.png">
			</td>
		</tr>
	</table>

	<input type="hidden" name="submitted" value="1"/>

	<tal:field_analyses>
		<h3 tal:content="python: modules['bika.lims.config'].POINTS_OF_CAPTURE.getValue('field')"/>
		<span tal:replace="structure python: view.Field"/>
	</tal:field_analyses>

	<tal:lab_analyses>
		<h3 tal:content="python: modules['bika.lims.config'].POINTS_OF_CAPTURE.getValue('lab')"/>
		<span tal:replace="structure python: view.Lab"/>
	</tal:lab_analyses>

	</form>

</metal:content-core>

</body>
</html>

<commit_msg>layout changed. spec range javascript needed.<commit_after><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
    lang="en"
    xmlns:tal="http://xml.zope.org/namespaces/tal"
    xmlns:metal="http://xml.zope.org/namespaces/metal"
    xmlns:i18n="http://xml.zope.org/namespaces/i18n"
    metal:use-macro="here/main_template/macros/master"
    i18n:domain="bika">

<body tal:define="
    portal context/@@plone_portal_state/portal;
    specification python:request.get('specification', 'lab');
    global out_of_range python:0;
    global late python:0;
    tabindex view/tabindex;
    now view/now">

<metal:content-title fill-slot="content-title">
    <h1>
    <img tal:condition="view/icon | nothing"
         src="" tal:attributes="src view/icon"/>
    <span class="documentFirstHeading" tal:content="context/title_or_id"/>
    <img src=""
        tal:condition="here/getInvoiceExclude"
        tal:attributes="src string:++resource++bika.lims.images/no_invoice.png"/>
    </h1>
</metal:content-title>

<metal:content-description fill-slot="content-description">
</metal:content-description>

<metal:content-core fill-slot="content-core"
    tal:define="
        tabindex view/tabindex;
        portal context/@@plone_portal_state/portal;
        specification python: request.get('specification', view.getDefaultSpec());
        ar_attach_allowed here/bika_setup/getARAttachmentsPermitted;
        ar_review_state python: context.portal_workflow.getInfoFor(context, 'review_state');
        analysis_attach_allowed here/bika_setup/getAnalysisAttachmentsPermitted;
        attachments_allowed here/bika_setup/getAttachmentsPermitted;
        attachments here/getAttachment | nothing;
        delete_attachments python:True;
        update_attachments python:True">

    <div tal:condition="attachments_allowed">
        <metal:block use-macro="here/attachments/macros/attachments"/>
    </div>

    <form
        name="folderContentsForm"
        id="folderContentsForm"
        class="folderContentsForm"
        method="post"
        action="workflow_action"
        tal:define="pagenumber string:1">

    <img tal:condition="view/getHazardous"
        title="Hazardous"
        src=""
        tal:attributes="src string:++resource++bika.lims.images/hazardous_big.png">
    <h3>
        <tal:range>
            <form name="specificationForm"
                enctype="multipart/form-data"
                method="post">
            <img title="range"
                tal:attributes="src string:++resource++bika.lims.images/analysisspec.png">
            <span i18n:translate="label_range_specification">Range Specification</span>
            <a class="review_state_selector" id="lab" value="lab"
                href=""
                tal:attributes="
                    href python:'%s?specification=lab' %here.absolute_url();
                    class python:specification == 'lab' and 'selected' or ''"
            >lab</a>
            <a class="review_state_selector" id="client" value="client"
                href=""
                tal:attributes="
                    href python:'%s?specification=client' %here.absolute_url();
                    class python:specification == 'client' and 'selected' or ''"
            >client</a>


            </form>
        </tal:range>
    </h3>

    <br/>
    <input type="hidden" name="submitted" value="1"/>

    <tal:field_analyses>
        <h3>
            <img title="analyses"
                tal:attributes="src string:++resource++bika.lims.images/service.png">
            <span tal:content="python: modules['bika.lims.config'].POINTS_OF_CAPTURE.getValue('field')"/>
        </h3>
        <span tal:replace="structure python: view.Field"/>
    </tal:field_analyses>

    <tal:lab_analyses>
        <h3>
            <img title="analyses"
                tal:attributes="src string:++resource++bika.lims.images/service.png">
            <span tal:content="python: modules['bika.lims.config'].POINTS_OF_CAPTURE.getValue('lab')"/>
        </h3>
        <span tal:replace="structure python: view.Lab"/>
    </tal:lab_analyses>

    </form>

</metal:content-core>

</body>
</html>


{'fraction_non_alphanumeric': 0.14810882548108825, 'fraction_numerical': 0.007033842070338421, 'mean_word_length': 3.558983666061706, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 101, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 16}, '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': '136378', 'n_tokens_mistral': 2614, 'n_tokens_neox': 2404, 'n_words': 360}