<commit_before><html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
	xmlns:f="http://xmlns.jcp.org/jsf/core">
<ui:composition template="/template.xhtml">

	<ui:param name="title" value="configuration" />

	<ui:define name="content">
	
		<h:form id="formConfiguration">

<!-- fix for chrome, because autocomplete="off" isn't working -->
<!-- http://stackoverflow.com/questions/12374442/chrome-browser-ignoring-autocomplete-off -->
<input style="display:none"/>
<input type="password" style="display:none"/>

			<p:messages />
			
			<p:commandButton value="save" action="#{configurationController.save()}" update="formConfiguration" style="padding:5px;margin:15px;font-size:24px;background-color:#00E800" />
			<br />

			<p:fieldset legend="login" toggleable="true" collapsed="false" styleClass="configurationFieldset">
				<p:panelGrid columns="3" columnClasses="configurationGridCol1,configurationGridCol2" styleClass="tableNoBorder">

					admin username:
					<p:inputText value="#{configurationController.configuration.adminUsername}" styleClass="username" autocomplete="off" />
					<h:outputText value="" />
				
					admin password:
					<p:password value="#{configurationController.configuration.adminPassword}" styleClass="password" autocomplete="off" />
					<h:outputText value="" />

				</p:panelGrid>
			</p:fieldset>
			
			<br />
			
			<p:fieldset legend="email" toggleable="true" collapsed="true" styleClass="configurationFieldset">
				<p:panelGrid columns="3" columnClasses="configurationGridCol1,configurationGridCol2" styleClass="tableNoBorder">
				
					email from:
					<p:inputText value="#{configurationController.configuration.emailFrom}" binding="#{emailFrom}" />
					<h:outputText value="" />

					email to:
					<p:inputText value="#{configurationController.configuration.adminEmail}" binding="#{adminEmail}" />
					<h:outputText value="" />

					send emails:
					<p:selectBooleanCheckbox value="#{configurationController.configuration.sendEmails}" />
					<h:outputText value="In order to send emails, this checkbox must be checked!!!" />

					<h:outputText value="" />
					<p:panelGrid>
						<h3>load defaults for:</h3>
						<p:commandButton value="localhost" action="#{configurationController.loadDefaultsLocalhost()}" update="formConfiguration" />
						<br />
						<br />
						<p:commandButton value="mandrillapp" action="#{configurationController.loadDefaultsMandrillapp()}" update="formConfiguration" />
						<br />
						<br />
						<p:commandButton value="gmail" action="#{configurationController.loadDefaultsGmail()}" update="formConfiguration" />
						<br />
						<br />
					</p:panelGrid>
					<h:outputText value="" />

					email server host:
					<p:inputText value="#{configurationController.configuration.emailServerHost}" binding="#{emailServerHost}" />
					<h:outputText value="Email server host" />
	
					email server port:
					<p:inputText value="#{configurationController.configuration.emailServerPort}" binding="#{emailServerPort}" />
					<h:outputText value="Email server port" />
	
					email server username:
					<p:inputText value="#{configurationController.configuration.emailServerUsername}" binding="#{emailServerUsername}" />
					<h:outputText value="Email server username" />
	
					email server password:
					<p:inputText value="#{configurationController.configuration.emailServerPassword}" binding="#{emailServerPassword}" />
					<h:outputText value="Email server password" />
	
					email subject template:
					<p:inputText value="#{configurationController.configuration.emailSubject}" />
					<h:outputText value="Email subject template, special values: {CHECK-NAME}, {CHECK-URL}, {ERROR}" />
	
					email body template:
					<p:inputTextarea value="#{configurationController.configuration.emailBody}" style="width:95%" />
					<h:outputText value="Email body template, special values: {CHECK-NAME}, {CHECK-URL}, {ERROR}" />

					test:
					<p:commandButton 
						value="test" 
						action="#{configurationController.testSendEmails(emailFrom.value, adminEmail.value, emailServerHost.value, emailServerPort.value, emailServerUsername.value, emailServerPassword.value)}" 
						update="emailTestResults" ajax="false" />
					<h:outputText value="Don't forget to press SAVE button after successfull test! Testing doesn't save your configuration!!!" />

				</p:panelGrid>
				<h:panelGroup id="emailTestResults">
					<h:outputText value="#{configurationController.emailTestResults}" escape="false" />
				</h:panelGroup>
			</p:fieldset>
			
			<br />

			<p:fieldset legend="timeouts, intervals, defaults" toggleable="true" collapsed="true" styleClass="configurationFieldset">
				<p:panelGrid columns="3" columnClasses="configurationGridCol1,configurationGridCol2" styleClass="tableNoBorder">
			
					default connection timeout (milliseconds):
					<p:inputText value="#{configurationController.configuration.connectionTimeout}" />
					<h:outputText value="How long the application will wait to establish connection" />
	
					default socket timeout (milliseconds):
					<p:inputText value="#{configurationController.configuration.socketTimeout}" />
					<h:outputText value="How long the application will wait for data" />
	
					default check broken links:
					<p:selectBooleanCheckbox value="#{configurationController.configuration.checkBrokenLinks}" />
					<h:outputText value="Monitoring will be much slower, but you will know if you have broken links on your pages" />
	
					default send emails:
					<p:selectBooleanCheckbox value="#{configurationController.configuration.defaultSendEmails}" />
					<h:outputText value="When creating a new check, will the send emails checkbox checked?" />
	
					default single check interval (minutes):
					<p:inputText value="#{configurationController.configuration.defaultSingleCheckInterval}" />
					<h:outputText value="Default check interval for single checks" />
	
					default sitemap check interval (minutes):
					<p:inputText value="#{configurationController.configuration.defaultSitemapCheckInterval}" />
					<h:outputText value="Default check interval for sitemap checks" />
	
					default spider check interval (minutes):
					<p:inputText value="#{configurationController.configuration.defaultSpiderCheckInterval}" />
					<h:outputText value="Default check interval for spider checks" />
	
					how long can check run (minutes):
					<p:inputText value="#{configurationController.configuration.tooLongRunningCheckMinutes}" />
					<h:outputText value="How long can check run before automatic abort" />
	
					user agent:
					<p:inputText value="#{configurationController.configuration.userAgent}" />
					<h:outputText value="User-Agent header" />
	
				</p:panelGrid>
			</p:fieldset>
			
			<br />
			
			<p:fieldset legend="proxy" toggleable="true" collapsed="true" styleClass="configurationFieldset">
				<p:panelGrid columns="3" columnClasses="configurationGridCol1,configurationGridCol2" styleClass="tableNoBorder">
			
					proxy server:
					<p:inputText value="#{configurationController.configuration.httpProxyServer}" />
					<h:outputText value="Leave empty if you don't use proxy" />
	
					proxy port:
					<p:inputText value="#{configurationController.configuration.httpProxyPort}" />
					<h:outputText value="Leave empty if you don't use proxy" />
	
					proxy username:
					<p:inputText value="#{configurationController.configuration.httpProxyUsername}" />
					<h:outputText value="Leave empty if your proxy doesn't use authentication" />
	
					proxy password:
					<p:inputText value="#{configurationController.configuration.httpProxyPassword}" />
					<h:outputText value="Leave empty if your proxy doesn't use authentication" />
	
				</p:panelGrid>
			</p:fieldset>
			
			<p:commandButton value="save" action="#{configurationController.save()}" update="formConfiguration" style="padding:5px;margin:15px;font-size:24px;background-color:#00E800" />
		</h:form>

	</ui:define>
</ui:composition>
</html><commit_msg>yet another change of save button background color, more conservative now<commit_after><html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
	xmlns:f="http://xmlns.jcp.org/jsf/core">
<ui:composition template="/template.xhtml">

	<ui:param name="title" value="configuration" />

	<ui:define name="content">
	
		<h:form id="formConfiguration">

<!-- fix for chrome, because autocomplete="off" isn't working -->
<!-- http://stackoverflow.com/questions/12374442/chrome-browser-ignoring-autocomplete-off -->
<input style="display:none"/>
<input type="password" style="display:none"/>

			<p:messages />
			
			<p:commandButton value="save" action="#{configurationController.save()}" update="formConfiguration" style="padding:5px;margin:15px;font-size:24px;background-color:#A6A6A6" />
			<br />

			<p:fieldset legend="login" toggleable="true" collapsed="false" styleClass="configurationFieldset">
				<p:panelGrid columns="3" columnClasses="configurationGridCol1,configurationGridCol2" styleClass="tableNoBorder">

					admin username:
					<p:inputText value="#{configurationController.configuration.adminUsername}" styleClass="username" autocomplete="off" />
					<h:outputText value="" />
				
					admin password:
					<p:password value="#{configurationController.configuration.adminPassword}" styleClass="password" autocomplete="off" />
					<h:outputText value="" />

				</p:panelGrid>
			</p:fieldset>
			
			<br />
			
			<p:fieldset legend="email" toggleable="true" collapsed="true" styleClass="configurationFieldset">
				<p:panelGrid columns="3" columnClasses="configurationGridCol1,configurationGridCol2" styleClass="tableNoBorder">
				
					email from:
					<p:inputText value="#{configurationController.configuration.emailFrom}" binding="#{emailFrom}" />
					<h:outputText value="" />

					email to:
					<p:inputText value="#{configurationController.configuration.adminEmail}" binding="#{adminEmail}" />
					<h:outputText value="" />

					send emails:
					<p:selectBooleanCheckbox value="#{configurationController.configuration.sendEmails}" />
					<h:outputText value="In order to send emails, this checkbox must be checked!!!" />

					<h:outputText value="" />
					<p:panelGrid>
						<h3>load defaults for:</h3>
						<p:commandButton value="localhost" action="#{configurationController.loadDefaultsLocalhost()}" update="formConfiguration" />
						<br />
						<br />
						<p:commandButton value="mandrillapp" action="#{configurationController.loadDefaultsMandrillapp()}" update="formConfiguration" />
						<br />
						<br />
						<p:commandButton value="gmail" action="#{configurationController.loadDefaultsGmail()}" update="formConfiguration" />
						<br />
						<br />
					</p:panelGrid>
					<h:outputText value="" />

					email server host:
					<p:inputText value="#{configurationController.configuration.emailServerHost}" binding="#{emailServerHost}" />
					<h:outputText value="Email server host" />
	
					email server port:
					<p:inputText value="#{configurationController.configuration.emailServerPort}" binding="#{emailServerPort}" />
					<h:outputText value="Email server port" />
	
					email server username:
					<p:inputText value="#{configurationController.configuration.emailServerUsername}" binding="#{emailServerUsername}" />
					<h:outputText value="Email server username" />
	
					email server password:
					<p:inputText value="#{configurationController.configuration.emailServerPassword}" binding="#{emailServerPassword}" />
					<h:outputText value="Email server password" />
	
					email subject template:
					<p:inputText value="#{configurationController.configuration.emailSubject}" />
					<h:outputText value="Email subject template, special values: {CHECK-NAME}, {CHECK-URL}, {ERROR}" />
	
					email body template:
					<p:inputTextarea value="#{configurationController.configuration.emailBody}" style="width:95%" />
					<h:outputText value="Email body template, special values: {CHECK-NAME}, {CHECK-URL}, {ERROR}" />

					test:
					<p:commandButton 
						value="test" 
						action="#{configurationController.testSendEmails(emailFrom.value, adminEmail.value, emailServerHost.value, emailServerPort.value, emailServerUsername.value, emailServerPassword.value)}" 
						update="emailTestResults" ajax="false" />
					<h:outputText value="Don't forget to press SAVE button after successfull test! Testing doesn't save your configuration!!!" />

				</p:panelGrid>
				<h:panelGroup id="emailTestResults">
					<h:outputText value="#{configurationController.emailTestResults}" escape="false" />
				</h:panelGroup>
			</p:fieldset>
			
			<br />

			<p:fieldset legend="timeouts, intervals, defaults" toggleable="true" collapsed="true" styleClass="configurationFieldset">
				<p:panelGrid columns="3" columnClasses="configurationGridCol1,configurationGridCol2" styleClass="tableNoBorder">
			
					default connection timeout (milliseconds):
					<p:inputText value="#{configurationController.configuration.connectionTimeout}" />
					<h:outputText value="How long the application will wait to establish connection" />
	
					default socket timeout (milliseconds):
					<p:inputText value="#{configurationController.configuration.socketTimeout}" />
					<h:outputText value="How long the application will wait for data" />
	
					default check broken links:
					<p:selectBooleanCheckbox value="#{configurationController.configuration.checkBrokenLinks}" />
					<h:outputText value="Monitoring will be much slower, but you will know if you have broken links on your pages" />
	
					default send emails:
					<p:selectBooleanCheckbox value="#{configurationController.configuration.defaultSendEmails}" />
					<h:outputText value="When creating a new check, will the send emails checkbox checked?" />
	
					default single check interval (minutes):
					<p:inputText value="#{configurationController.configuration.defaultSingleCheckInterval}" />
					<h:outputText value="Default check interval for single checks" />
	
					default sitemap check interval (minutes):
					<p:inputText value="#{configurationController.configuration.defaultSitemapCheckInterval}" />
					<h:outputText value="Default check interval for sitemap checks" />
	
					default spider check interval (minutes):
					<p:inputText value="#{configurationController.configuration.defaultSpiderCheckInterval}" />
					<h:outputText value="Default check interval for spider checks" />
	
					how long can check run (minutes):
					<p:inputText value="#{configurationController.configuration.tooLongRunningCheckMinutes}" />
					<h:outputText value="How long can check run before automatic abort" />
	
					user agent:
					<p:inputText value="#{configurationController.configuration.userAgent}" />
					<h:outputText value="User-Agent header" />
	
				</p:panelGrid>
			</p:fieldset>
			
			<br />
			
			<p:fieldset legend="proxy" toggleable="true" collapsed="true" styleClass="configurationFieldset">
				<p:panelGrid columns="3" columnClasses="configurationGridCol1,configurationGridCol2" styleClass="tableNoBorder">
			
					proxy server:
					<p:inputText value="#{configurationController.configuration.httpProxyServer}" />
					<h:outputText value="Leave empty if you don't use proxy" />
	
					proxy port:
					<p:inputText value="#{configurationController.configuration.httpProxyPort}" />
					<h:outputText value="Leave empty if you don't use proxy" />
	
					proxy username:
					<p:inputText value="#{configurationController.configuration.httpProxyUsername}" />
					<h:outputText value="Leave empty if your proxy doesn't use authentication" />
	
					proxy password:
					<p:inputText value="#{configurationController.configuration.httpProxyPassword}" />
					<h:outputText value="Leave empty if your proxy doesn't use authentication" />
	
				</p:panelGrid>
			</p:fieldset>
			
			<p:commandButton value="save" action="#{configurationController.save()}" update="formConfiguration" style="padding:5px;margin:15px;font-size:24px;background-color:#A6A6A6" />
		</h:form>

	</ui:define>
</ui:composition>
</html>
{'fraction_non_alphanumeric': 0.13872512896094324, 'fraction_numerical': 0.005772537460083518, 'mean_word_length': 4.760523523169438, 'pattern_counts': {'":': 0, '<': 211, '<?xml version=': 0, '>': 211, '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': '4727731', 'n_tokens_mistral': 5510, 'n_tokens_neox': 4376, 'n_words': 917}