<commit_before><html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:tal="http://xml.zope.org/namespaces/tal"
    xmlns:metal="http://xml.zope.org/namespaces/metal"
    xmlns:i18n="http://xml.zope.org/namespaces/i18n"
    i18n:domain="bika">

<tal:define
    i18n:domain="bika"
	define="
		portal_state context/@@plone_portal_state;
		currencies python:modules['zope.i18n.locales'].locales.getLocale('en').numbers.currencies;
		currency python:context.bika_setup.getCurrency();
		categoryUID python:view.request['categoryUID'];
		poc python:view.request['poc'];
		col_count python:int(view.request.get('col_count', 1));
		portal context/@@plone_portal_state/portal">
	<tr tal:repeat="service python:view.Services(poc, categoryUID)"
		tal:attributes="id service/UID">
        <tal:service tal:define="service_obj python:service.getObject()">
		<td style="text-align:left">
			<span
				class="service_title"
				tal:attributes="uid service/UID"
				tal:content="service/title"/>
			<em
				class="discreet"
				style="white-space:nowrap;"
				tal:condition="python:service_obj.getUnit()">(<span tal:replace="python:service_obj.getUnit()">mg/l</span>)</em>
			<img
				tal:condition="python:context.bika_setup.laboratory.getLaboratoryAccredited() and service_obj.getAccredited()"
				src="++resource++bika.lims.images/accredited.png"/>
			<img
				tal:condition="python:service_obj.getReportDryMatter()"
				src="++resource++bika.lims.images/dry.png"/>
		</td>
		<td
			style="white-space:nowrap;"
		    tal:define="analysis python: hasattr(here, service.id) and here[service.id] or None;
                vat python:service_obj.getVAT()">
			<span tal:replace="python:currencies[currency].symbol"/>
			<input
				class="price numeric"
				type="text"
				size="5"
				tal:attributes="
					value python: analysis and analysis.getPrice() or service_obj.getPrice();
					id string:${service/UID}_price;
					name string:Prices.${service/UID}:record;
					vat_amount vat"/>
			<input
				type="hidden"
				tal:attributes="
					value vat;
					id string:${service/UID}_vat;
					name string:VAT.${service/UID}:record;"/>
		</td>
		<td class="service">
			<image
				class="copyButton"
				tal:condition="python:col_count > 1"
				tal:attributes="
					id string:${service/UID};
					src string:++resource++bika.lims.images/copy.png"/>
		</td>
		<tal:i define="serviceUID service/UID;serviceTitle service/title">
			<tal:i repeat="column python:range(int(view.request['col_count']))">
				<td class='service'
					tal:define="
						disable python:int(view.request.get('disable', '-1'));
						input_id service/UID;
						input_name string:ar.${column}.Analyses:list:ignore_empty:record;
						selected python:view.request['column'] != '' and column == int(view.request['column']) and view.request['selectedservices'] or '';">
					<input
						tal:condition="python: disable > -1 and disable == column"
						disabled="disabled"
						class="cb"
						type="checkbox"
						tal:attributes="
							id input_id;
							column column;
							name input_name;
							value serviceUID;
							title serviceTitle;
							checked python:(selected.find(serviceUID)>-1 or request.get(input_name, [])) and 'checked' or None;"/>
					<input
						tal:condition="python: disable != column"
						class="cb"
						type="checkbox"
						tal:attributes="
							id input_id;
							column column;
							name input_name;
							value serviceUID;
							title serviceTitle;
							checked python:(selected.find(serviceUID)>-1 or request.get(input_name, [])) and 'checked' or None;"/>
					<em class="discreet" tal:attributes="class python:'partnr_'+serviceUID;column column;" />
				</td>
			</tal:i>
		</tal:i>
	    </tal:service>
	</tr>
</tal:define>
</html><commit_msg>IE scrunched up the analysis checkboxes in ar add<commit_after><tal:define
    i18n:domain="bika"
	define="
		portal_state context/@@plone_portal_state;
		currencies python:modules['zope.i18n.locales'].locales.getLocale('en').numbers.currencies;
		currency python:context.bika_setup.getCurrency();
		categoryUID python:view.request['categoryUID'];
		poc python:view.request['poc'];
		col_count python:int(view.request.get('col_count', 1));
		portal context/@@plone_portal_state/portal">
	<tr tal:repeat="service python:view.Services(poc, categoryUID)"
		tal:attributes="id service/UID">
        <tal:service tal:define="service_obj python:service.getObject()">
		<td style="text-align:left">
			<span
				class="service_title"
				tal:attributes="uid service/UID"
				tal:content="service/title"/>
			<em
				class="discreet"
				style="white-space:nowrap;"
				tal:condition="python:service_obj.getUnit()">(<span tal:replace="python:service_obj.getUnit()">mg/l</span>)</em>
			<img
				tal:condition="python:context.bika_setup.laboratory.getLaboratoryAccredited() and service_obj.getAccredited()"
				src="++resource++bika.lims.images/accredited.png"/>
			<img
				tal:condition="python:service_obj.getReportDryMatter()"
				src="++resource++bika.lims.images/dry.png"/>
		</td>
		<td
			style="white-space:nowrap;"
		    tal:define="analysis python: hasattr(here, service.id) and here[service.id] or None;
                vat python:service_obj.getVAT()">
			<span tal:replace="python:currencies[currency].symbol"/>
			<input
				class="price numeric"
				type="text"
				size="5"
				tal:attributes="
					value python: analysis and analysis.getPrice() or service_obj.getPrice();
					id string:${service/UID}_price;
					name string:Prices.${service/UID}:record;
					vat_amount vat"/>
			<input
				type="hidden"
				tal:attributes="
					value vat;
					id string:${service/UID}_vat;
					name string:VAT.${service/UID}:record;"/>
		</td>
		<td class="service">
			<image
				class="copyButton"
				tal:condition="python:col_count > 1"
				tal:attributes="
					id string:${service/UID};
					src string:++resource++bika.lims.images/copy.png"/>
		</td>
		<tal:i define="serviceUID service/UID;serviceTitle service/title">
			<tal:i repeat="column python:range(int(view.request['col_count']))">
				<td class='service'
					tal:define="
						disable python:int(view.request.get('disable', '-1'));
						input_id service/UID;
						input_name string:ar.${column}.Analyses:list:ignore_empty:record;
						selected python:view.request['column'] != '' and column == int(view.request['column']) and view.request['selectedservices'] or '';">
					<input
						tal:condition="python: disable > -1 and disable == column"
						disabled="disabled"
						class="cb"
						type="checkbox"
						tal:attributes="
							id input_id;
							column column;
							name input_name;
							value serviceUID;
							title serviceTitle;
							checked python:(selected.find(serviceUID)>-1 or request.get(input_name, [])) and 'checked' or None;"/>
					<input
						tal:condition="python: disable != column"
						class="cb"
						type="checkbox"
						tal:attributes="
							id input_id;
							column column;
							name input_name;
							value serviceUID;
							title serviceTitle;
							checked python:(selected.find(serviceUID)>-1 or request.get(input_name, [])) and 'checked' or None;"/>
					<em class="discreet" tal:attributes="class python:'partnr_'+serviceUID;column column;" />
				</td>
			</tal:i>
		</tal:i>
	    </tal:service>
	</tr>
</tal:define>
{'fraction_non_alphanumeric': 0.16130357387375052, 'fraction_numerical': 0.0045186909489251, 'mean_word_length': 3.89544235924933, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 77, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 7}, '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': '531485', 'n_tokens_mistral': 2992, 'n_tokens_neox': 2351, 'n_words': 400}