<commit_before><!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.org/schema/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j"
    xmlns:richext="http://java.sun.com/jsf/composite/richext"
	template="../WEB-INF/layout/template.xhtml">

   <ui:define name="page_title">#{messages['jsf.ManageLanguage']}</ui:define>
	<ui:define name="right_content">
	  <rich:panel>
      	<f:facet name="header">#{messages['jsf.Actions']}</f:facet>
      	<s:link styleClass="action_link" view="/admin/supportedlanguagedetail.xhtml"
			value="#{messages['jsf.CreateSupportedLanguage']}" />
    	</rich:panel>
	</ui:define>

	<ui:define name="center_content">
		<script type="text/javascript">
        function confirmDelete()
        {
          return confirm("#{messages['jsf.AreYouSureYouWishToDeleteThisLanguageThisActionCannotBeUndone']}");
        }
        function confirmEnabledChange(checkbox)
        {
            if( checkbox.checked )
            {
                return confirm("#{messages['jsf.AreYouSureYouWishToEnableThisLanguage']}");
            }
            else
            {
                return confirm("#{messages['jsf.AreYouSureYouWishToDisableThisLanguage']}");
            }
        }
        function confirmEnabledByDefaultChange(checkbox)
        {
            if( checkbox.checked )
            {
                return confirm("#{messages['jsf.language.manager.EnableByDefaultConfirmation']}");
            }
            else
            {
                return confirm("#{messages['jsf.language.manager.DisableByDefaultConfirmation']}");
            }
        }
      </script>
			<h:form id="languageForm">
				<s:token allowMultiplePosts="true" />
				<rich:dataTable id="threads" value="#{allLanguages}"
					var="language">

					<rich:column sortBy="#{language.localeId.id}"
                                 styleClass="#{!language.active ? 'disabled_lang_row' : ''}">
						<f:facet name="header">#{messages['jsf.Language']}<richext:columnSorter/></f:facet>
	            		#{language.localeId.id}
	        		</rich:column>
					<rich:column sortBy="#{language.retrieveDisplayName()}"
                                 styleClass="#{!language.active ? 'disabled_lang_row' : ''}">
						<f:facet name="header">#{messages['jsf.Name']}<richext:columnSorter/></f:facet><commit_msg>Fix problem with JSF ajax and onbeforesubmit.<commit_after><!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.org/schema/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j"
    xmlns:richext="http://java.sun.com/jsf/composite/richext"
	template="../WEB-INF/layout/template.xhtml">

   <ui:define name="page_title">#{messages['jsf.ManageLanguage']}</ui:define>
	<ui:define name="right_content">
	  <rich:panel>
      	<f:facet name="header">#{messages['jsf.Actions']}</f:facet>
      	<s:link styleClass="action_link" view="/admin/supportedlanguagedetail.xhtml"
			value="#{messages['jsf.CreateSupportedLanguage']}" />
    	</rich:panel>
	</ui:define>

	<ui:define name="center_content">
		<script type="text/javascript">
        function confirmDelete()
        {
          return confirm("#{messages['jsf.AreYouSureYouWishToDeleteThisLanguageThisActionCannotBeUndone']}");
        }
        function confirmEnabledChange(checkbox)
        {
            var mssg = "#{messages['jsf.AreYouSureYouWishToDisableThisLanguage']}"
            if( checkbox.checked )
            {
                mssg = "#{messages['jsf.AreYouSureYouWishToEnableThisLanguage']}"
            }

            confirmed = confirm(mssg)
            if( !confirmed )
            {
                checkbox.checked = !checkbox.checked
            }
            return confirmed
        }
        function confirmEnabledByDefaultChange(checkbox)
        {
            var mssg = "#{messages['jsf.language.manager.DisableByDefaultConfirmation']}"
            if( checkbox.checked )
            {
                mssg = "#{messages['jsf.language.manager.EnableByDefaultConfirmation']}"
            }

            confirmed = confirm(mssg)
            if( !confirmed )
            {
                checkbox.checked = !checkbox.checked
            }
            return confirmed
        }
      </script>
			<h:form id="languageForm">
				<s:token allowMultiplePosts="true" />
				<rich:dataTable id="threads" value="#{allLanguages}"
					var="language">

					<rich:column sortBy="#{language.localeId.id}"
                                 styleClass="#{!language.active ? 'disabled_lang_row' : ''}">
						<f:facet name="header">#{messages['jsf.Language']}<richext:columnSorter/></f:facet>
	            		#{language.localeId.id}
	        		</rich:column>
					<rich:column sortBy="#{language.retrieveDisplayName()}"
                                 styleClass="#{!language.active ? 'disabled_lang_row' : ''}">
						<f:facet name="header">#{messages['jsf.Name']}<richext:columnSorter/></f:facet>
{'fraction_non_alphanumeric': 0.16388384754990926, 'fraction_numerical': 0.004718693284936479, 'mean_word_length': 2.6986577181208053, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 16}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7245665', 'n_tokens_mistral': 1869, 'n_tokens_neox': 1735, 'n_words': 181}