<commit_before><!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:pe="http://primefaces.org/ui/extensions"
	xmlns:c="http://java.sun.com/jsp/jstl/core">
<h:head>
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<title>#{msg['title']}</title>

	<c:set var="contextPath"
		value="#{facesContext.externalContext.requestContextPath}" />

	<link rel="shortcut icon"
		href="#{resource['pivot4j:images/logo16.png']}" />

	<h:outputStylesheet library="primefaces"
		name="colorpicker/colorpicker.css" />
	<h:outputStylesheet library="pivot4j" name="css/style.css" />

	<h:outputScript library="primefaces" name="printer/printer.js" />
	<h:outputScript library="primefaces" name="colorpicker/colorpicker.js" />
	<h:outputScript library="pivot4j" name="js/colorpicker.js" />
	<h:outputScript library="pivot4j" name="js/codemirror-mode.js" />
	<h:outputScript library="pivot4j" name="js/pivot4j.js" />

	<script type="text/javascript">
		function initLayout() {
			var workbench = PF("workbench");

			if (!workbench.layout) {
				workbench._render();

				var cubeList = PF("cubeList");
				cubeList.render();
			}

			var mdxEditor = PF("mdxEditor");

			if (!mdxEditor.getCodeMirrorInstance()) {
				mdxEditor.render();
			}
		}
	</script>
</h:head>

<f:metadata>
	<f:event type="preRenderView" listener="#{viewHandler.onPreRenderView}" />
	<f:event type="preRenderView"
		listener="#{filterHandler.onPreRenderView}" />
	<f:event type="preRenderView"
		listener="#{chartHandler.onPreRenderView}" />
</f:metadata>

<h:body id="body" styleClass="report">
	<pe:layout id="workbench" fullPage="true"
		options="#{viewHandler.layoutOptions}" widgetVar="workbench">
		<pe:layoutPane id="toolbar-pane" position="north"
			styleClassContent="toolbar-area">
			<h:form id="toolbar-form">
				<p:toolbar id="toolbar">
					<f:facet name="left">
						<p:selectBooleanButton value="#{viewHandler.showParentMembers}"
							title="#{msg['toolbar.parent.tooltip']}"
							onLabel="#{msg['toolbar.parent.hide']}"
							offLabel="#{msg['toolbar.parent.show']}"
							onIcon="ui-icon-arrowthickstop-1-n"
							offIcon="ui-icon-arrowthickstop-1-n"
							disabled="#{!viewHandler.valid}"
							rendered="#{!pivotStateManager.readOnly and viewHandler.visible}">
							<p:ajax listener="#{viewHandler.render}" process="@this"
								update=":grid-form" oncomplete="onViewChanged()" />
						</p:selectBooleanButton>
						<p:selectBooleanButton value="#{viewHandler.hideSpans}"
							title="#{msg['toolbar.spans.tooltip']}"
							onLabel="#{msg['toolbar.spans.show']}"
							offLabel="#{msg['toolbar.spans.hide']}"
							onIcon="ui-icon-circlesmall-minus"
							offIcon="ui-icon-circlesmall-minus"
							disabled="#{!viewHandler.valid}"
							rendered="#{!pivotStateManager.readOnly and viewHandler.visible}">
							<p:ajax listener="#{viewHandler.render}" process="@this"
								update=":grid-form" oncomplete="onViewChanged()" />
						</p:selectBooleanButton>
						<p:selectBooleanButton value="#{viewHandler.nonEmpty}"
							title="#{msg['toolbar.nonEmpty.tooltip']}"
							onLabel="#{msg['toolbar.nonEmpty']}"
							offLabel="#{msg['toolbar.nonEmpty']}"
							onIcon="ui-icon-circlesmall-close"
							offIcon="ui-icon-circlesmall-close"
							disabled="#{!viewHandler.valid}"
							rendered="#{!pivotStateManager.readOnly}">
							<p:ajax listener="#{viewHandler.render}" process="@this"
								update=":grid-form,:editor-form:mdx-editor,:editor-form:editor-toolbar"
								oncomplete="onViewChanged()" />
						</p:selectBooleanButton>
						<p:selectBooleanButton value="#{viewHandler.swapAxes}"
							title="#{msg['toolbar.swap_axes.tooltip']}"
							onLabel="#{msg['toolbar.swap_axes']}"
							offLabel="#{msg['toolbar.swap_axes']}" onIcon="ui-icon-refresh"
							offIcon="ui-icon-refresh" disabled="#{!viewHandler.valid}"
							rendered="#{!pivotStateManager.readOnly}">
							<p:ajax listener="#{viewHandler.render}" process="@this"
								update=":grid-form,:editor-form:mdx-editor,:editor-form:editor-toolbar,:target-tree-form"
								oncomplete="onViewChanged()" />
						</p:selectBooleanButton>
						<p:separator rendered="#{!pivotStateManager.readOnly}" />
						<p:menuButton id="drill-mode" value="#{msg['toolbar.drill']}"
							disabled="#{!viewHandler.valid}"
							rendered="#{!pivotStateManager.readOnly and viewHandler.visible}">
							<p:menuitem value="#{msg['toolbar.drill.position']}"
								title="#{msg['toolbar.drill.position.tooltip']}"
								icon="#{viewHandler.drillDownMode=='position'?'ui-icon-check':'ui-icon-none'}"
								update=":grid-form,drill-mode" action="#{viewHandler.render}"
								process="@this" oncomplete="onViewChanged()">
								<f:setPropertyActionListener
									target="#{viewHandler.drillDownMode}" value="position" />
							</p:menuitem>
							<p:menuitem value="#{msg['toolbar.drill.member']}"
								title="#{msg['toolbar.drill.member.tooltip']}"
								icon="#{viewHandler.drillDownMode=='member'?'ui-icon-check':'ui-icon-none'}"
								update=":grid-form,drill-mode" action="#{viewHandler.render}"
								process="@this" oncomplete="onViewChanged()">
								<f:setPropertyActionListener
									target="#{viewHandler.drillDownMode}" value="member" />
							</p:menuitem>
							<p:menuitem value="#{msg['toolbar.drill.replace']}"
								title="#{msg['toolbar.drill.replace.tooltip']}"
								icon="#{viewHandler.drillDownMode=='replace'?'ui-icon-check':'ui-icon-none'}"
								update=":grid-form,drill-mode" action="#{viewHandler.render}"
								process="@this" oncomplete="onViewChanged()">
								<f:setPropertyActionListener
									target="#{viewHandler.drillDownMode}" value="replace" />
							</p:menuitem>
							<p:separator />
							<p:menuitem value="#{msg['toolbar.drill.through']}" 
								title="#{msg['toolbar.drill.through.tooltip']}"
								icon="#{viewHandler.drillThrough?'ui-icon-check':'ui-icon-none'}"
								disabled="#{!viewHandler.valid or !pivotStateManager.model.cube.drillThroughEnabled}"
								update=":toolbar-form,:grid-form,:growl"
								process="@this"
								oncomplete="onViewChanged()" 
								action="#{viewHandler.toggleDrillThrough}" />
						</p:menuButton>
						<p:selectBooleanButton value="#{viewHandler.scenarioEnabled}"
							title="#{msg['toolbar.scenario.tooltip']}"
							onLabel="#{msg['toolbar.scenario']}"
							offLabel="#{msg['toolbar.scenario']}"
							disabled="#{!viewHandler.valid or !pivotStateManager.model.scenarioSupported}"
							rendered="#{!pivotStateManager.readOnly and viewHandler.visible}">
							<p:ajax listener="#{viewHandler.render}" process="@this"
								update=":grid-form" />
						</p:selectBooleanButton>
						<p:separator
							rendered="#{!pivotStateManager.readOnly and viewHandler.visible}" />
						<p:commandButton value="#{msg['toolbar.properties']}"
							title="#{msg['toolbar.properties.tooltip']}" type="button"
							icon="ui-icon-gear" disabled="#{!viewHandler.valid}"
							rendered="#{!pivotStateManager.readOnly and viewHandler.visible}"
							onclick="PF('propertiesConfig').show(); return false;" />
						<p:commandButton value="#{msg['toolbar.aggregation']}"
							title="#{msg['toolbar.aggregation.tooltip']}"
							icon="ui-icon-calculator" update=":aggregation-form"
							process=":aggregation-form"
							oncomplete="PF('aggregationConfig').show();"
							disabled="#{!viewHandler.valid}"
							rendered="#{!pivotStateManager.readOnly and viewHandler.visible}" />
						<p:menuButton id="charts" value="#{msg['label.chart']}"<commit_msg>Hide 'Enable Scenario' button when it is not supported<commit_after><!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:pe="http://primefaces.org/ui/extensions"
	xmlns:c="http://java.sun.com/jsp/jstl/core">
<h:head>
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<title>#{msg['title']}</title>

	<c:set var="contextPath"
		value="#{facesContext.externalContext.requestContextPath}" />

	<link rel="shortcut icon"
		href="#{resource['pivot4j:images/logo16.png']}" />

	<h:outputStylesheet library="primefaces"
		name="colorpicker/colorpicker.css" />
	<h:outputStylesheet library="pivot4j" name="css/style.css" />

	<h:outputScript library="primefaces" name="printer/printer.js" />
	<h:outputScript library="primefaces" name="colorpicker/colorpicker.js" />
	<h:outputScript library="pivot4j" name="js/colorpicker.js" />
	<h:outputScript library="pivot4j" name="js/codemirror-mode.js" />
	<h:outputScript library="pivot4j" name="js/pivot4j.js" />

	<script type="text/javascript">
		function initLayout() {
			var workbench = PF("workbench");

			if (!workbench.layout) {
				workbench._render();

				var cubeList = PF("cubeList");
				cubeList.render();
			}

			var mdxEditor = PF("mdxEditor");

			if (!mdxEditor.getCodeMirrorInstance()) {
				mdxEditor.render();
			}
		}
	</script>
</h:head>

<f:metadata>
	<f:event type="preRenderView" listener="#{viewHandler.onPreRenderView}" />
	<f:event type="preRenderView"
		listener="#{filterHandler.onPreRenderView}" />
	<f:event type="preRenderView"
		listener="#{chartHandler.onPreRenderView}" />
</f:metadata>

<h:body id="body" styleClass="report">
	<pe:layout id="workbench" fullPage="true"
		options="#{viewHandler.layoutOptions}" widgetVar="workbench">
		<pe:layoutPane id="toolbar-pane" position="north"
			styleClassContent="toolbar-area">
			<h:form id="toolbar-form">
				<p:toolbar id="toolbar">
					<f:facet name="left">
						<p:selectBooleanButton value="#{viewHandler.showParentMembers}"
							title="#{msg['toolbar.parent.tooltip']}"
							onLabel="#{msg['toolbar.parent.hide']}"
							offLabel="#{msg['toolbar.parent.show']}"
							onIcon="ui-icon-arrowthickstop-1-n"
							offIcon="ui-icon-arrowthickstop-1-n"
							disabled="#{!viewHandler.valid}"
							rendered="#{!pivotStateManager.readOnly and viewHandler.visible}">
							<p:ajax listener="#{viewHandler.render}" process="@this"
								update=":grid-form" oncomplete="onViewChanged()" />
						</p:selectBooleanButton>
						<p:selectBooleanButton value="#{viewHandler.hideSpans}"
							title="#{msg['toolbar.spans.tooltip']}"
							onLabel="#{msg['toolbar.spans.show']}"
							offLabel="#{msg['toolbar.spans.hide']}"
							onIcon="ui-icon-circlesmall-minus"
							offIcon="ui-icon-circlesmall-minus"
							disabled="#{!viewHandler.valid}"
							rendered="#{!pivotStateManager.readOnly and viewHandler.visible}">
							<p:ajax listener="#{viewHandler.render}" process="@this"
								update=":grid-form" oncomplete="onViewChanged()" />
						</p:selectBooleanButton>
						<p:selectBooleanButton value="#{viewHandler.nonEmpty}"
							title="#{msg['toolbar.nonEmpty.tooltip']}"
							onLabel="#{msg['toolbar.nonEmpty']}"
							offLabel="#{msg['toolbar.nonEmpty']}"
							onIcon="ui-icon-circlesmall-close"
							offIcon="ui-icon-circlesmall-close"
							disabled="#{!viewHandler.valid}"
							rendered="#{!pivotStateManager.readOnly}">
							<p:ajax listener="#{viewHandler.render}" process="@this"
								update=":grid-form,:editor-form:mdx-editor,:editor-form:editor-toolbar"
								oncomplete="onViewChanged()" />
						</p:selectBooleanButton>
						<p:selectBooleanButton value="#{viewHandler.swapAxes}"
							title="#{msg['toolbar.swap_axes.tooltip']}"
							onLabel="#{msg['toolbar.swap_axes']}"
							offLabel="#{msg['toolbar.swap_axes']}" onIcon="ui-icon-refresh"
							offIcon="ui-icon-refresh" disabled="#{!viewHandler.valid}"
							rendered="#{!pivotStateManager.readOnly}">
							<p:ajax listener="#{viewHandler.render}" process="@this"
								update=":grid-form,:editor-form:mdx-editor,:editor-form:editor-toolbar,:target-tree-form"
								oncomplete="onViewChanged()" />
						</p:selectBooleanButton>
						<p:separator rendered="#{!pivotStateManager.readOnly}" />
						<p:menuButton id="drill-mode" value="#{msg['toolbar.drill']}"
							disabled="#{!viewHandler.valid}"
							rendered="#{!pivotStateManager.readOnly and viewHandler.visible}">
							<p:menuitem value="#{msg['toolbar.drill.position']}"
								title="#{msg['toolbar.drill.position.tooltip']}"
								icon="#{viewHandler.drillDownMode=='position'?'ui-icon-check':'ui-icon-none'}"
								update=":grid-form,drill-mode" action="#{viewHandler.render}"
								process="@this" oncomplete="onViewChanged()">
								<f:setPropertyActionListener
									target="#{viewHandler.drillDownMode}" value="position" />
							</p:menuitem>
							<p:menuitem value="#{msg['toolbar.drill.member']}"
								title="#{msg['toolbar.drill.member.tooltip']}"
								icon="#{viewHandler.drillDownMode=='member'?'ui-icon-check':'ui-icon-none'}"
								update=":grid-form,drill-mode" action="#{viewHandler.render}"
								process="@this" oncomplete="onViewChanged()">
								<f:setPropertyActionListener
									target="#{viewHandler.drillDownMode}" value="member" />
							</p:menuitem>
							<p:menuitem value="#{msg['toolbar.drill.replace']}"
								title="#{msg['toolbar.drill.replace.tooltip']}"
								icon="#{viewHandler.drillDownMode=='replace'?'ui-icon-check':'ui-icon-none'}"
								update=":grid-form,drill-mode" action="#{viewHandler.render}"
								process="@this" oncomplete="onViewChanged()">
								<f:setPropertyActionListener
									target="#{viewHandler.drillDownMode}" value="replace" />
							</p:menuitem>
							<p:separator />
							<p:menuitem value="#{msg['toolbar.drill.through']}" 
								title="#{msg['toolbar.drill.through.tooltip']}"
								icon="#{viewHandler.drillThrough?'ui-icon-check':'ui-icon-none'}"
								disabled="#{!viewHandler.valid or !pivotStateManager.model.cube.drillThroughEnabled}"
								update=":toolbar-form,:grid-form,:growl"
								process="@this"
								oncomplete="onViewChanged()" 
								action="#{viewHandler.toggleDrillThrough}" />
						</p:menuButton>
						<p:selectBooleanButton value="#{viewHandler.scenarioEnabled}"
							title="#{msg['toolbar.scenario.tooltip']}"
							onLabel="#{msg['toolbar.scenario']}"
							offLabel="#{msg['toolbar.scenario']}"
							rendered="#{!pivotStateManager.readOnly and viewHandler.visible and viewHandler.valid and pivotStateManager.model.scenarioSupported}">
							<p:ajax listener="#{viewHandler.render}" process="@this"
								update=":grid-form" />
						</p:selectBooleanButton>
						<p:separator
							rendered="#{!pivotStateManager.readOnly and viewHandler.visible}" />
						<p:commandButton value="#{msg['toolbar.properties']}"
							title="#{msg['toolbar.properties.tooltip']}" type="button"
							icon="ui-icon-gear" disabled="#{!viewHandler.valid}"
							rendered="#{!pivotStateManager.readOnly and viewHandler.visible}"
							onclick="PF('propertiesConfig').show(); return false;" />
						<p:commandButton value="#{msg['toolbar.aggregation']}"
							title="#{msg['toolbar.aggregation.tooltip']}"
							icon="ui-icon-calculator" update=":aggregation-form"
							process=":aggregation-form"
							oncomplete="PF('aggregationConfig').show();"
							disabled="#{!viewHandler.valid}"
							rendered="#{!pivotStateManager.readOnly and viewHandler.visible}" />
						<p:menuButton id="charts" value="#{msg['label.chart']}"
{'fraction_non_alphanumeric': 0.19200309059300755, 'fraction_numerical': 0.0019316206297083252, 'mean_word_length': 4.346643717728055, 'pattern_counts': {'":': 22, '<': 127, '<?xml version=': 0, '>': 125, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 14}, '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': '5315511', 'n_tokens_mistral': 6467, 'n_tokens_neox': 4955, 'n_words': 532}