<commit_before><?xml version="1.0" encoding="UTF-8" standalone="no"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:ox="http://xmlns.jcp.org/jsf/composite/ox"
	xmlns:b="http://bootsfaces.net/ui"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
	template="/WEB-INF/incl/layout/newtemplate.xhtml">
	<f:metadata>
		<f:viewAction
			action="#{permissionService.requestPermission('configuration', 'access')}" />
		<f:viewAction action="#{conversationService.initConversation}" />
		<f:viewAction action="#{jsonConfigAction.init}" onPostback="false" />
	</f:metadata>

	<ui:define name="head">
		<script
			src="#{oxTrustConfigurationService.jsLocation}/jsoneditor.min.js"
			type="text/javascript" />
		<script>
			// Set the default CSS theme and icon library globally
			JSONEditor.defaults.theme = 'bootstrap3';
			JSONEditor.defaults.iconlib = 'bootstrap3';
		</script>
	</ui:define>

	<ui:define name="body">

		<section class="content-header">
			<h1 style="color: #333;">
				#{msgs['updateConfiguration.configuration']} <small> <i
					class="fa fa-caret-right" style="color: #333 !important;" />#{msgs['updateConfiguration.jsonConfiguration']}
				</small>
			</h1>
			<ol class="breadcrumb">
				<li><a href="#{request.contextPath}/home.htm"> <i
						class="fa fa-home" />
				</a></li>
				<li class="organization/configuration"><a
					href="#{request.contextPath}/configuration/updateConfiguration.htm">#{msgs['updateConfiguration.jsonConfiguration']}</a>
				</li>
			</ol>
		</section>

		<section class="content">
			<!-- BODY TAB PANEL STARTS FROM HERE -->
			<div class="row">
				<div class="col-xs-12">
					<div class="nav-tabs-custom" style="margin-bottom: 0px;">
						<ul class="nav nav-tabs" id="jsonconfigurationformtab">

							<li class="active"><a data-toggle="tab"
								href="#oxtrust-config">#{msgs['updateConfiguration.oxTrustConfiguration']}</a>
							</li>
							<li><a data-toggle="tab" href="#oxauth-config">#{msgs['updateConfiguration.oxAuthConfiguration']}</a>
							</li>
							<li><a data-toggle="tab" href="#fido2-config">#{msgs['updateConfiguration.fido2Configuration']}</a>
							</li>
							<li><a data-toggle="tab" href="#cached-config">#{msgs['updateConfiguration.memcachedConfiguration']}</a>
							</li>
							<li><a data-toggle="tab" href="#store-config">#{msgs['updateConfiguration.storeConfiguration']}</a>
							</li>
							<li><a data-toggle="tab"
								href="#oxtrust-import-person-config">#{msgs['updateConfiguration.oxTrustImportConfiguration']}</a>
							</li>

						</ul>
						<div class="tab-content">
							<!-- System Configuration -->
							<div class="tab-pane active" id="oxtrust-config">
								<h:panelGrid border="0" cellpadding="0" cellspacing="0"
									columnClasses="alignTop" columns="1" width="100%">
									<h:form id="oxTrustConfigForm" prependId="false">
										<ui:decorate id="oxTrust" prependId="false"
											template="/WEB-INF/incl/layout/jsoneditor.xhtml">
											<ui:param name="id" value="oxTrustConfig" />
											<ui:param name="parentId" value="oxTrust" />
											<ui:param name="json"
												value="#{jsonConfigAction.oxTrustConfigJson}" />
											<ui:param name="jsonSchema"
												value="#{request.contextPath}/schema/oxtrust.properties.json" />
											<ui:param name="saveBtnId" value="saveOxTrustConfigBtn" />
											<ui:param name="saveBtnLabel"
												value="#{msgs['updateConfiguration.saveConfiguration']}" />
										</ui:decorate>
										<p:spacer width="10" height="10" />
										<h:commandButton
											action="#{jsonConfigAction.saveOxTrustConfigJson}"
											id="saveOxTrustConfigBtn" prependId="false"
											style="display:none" styleClass="btn btn-primary"
											value="#{msgs['updateConfiguration.saveOxTrustConfiguration']}" />
									</h:form>
								</h:panelGrid>
							</div>

							<div class="tab-pane" id="oxauth-config">
								<h:panelGrid border="0" cellpadding="0" cellspacing="0"
									columnClasses="alignTop" columns="1" width="100%">
									<h:form id="oxAuthConfigForm" prependId="false">
										<ui:decorate id="oxAuth"
											template="/WEB-INF/incl/layout/jsoneditor.xhtml">
											<ui:param name="id" value="oxAuthConfig" />
											<ui:param name="parentId" value="oxAuth" />
											<ui:param name="json"
												value="#{jsonConfigAction.oxAuthDynamicConfigJson}" />
											<ui:param name="jsonSchema"
												value="#{request.contextPath}/schema/oxauth-config.xml.json" />
											<ui:param name="saveBtnId" value="saveOxAuthConfigBtn" />
											<ui:param name="saveBtnLabel"
												value="#{msgs['updateConfiguration.saveConfiguration']}" />
										</ui:decorate>
										<p:spacer width="10" height="10" />
										<h:commandButton
											action="#{jsonConfigAction.saveOxAuthDynamicConfigJson}"
											id="saveOxAuthConfigBtn" prependId="false"
											style="display:none" styleClass="btn btn-primary"
											value="#{msgs['updateConfiguration.saveOxAuthConfiguration']}" />
									</h:form>
								</h:panelGrid>
							</div>

							<div class="tab-pane" id="fido2-config">
								<h:panelGrid border="0" cellpadding="0" cellspacing="0"
									columnClasses="alignTop" columns="1" width="100%">
									<h:form id="fido2ConfigForm" prependId="false">
										<ui:decorate id="fido2"
											template="/WEB-INF/incl/layout/jsoneditor.xhtml">
											<ui:param name="id" value="fido2Config" />
											<ui:param name="parentId" value="fido2" />
											<ui:param name="json"
												value="#{jsonConfigAction.fido2ConfigJson}" />
											<ui:param name="jsonSchema"
												value="#{request.contextPath}/schema/fido2-config.json" />
											<ui:param name="saveBtnId" value="saveFido2ConfigBtn" />
											<ui:param name="saveBtnLabel"
												value="#{msgs['updateConfiguration.saveConfiguration']}" />
										</ui:decorate>
										<p:spacer width="10" height="10" />
										<h:commandButton
											action="#{jsonConfigAction.saveFido2ConfigJson}"
											id="saveFido2ConfigBtn" prependId="false"
											style="display:none" styleClass="btn btn-primary"
											value="#{msgs['updateConfiguration.saveFido2Configuration']}" />
									</h:form>
								</h:panelGrid>
							</div>

							<div class="tab-pane" id="oxtrust-import-person-config">
								<h:panelGrid border="0" cellpadding="0" cellspacing="0"
									columnClasses="alignTop" columns="1" width="100%">
									<h:form id="oxTrustImportPersonConfigForm" prependId="false">
										<ui:decorate id="oxTrustImportPerson" prependId="false"
											template="/WEB-INF/incl/layout/jsoneditor.xhtml">
											<ui:param name="id" value="oxTrustImportPersonConfig" />
											<ui:param name="parentId" value="oxTrustImportPerson" />
											<ui:param name="json"
												value="#{jsonConfigAction.oxTrustImportPersonConfigJson}" />
											<ui:param name="jsonSchema"
												value="#{request.contextPath}/schema/oxtrust-import-person.json" />
											<ui:param name="saveBtnId"
												value="saveOxTrustImportPersonConfigBtn" />
											<ui:param name="saveBtnLabel"
												value="#{msgs['updateConfiguration.saveConfiguration']}" />
										</ui:decorate>
										<p:spacer width="10" height="10" />
										<h:commandButton
											action="#{jsonConfigAction.saveOxTrustImportPersonConfigJson}"
											id="saveOxTrustImportPersonConfigBtn" prependId="false"
											style="display:none" styleClass="btn btn-primary"
											value="#{msgs['updateConfiguration.saveOxTrustImportPersonConfiguration']}" />
									</h:form>
								</h:panelGrid>
							</div>

							<div class="tab-pane" id="cached-config">
								<h:panelGrid border="0" cellpadding="0" cellspacing="0"
									columnClasses="alignTop" columns="1" width="100%">
									<div style="text-align: center;">
									<b:label severity="warning" style="align:center"
										text="oxauth/oxtrust restart is required if cache connection settings are changed." />
									</div>	
									<h:form id="oxMemCacheConfigForm" prependId="false">
										<ui:decorate id="oxMemcache"
											template="/WEB-INF/incl/layout/jsoneditor.xhtml">
											<ui:param name="id" value="oxMemcacheConfig" />
											<ui:param name="parentId" value="oxMemcache" />
											<ui:param name="json"
												value="#{jsonConfigAction.cacheConfigurationJson}" />
											<ui:param name="jsonSchema"
												value="#{request.contextPath}/schema/oxmemcache-config.json" />
											<ui:param name="saveBtnId" value="saveOxMemcacheConfigBtn" />
											<ui:param name="saveBtnLabel"
												value="#{msgs['updateConfiguration.saveConfiguration']}" />
										</ui:decorate>
										<p:spacer width="10" height="10" />
										<h:commandButton
											action="#{jsonConfigAction.saveOxMemCacheConfigJson}"
											id="saveOxMemcacheConfigBtn" prependId="false"
											style="display:none" styleClass="btn btn-primary"
											value="#{msgs['updateConfiguration.saveMemCacheConfiguration']}" />
									</h:form>
								</h:panelGrid>
							</div>

							<div class="tab-pane" id="store-config">
								<h:panelGrid border="0" cellpadding="0" cellspacing="0"
									columnClasses="alignTop" columns="1" width="100%">
									<div style="text-align: center;">
									<b:label severity="warning" style="align:center"
										text="oxauth/oxtrust restart is required if store connection settings are changed." />
									</div>	
									<h:form id="storeConfigForm" prependId="false">
										<ui:decorate id="oxStore"
											template="/WEB-INF/incl/layout/jsoneditor.xhtml">
											<ui:param name="id" value="oxStoreConfig" />
											<ui:param name="parentId" value="oxStore" />
											<ui:param name="json"
												value="#{jsonConfigAction.storeConfigurationJson}" />
											<ui:param name="jsonSchema"
												value="#{request.contextPath}/schema/oxstore-config.json" />
											<ui:param name="saveBtnId" value="saveOxStoreConfigBtn" />
											<ui:param name="saveBtnLabel"
												value="#{msgs['updateConfiguration.saveConfiguration']}" />
										</ui:decorate>
										<p:spacer width="10" height="10" />
										<h:commandButton
											action="#{jsonConfigAction.saveStoreConfigJson}"
											id="saveOxStoreConfigBtn" prependId="false"
											style="display:none" styleClass="btn btn-primary"
											value="#{msgs['updateConfiguration.saveStoreConfiguration']}" />
									</h:form>
								</h:panelGrid>
							</div>
						</div>
					</div>
					<script>
						$('#jsonconfigurationformtab a').click(function(e) {
							e.preventDefault();
							$(this).tab('show');
						});

						// store the currently selected tab in the local storage
						$("ul.nav-tabs > li > a")
								.on(
										"shown.bs.tab",
										function(e) {<commit_msg>buttons in json configuration ? #2003<commit_after><?xml version="1.0" encoding="UTF-8" standalone="no"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:ox="http://xmlns.jcp.org/jsf/composite/ox"
	xmlns:b="http://bootsfaces.net/ui" xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
	template="/WEB-INF/incl/layout/newtemplate.xhtml">
	<f:metadata>
		<f:viewAction
			action="#{permissionService.requestPermission('configuration', 'access')}" />
		<f:viewAction action="#{conversationService.initConversation}" />
		<f:viewAction action="#{jsonConfigAction.init}" onPostback="false" />
	</f:metadata>

	<ui:define name="head">
		<script
			src="#{oxTrustConfigurationService.jsLocation}/jsoneditor.min.js"
			type="text/javascript" />
		<script>
			// Set the default CSS theme and icon library globally
			JSONEditor.defaults.theme = 'bootstrap3';
			JSONEditor.defaults.iconlib = 'bootstrap3';
		</script>
	</ui:define>

	<ui:define name="body">

		<section class="content-header">
			<h1 style="color: #333;">
				#{msgs['updateConfiguration.configuration']} <small> <i
					class="fa fa-caret-right" style="color: #333 !important;" />#{msgs['updateConfiguration.jsonConfiguration']}
				</small>
			</h1>
			<ol class="breadcrumb">
				<li><a href="#{request.contextPath}/home.htm"> <i
						class="fa fa-home" />
				</a></li>
				<li class="organization/configuration"><a
					href="#{request.contextPath}/configuration/updateConfiguration.htm">#{msgs['updateConfiguration.jsonConfiguration']}</a>
				</li>
			</ol>
		</section>

		<section class="content">
			<!-- BODY TAB PANEL STARTS FROM HERE -->
			<div class="row">
				<div class="col-xs-12">
					<div class="nav-tabs-custom" style="margin-bottom: 0px;">
						<ul class="nav nav-tabs" id="jsonconfigurationformtab">

							<li class="active"><a data-toggle="tab"
								href="#oxtrust-config">#{msgs['updateConfiguration.oxTrustConfiguration']}</a>
							</li>
							<li><a data-toggle="tab" href="#oxauth-config">#{msgs['updateConfiguration.oxAuthConfiguration']}</a>
							</li>
							<li><a data-toggle="tab" href="#fido2-config">#{msgs['updateConfiguration.fido2Configuration']}</a>
							</li>
							<li><a data-toggle="tab" href="#cached-config">#{msgs['updateConfiguration.memcachedConfiguration']}</a>
							</li>
							<li><a data-toggle="tab" href="#store-config">#{msgs['updateConfiguration.storeConfiguration']}</a>
							</li>
							<li><a data-toggle="tab"
								href="#oxtrust-import-person-config">#{msgs['updateConfiguration.oxTrustImportConfiguration']}</a>
							</li>

						</ul>
						<div class="tab-content">
							<!-- System Configuration -->
							<div class="tab-pane active" id="oxtrust-config">
								<h:panelGrid border="0" cellpadding="0" cellspacing="0"
									columnClasses="alignTop" columns="1" width="100%">
									<h:form id="oxTrustConfigForm" prependId="false">
										<ui:decorate id="oxTrust" prependId="false"
											template="/WEB-INF/incl/layout/jsoneditor.xhtml">
											<ui:param name="id" value="oxTrustConfig" />
											<ui:param name="parentId" value="oxTrust" />
											<ui:param name="json"
												value="#{jsonConfigAction.oxTrustConfigJson}" />
											<ui:param name="jsonSchema"
												value="#{request.contextPath}/schema/oxtrust.properties.json" />
											<ui:param name="saveBtnId" value="saveOxTrustConfigBtn" />
											<ui:param name="saveBtnLabel"
												value="#{msgs['updateConfiguration.saveConfiguration']}" />
										</ui:decorate>
										<p:spacer width="10" height="10" />
										<h:commandButton
											action="#{jsonConfigAction.saveOxTrustConfigJson}"
											id="saveOxTrustConfigBtn" prependId="false"
											style="display:none;margin-top: 5px;"
											styleClass="btn btn-primary"
											value="#{msgs['updateConfiguration.saveOxTrustConfiguration']}" />
									</h:form>
								</h:panelGrid>
							</div>

							<div class="tab-pane" id="oxauth-config">
								<h:panelGrid border="0" cellpadding="0" cellspacing="0"
									columnClasses="alignTop" columns="1" width="100%">
									<h:form id="oxAuthConfigForm" prependId="false">
										<ui:decorate id="oxAuth"
											template="/WEB-INF/incl/layout/jsoneditor.xhtml">
											<ui:param name="id" value="oxAuthConfig" />
											<ui:param name="parentId" value="oxAuth" />
											<ui:param name="json"
												value="#{jsonConfigAction.oxAuthDynamicConfigJson}" />
											<ui:param name="jsonSchema"
												value="#{request.contextPath}/schema/oxauth-config.xml.json" />
											<ui:param name="saveBtnId" value="saveOxAuthConfigBtn" />
											<ui:param name="saveBtnLabel"
												value="#{msgs['updateConfiguration.saveConfiguration']}" />
										</ui:decorate>
										<p:spacer width="10" height="10" />
										<h:commandButton
											action="#{jsonConfigAction.saveOxAuthDynamicConfigJson}"
											id="saveOxAuthConfigBtn" prependId="false"
											style="display:none;margin-top: 5px;"
											styleClass="btn btn-primary"
											value="#{msgs['updateConfiguration.saveOxAuthConfiguration']}" />
									</h:form>
								</h:panelGrid>
							</div>

							<div class="tab-pane" id="fido2-config">
								<h:panelGrid border="0" cellpadding="0" cellspacing="0"
									columnClasses="alignTop" columns="1" width="100%">
									<h:form id="fido2ConfigForm" prependId="false">
										<ui:decorate id="fido2"
											template="/WEB-INF/incl/layout/jsoneditor.xhtml">
											<ui:param name="id" value="fido2Config" />
											<ui:param name="parentId" value="fido2" />
											<ui:param name="json"
												value="#{jsonConfigAction.fido2ConfigJson}" />
											<ui:param name="jsonSchema"
												value="#{request.contextPath}/schema/fido2-config.json" />
											<ui:param name="saveBtnId" value="saveFido2ConfigBtn" />
											<ui:param name="saveBtnLabel"
												value="#{msgs['updateConfiguration.saveConfiguration']}" />
										</ui:decorate>
										<p:spacer width="10" height="10" />
										<h:commandButton
											action="#{jsonConfigAction.saveFido2ConfigJson}"
											id="saveFido2ConfigBtn" prependId="false"
											style="display:none;margin-top: 5px;"
											styleClass="btn btn-primary"
											value="#{msgs['updateConfiguration.saveFido2Configuration']}" />
									</h:form>
								</h:panelGrid>
							</div>

							<div class="tab-pane" id="oxtrust-import-person-config">
								<h:panelGrid border="0" cellpadding="0" cellspacing="0"
									columnClasses="alignTop" columns="1" width="100%">
									<h:form id="oxTrustImportPersonConfigForm" prependId="false">
										<ui:decorate id="oxTrustImportPerson" prependId="false"
											template="/WEB-INF/incl/layout/jsoneditor.xhtml">
											<ui:param name="id" value="oxTrustImportPersonConfig" />
											<ui:param name="parentId" value="oxTrustImportPerson" />
											<ui:param name="json"
												value="#{jsonConfigAction.oxTrustImportPersonConfigJson}" />
											<ui:param name="jsonSchema"
												value="#{request.contextPath}/schema/oxtrust-import-person.json" />
											<ui:param name="saveBtnId"
												value="saveOxTrustImportPersonConfigBtn" />
											<ui:param name="saveBtnLabel"
												value="#{msgs['updateConfiguration.saveConfiguration']}" />
										</ui:decorate>
										<p:spacer width="10" height="10" />
										<h:commandButton
											action="#{jsonConfigAction.saveOxTrustImportPersonConfigJson}"
											id="saveOxTrustImportPersonConfigBtn" prependId="false"
											style="display:none;margin-top: 5px;"
											styleClass="btn btn-primary"
											value="#{msgs['updateConfiguration.saveOxTrustImportPersonConfiguration']}" />
									</h:form>
								</h:panelGrid>
							</div>

							<div class="tab-pane" id="cached-config">
								<h:panelGrid border="0" cellpadding="0" cellspacing="0"
									columnClasses="alignTop" columns="1" width="100%">
									<div style="text-align: center;">
										<b:label severity="warning" style="align:center"
											text="oxauth/oxtrust restart is required if cache connection settings are changed." />
									</div>
									<h:form id="oxMemCacheConfigForm" prependId="false">
										<ui:decorate id="oxMemcache"
											template="/WEB-INF/incl/layout/jsoneditor.xhtml">
											<ui:param name="id" value="oxMemcacheConfig" />
											<ui:param name="parentId" value="oxMemcache" />
											<ui:param name="json"
												value="#{jsonConfigAction.cacheConfigurationJson}" />
											<ui:param name="jsonSchema"
												value="#{request.contextPath}/schema/oxmemcache-config.json" />
											<ui:param name="saveBtnId" value="saveOxMemcacheConfigBtn" />
											<ui:param name="saveBtnLabel"
												value="#{msgs['updateConfiguration.saveConfiguration']}" />
										</ui:decorate>
										<p:spacer width="10" height="10" />
										<h:commandButton
											action="#{jsonConfigAction.saveOxMemCacheConfigJson}"
											id="saveOxMemcacheConfigBtn" prependId="false"
											style="display:none; margin-top: 5px;"
											styleClass="btn btn-primary"
											value="#{msgs['updateConfiguration.saveMemCacheConfiguration']}" />
									</h:form>
								</h:panelGrid>
							</div>

							<div class="tab-pane" id="store-config">
								<h:panelGrid border="0" cellpadding="0" cellspacing="0"
									columnClasses="alignTop" columns="1" width="100%">
									<div style="text-align: center;">
										<b:label severity="warning" style="align:center"
											text="oxauth/oxtrust restart is required if store connection settings are changed." />
									</div>
									<h:form id="storeConfigForm" prependId="false">
										<ui:decorate id="oxStore"
											template="/WEB-INF/incl/layout/jsoneditor.xhtml">
											<ui:param name="id" value="oxStoreConfig" />
											<ui:param name="parentId" value="oxStore" />
											<ui:param name="json"
												value="#{jsonConfigAction.storeConfigurationJson}" />
											<ui:param name="jsonSchema"
												value="#{request.contextPath}/schema/oxstore-config.json" />
											<ui:param name="saveBtnId" value="saveOxStoreConfigBtn" />
											<ui:param name="saveBtnLabel"
												value="#{msgs['updateConfiguration.saveConfiguration']}" />
										</ui:decorate>
										<p:spacer width="10" height="10" />
										<h:commandButton
											action="#{jsonConfigAction.saveStoreConfigJson}"
											id="saveOxStoreConfigBtn" prependId="false"
											style="display:none; margin-top: 5px;"
											styleClass="btn btn-primary"
											value="#{msgs['updateConfiguration.saveStoreConfiguration']}" />
									</h:form>
								</h:panelGrid>
							</div>
						</div>
					</div>
					<script>
						$('#jsonconfigurationformtab a').click(function(e) {
							e.preventDefault();
							$(this).tab('show');
						});

						// store the currently selected tab in the local storage
						$("ul.nav-tabs > li > a")
								.on(
										"shown.bs.tab",
										function(e) {
{'fraction_non_alphanumeric': 0.16627416129748945, 'fraction_numerical': 0.00933125972006221, 'mean_word_length': 2.9039028620988727, 'pattern_counts': {'":': 0, '<': 341, '<?xml version=': 2, '>': 345, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 26}, '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': '1086908', 'n_tokens_mistral': 10438, 'n_tokens_neox': 6951, 'n_words': 970}