<commit_before><?xml version='1.0' encoding='UTF-8' ?>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:cc="http://java.sun.com/jsf/composite"
	  xmlns:ui="http://java.sun.com/jsf/facelets"
          xmlns:p="http://primefaces.org/ui"
	  xmlns:fn="http://java.sun.com/jsp/jstl/functions">

    <cc:interface>
        <cc:attribute name="collapsible" default="false" />
    </cc:interface>

    <cc:implementation>
        <ui:fragment rendered="#{not empty flash['successMsg']}">
            <div class="alert alert-success">
                <span class="glyphicon glyphicon glyphicon-ok-sign"></span>&#160;<strong>Success!</strong> – <h:outputText escape="false" value="#{flash['successMsg']}"/>  
            </div>  
        </ui:fragment>
        <ui:fragment rendered="#{not empty flash['errorMsg']}">
            <div class="alert alert-danger">
                <span class="glyphicon glyphicon-exclamation-sign"></span>&#160;<strong>Error</strong> – <h:outputText escape="false" value="#{flash['errorMsg']} "/>
                Please <p:commandLink  value="contact support" onclick="feedbackForm.show()"/>.               
            </div>  
        </ui:fragment>      
        <ui:fragment rendered="#{not empty flash['infoMsg']}">
            <div class="alert alert-info">
                <span class="glyphicon glyphicon-exclamation-sign"></span>&#160;<strong>Info</strong> – <h:outputText escape="false" value="#{flash['infoMsg']} "/>               
            </div>  
        </ui:fragment>      
        <ui:fragment rendered="#{not empty flash['warningMsg']}">
            <div class="alert alert-warning">
                <span class="glyphicon glyphicon-exclamation-sign"></span>&#160;<strong>Info</strong> – <h:outputText escape="false" value="#{flash['warningMsg']} "/>               
            </div>  
        </ui:fragment>      
        <ui:fragment rendered="#{facesContext.validationFailed}">
            <div class="alert alert-danger">
                <span class="glyphicon glyphicon-exclamation-sign"></span>&#160;<strong>Validation Error</strong> – Required fields were missed or there was a validation error. Please scroll down to see details.
            </div>
        </ui:fragment>
        <ui:repeat rendered="#{!facesContext.validationFailed}" value="#{facesContext.messageList}" var="msg">
            #{level = fn:split(msg.severity,' ')[0]; "" }
            #{bsClass = (level eq 'INFO' ? 'info' : (level eq 'WARN' ? 'warning' : 'danger')); ""}
            <div class="alert #{cc.attrs.collapsible ? 'alert-dismissable' :''} alert-#{bsClass}">
                <ui:fragment rendered="#{cc.attrs.collapsible}">
                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                </ui:fragment>
                <span class="glyphicon glyphicon-info-sign"></span>&#160;<strong>#{msg.summary}</strong>&#160;<h:outputText value="#{msg.detail}" rendered="#{!empty msg.detail and (msg.detail != msg.summary)}"/>
                <ui:fragment rendered="#{level eq 'FATAL'}">                 
                    Please <p:commandLink  value="contact support" onclick="feedbackForm.show()"/>.
                </ui:fragment>
            </div>
            #{msg.rendered()}
        </ui:repeat>
    </cc:implementation>
</html><commit_msg>added date/time and server to fatal messages<commit_after><?xml version='1.0' encoding='UTF-8' ?>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:cc="http://java.sun.com/jsf/composite"
	  xmlns:ui="http://java.sun.com/jsf/facelets"
          xmlns:p="http://primefaces.org/ui"
          xmlns:fn="http://java.sun.com/jsp/jstl/functions"
          xmlns:o="http://omnifaces.org/ui"          
          xmlns:f="http://xmlns.jcp.org/jsf/core">

    <cc:interface>
        <cc:attribute name="collapsible" default="false" />
    </cc:interface>

    <cc:implementation>
        <ui:fragment rendered="#{not empty flash['successMsg']}">
            <div class="alert alert-success">
                <span class="glyphicon glyphicon glyphicon-ok-sign"></span>&#160;<strong>Success!</strong> – <h:outputText escape="false" value="#{flash['successMsg']}"/>  
            </div>  
        </ui:fragment>
        <ui:fragment rendered="#{not empty flash['errorMsg']}">
            <div class="alert alert-danger">
                <span class="glyphicon glyphicon-exclamation-sign"></span>&#160;<strong>Error</strong> – <h:outputText escape="false" value="#{flash['errorMsg']} "/>
                Please <p:commandLink  value="contact support" onclick="feedbackForm.show()"/>.               
            </div>  
        </ui:fragment>      
        <ui:fragment rendered="#{not empty flash['infoMsg']}">
            <div class="alert alert-info">
                <span class="glyphicon glyphicon-exclamation-sign"></span>&#160;<strong>Info</strong> – <h:outputText escape="false" value="#{flash['infoMsg']} "/>               
            </div>  
        </ui:fragment>      
        <ui:fragment rendered="#{not empty flash['warningMsg']}">
            <div class="alert alert-warning">
                <span class="glyphicon glyphicon-exclamation-sign"></span>&#160;<strong>Info</strong> – <h:outputText escape="false" value="#{flash['warningMsg']} "/>               
            </div>  
        </ui:fragment>      
        <ui:fragment rendered="#{facesContext.validationFailed}">
            <div class="alert alert-danger">
                <span class="glyphicon glyphicon-exclamation-sign"></span>&#160;<strong>Validation Error</strong> – Required fields were missed or there was a validation error. Please scroll down to see details.
            </div>
        </ui:fragment>
        <ui:repeat rendered="#{!facesContext.validationFailed}" value="#{facesContext.messageList}" var="msg">
            #{level = fn:split(msg.severity,' ')[0]; "" }
            #{bsClass = (level eq 'INFO' ? 'info' : (level eq 'WARN' ? 'warning' : 'danger')); ""}
            <div class="alert #{cc.attrs.collapsible ? 'alert-dismissable' :''} alert-#{bsClass}">
                <ui:fragment rendered="#{cc.attrs.collapsible}">
                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                </ui:fragment>
                <span class="glyphicon glyphicon-info-sign"></span>&#160;<strong>#{msg.summary}</strong>&#160;<h:outputText value="#{msg.detail}" rendered="#{!empty msg.detail and (msg.detail != msg.summary)}"/>
                <ui:fragment rendered="#{level eq 'FATAL'}">                 
                    Please <p:commandLink  value="contact support" onclick="feedbackForm.show()"/>. 
                    Date/Time:
                    <h:outputText value="#{now}">
                        <f:convertDateTime pattern="yyyy-MM-dd HH:mm:ss" type="date" />
                    </h:outputText>
                    Server: 
                    #{systemConfig.dataverseServer}
                </ui:fragment>
            </div>
            #{msg.rendered()}
        </ui:repeat>
    </cc:implementation>
</html>
{'fraction_non_alphanumeric': 0.18172956412755883, 'fraction_numerical': 0.008355382258738338, 'mean_word_length': 2.4695652173913043, 'pattern_counts': {'":': 0, '<': 144, '<?xml version=': 2, '>': 144, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 17}, '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': '4730863', 'n_tokens_mistral': 2202, 'n_tokens_neox': 2055, 'n_words': 353}