<commit_before><?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	template="/WEB-INF/templates/template.xhtml">
		
<ui:define name="content">	
	
	<h2>Edit Rulebase</h2>

    <h:form>
      <p>					
		<h:dataTable value="#{ruleList}" var="item" id="list" cellspacing="0" rowClasses="odd, even" styleClass="datatable">
			<h:column><f:facet name="header">name</f:facet>#{item.name}</h:column>
			<h:column><f:facet name="header">amount from</f:facet>#{item.amountMin}</h:column>
			<h:column><f:facet name="header">amount till</f:facet>#{item.amountMax}</h:column>
			<h:column><f:facet name="header">discount</f:facet>#{item.discount}</h:column>			
			<h:column>				
				<h:outputLink value="editRule.jsf?entryId=#{item.id}">edit</h:outputLink>
			</h:column>
		</h:dataTable>

		<h:outputLink value="editRule.jsf">add entry</h:outputLink>
      </p>
      <p>		
		<h:commandButton action="#{droolsRulebaseBean.updateRulebase()}" value="update rule base" type="submit" />
	  </p>
	  <p>
		<h:outputText value="#{droolsRulebaseBean.droolsRulebaseDrlHtml}" escape="false" />
	  </p>	
	</h:form>

</ui:define>
</ui:composition>
<commit_msg>Pimped up the rule list page<commit_after><?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	template="/WEB-INF/templates/template.xhtml">
		
<ui:define name="content">	
	
	<h2>Edit Rulebase</h2>

    <h:form>
      <p>					
		<h:dataTable value="#{ruleList}" var="item" id="list" cellspacing="0" rowClasses="odd, even" styleClass="table table-striped table-bordered">
            <h:column>
                <f:facet name="header">name</f:facet>
                #{item.name}
            </h:column>
            <h:column>
                <f:facet name="header">amount from</f:facet>
                #{item.amountMin}
            </h:column>
            <h:column>
                <f:facet name="header">amount till</f:facet>#{item.amountMax}
            </h:column>
            <h:column>
                <f:facet name="header">discount</f:facet>
                #{item.discount}
            </h:column>
            <h:column>
                <h:outputLink value="editRule.jsf?entryId=#{item.id}" class="btn">edit</h:outputLink>
            </h:column>
        </h:dataTable>

		<h:outputLink value="editRule.jsf" class="btn btn-primary">add entry</h:outputLink>
      </p>
      <p>
         <h:commandButton action="#{droolsRulebaseBean.updateRulebase()}" value="update rule base" type="submit" class="btn btn-success"/>
      </p>
      <pre class="prettyprint linenums">
		<h:outputText value="#{droolsRulebaseBean.droolsRulebaseDrlHtml}" escape="false" />
	  </pre>
	</h:form>

</ui:define>
</ui:composition>

{'fraction_non_alphanumeric': 0.20040214477211796, 'fraction_numerical': 0.007372654155495978, 'mean_word_length': 3.3135838150289016, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 2, '>': 85, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 10}, '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': '4041830', 'n_tokens_mistral': 1168, 'n_tokens_neox': 1092, 'n_words': 141}