<commit_before><?xml version="1.0" encoding="UTF-8"?>
<blocks>
	<block type="modules_brand_brand" icon="brand">
		<parameters>
			<parameter name="showShareBlock" type="Boolean" default-value="true" />
		</parameters>
		<metas>
			<meta name="brandname" allow="title,description" />
			<meta name="branddescription" allow="description" />
		</metas>
	</block>
	<block type="modules_brand_brandList" icon="list-block">
		<parameters>
			<parameter name="topshelf" type="modules_catalog/topshelf" />
			<parameter name="paginated" type="Boolean" default-value="true" />
			<parameter name="itemsPerPage" type="Integer" default-value="20" hidehelp="true" />
			<parameter name="showDetailedList" type="Boolean" default-value="false" />
		</parameters>
		<xul>
			<javascript>
				<constructor><![CDATA[
					var fields = this.getFields();
					var me = this;
					fields['paginated'].addEventListener('fieldChanged', function(event) {me.onDisplaysortmenuChange(event)}, true);
				]]></constructor>
				<method name="onDisplaysortmenuChange">
					<body><![CDATA[
						var fields = this.getFields();
						this.getElementByAnonId('itemsPerPage_cnt').collapsed = !(fields['paginated'].value == 'true');
					]]></body>
				</method>
			</javascript>
		</xul>
	</block>
	<block type="modules_brand_brandProducts" icon="list-block">
		<parameters>
			<parameter name="brand" type="modules_brand/brand" />
			<parameter name="displayMode" type="String" min-occurs="1" default-value="List" fieldtype="dropdownlist" />
			<parameter name="nbresultsperpage" type="Integer" default-value="12" min-occurs="1" />
			<parameter name="sortRandom" type="Boolean" default-value="false" /><parameter name="displayaddtocart" type="Boolean" default-value="true" />
			<parameter name="showaddtofavorite" type="Boolean" default-value="true" />
			<parameter name="displayavailability" type="Boolean" default-value="true" />
			<parameter name="displayratingaverage" type="Boolean" default-value="true" />
			<parameter name="showshareblock" type="Boolean" default-value="false" hidden="true" />
			<parameter name="displayproductpicto" type="Boolean" default-value="false" />
			<parameter name="displaysortmenu" type="Boolean" default-value="false" hidden="true" />
			<parameter name="displayCustomerPrice" type="Boolean" default-value="true" />
			<!-- @deprecated -->
			<parameter name="activatequantityselection" type="Boolean" default-value="false" hidden="true" />
			<!-- @deprecated -->
			<parameter name="displayproductdescription" type="Boolean" default-value="false" hidden="true" />
			<!-- @deprecated -->
			<parameter name="useCache" type="Boolean" default-value="false" hidden="true" />		</parameters>
		<xul>
			<javascript>
				<constructor><![CDATA[
					var fields = this.getFields();
					fields.displayMode.replaceItems({cmpref: 'modules_website/blocktemplates', blockModule: 'catalog', blockName: 'Productlist'});
				]]></constructor>
			</javascript>
		</xul>
	</block>
	<block type="modules_brand_DashboardGeneralStatistics" icon="statistics" dashboard="true" />
</blocks><commit_msg>[NEW] Add a popin to add products to cart.<commit_after><?xml version="1.0" encoding="UTF-8"?>
<blocks>
	<block type="modules_brand_brand" icon="brand">
		<parameters>
			<parameter name="showShareBlock" type="Boolean" default-value="true" />
		</parameters>
		<metas>
			<meta name="brandname" allow="title,description" />
			<meta name="branddescription" allow="description" />
		</metas>
	</block>
	<block type="modules_brand_brandList" icon="list-block">
		<parameters>
			<parameter name="topshelf" type="modules_catalog/topshelf" />
			<parameter name="paginated" type="Boolean" default-value="true" />
			<parameter name="itemsPerPage" type="Integer" default-value="20" hidehelp="true" />
			<parameter name="showDetailedList" type="Boolean" default-value="false" />
		</parameters>
		<xul>
			<javascript>
				<constructor><![CDATA[
					var fields = this.getFields();
					var me = this;
					fields['paginated'].addEventListener('fieldChanged', function(event) {me.onDisplaysortmenuChange(event)}, true);
				]]></constructor>
				<method name="onDisplaysortmenuChange">
					<body><![CDATA[
						var fields = this.getFields();
						this.getElementByAnonId('itemsPerPage_cnt').collapsed = !(fields['paginated'].value == 'true');
					]]></body>
				</method>
			</javascript>
		</xul>
	</block>
	<block type="modules_brand_brandProducts" icon="list-block">
		<parameters>
			<parameter name="brand" type="modules_brand/brand" />
			<parameter name="displayMode" type="String" min-occurs="1" default-value="List" fieldtype="dropdownlist" />
			<parameter name="nbresultsperpage" type="Integer" default-value="12" min-occurs="1" />
			<parameter name="sortRandom" type="Boolean" default-value="false" />
			<parameter name="displayaddtocart" type="Boolean" default-value="true" />
			<parameter name="useAddToCartPopin" type="Boolean" default-value="true" />
			<parameter name="showaddtofavorite" type="Boolean" default-value="true" />
			<parameter name="showaddtocomparison" type="Boolean" default-value="true" />
			<parameter name="displayavailability" type="Boolean" default-value="true" />
			<parameter name="displayratingaverage" type="Boolean" default-value="true" />
			<parameter name="showshareblock" type="Boolean" default-value="false" hidden="true" />
			<parameter name="displayproductpicto" type="Boolean" default-value="false" />
			<parameter name="displaysortmenu" type="Boolean" default-value="false" hidden="true" />
			<parameter name="displayCustomerPrice" type="Boolean" default-value="true" />
			<!-- @deprecated -->
			<parameter name="activatequantityselection" type="Boolean" default-value="false" hidden="true" />
			<!-- @deprecated -->
			<parameter name="displayproductdescription" type="Boolean" default-value="false" hidden="true" />
			<!-- @deprecated -->
			<parameter name="useCache" type="Boolean" default-value="false" hidden="true" />
		</parameters>
		<xul>
			<javascript>
				<constructor><![CDATA[
					var fields = this.getFields();
					var me = this;
					fields.displayMode.replaceItems({cmpref: 'modules_website/blocktemplates', blockModule: 'catalog', blockName: 'Productlist'});
					fields.displayaddtocart.addEventListener('fieldChanged', function(event) { me.onDisplayaddtocartChange(); }, true)
					me.addEventListener('gridValuesUpdated', function(event) { me.onDisplayaddtocartChange(); }, true);
				]]></constructor>
				<method name="onDisplayaddtocartChange">
					<body><![CDATA[
						var fields = this.getFields();
						var value = (fields.displayaddtocart.value != 'true');
						this.getElementByAnonId('useAddToCartPopin_cnt').collapsed = value;
					]]></body>
				</method>
			</javascript>
		</xul>
	</block>
	<block type="modules_brand_DashboardGeneralStatistics" icon="statistics" dashboard="true" />
</blocks>
{'fraction_non_alphanumeric': 0.17559135103758525, 'fraction_numerical': 0.00261210274270788, 'mean_word_length': 5.393320964749536, 'pattern_counts': {'":': 0, '<': 134, '<?xml version=': 2, '>': 134, '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': '2709570', 'n_tokens_mistral': 2366, 'n_tokens_neox': 2040, 'n_words': 374}