<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:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	template="/WEB-INF/layouts/visualizer/master.xhtml">

	<ui:define name="title">Tariff analysis</ui:define>

	<ui:define name="headInclude">	
	
		<script>
			$(window).load(function(){ 
				/*code here*/
				document.getElementsByTagName("form")[0].setAttribute("class", "margin10");
				document.getElementsByTagName("table")[0].setAttribute("class", "bordered");
				$("th").each(function(){$(this)[0].setAttribute("class", "text-center")});
				$("td").each(function(){$(this)[0].setAttribute("class", "text-center")});
				//document.getElementsByTagName("th")[0].setAttribute("class", "text-center");
				})
		</script>
	</ui:define> 

	<ui:define name="maincontent">	
		<h:form>
			<p:dataTable value="#{tariffMarketBean.allTarifs}" var="o"
				styleClass="order-table" headerClass="order-table-header"
				rowClasses="order-table-odd-row,order-table-even-row"
				filteredValue="#{tariffMarketBean.filteredValue}">
				
				<p:column sortBy="#{o.spec.id}" headerText="Tariff ID" filterBy="#{o.spec.id}" filterMatchMode="contains">
					<h:outputText value="#{o.spec.id}" />
				</p:column>

				<p:column sortBy="#{o.profit}" headerText="Profit [EUR]" filterBy="#{o.profit}" filterMatchMode="contains">
					<h:outputText value="#{o.profit}" />
				</p:column>

				<p:column sortBy="#{o.netMWh}" headerText="Traded energy [MWh]" filterBy="#{o.netMWh}" filterMatchMode="contains">
					<h:outputText value="#{o.netMWh}" />
				</p:column>

				<p:column sortBy="#{o.powerType}" headerText="Power Type" filterBy="#{o.powerType}" filterMatchMode="contains">
					<h:outputText value="#{o.powerType}" />
				</p:column>
				
				<p:column sortBy="#{o.broker.name}" headerText="Offered by" filterBy="#{o.broker.name}" filterMatchMode="contains">
					<h:outputText value="#{o.broker.name}" />
				</p:column>

				<!--p:column>

					<f:facet name="header">Action</f:facet>

					<h:commandLink value="Delete" action="#{order.deleteAction(o)}" />

				</p:column-->

			</p:dataTable>
<!-- 
			<h3>Enter Order</h3>
    		<table>
    		<tr>
    			<td>Order No :</td>
    			<td><h:inputText size="10" value="#{order.orderNo}" /></td>
    		</tr>
    		<tr>
    			<td>Product Name :</td>
    			<td><h:inputText size="20" value="#{order.productName}" /></td>
    		</tr>
    		<tr>
    			<td>Quantity :</td>
    			<td><h:inputText size="5" value="#{order.price}" /></td>
    		</tr>
    		<tr>
    			<td>Price :</td>
    			<td><h:inputText size="10" value="#{order.qty}" /></td>
    		</tr>
    		</table>
 
    		<h:commandButton value="Add" action="#{order.addAction}" />
--> 
    	</h:form>               
	</ui:define>
	
	<ui:define name="rowcontent">
	</ui:define>

</ui:composition><commit_msg>blind fix for tariff analysis<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:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	template="/WEB-INF/layouts/visualizer/master.xhtml">

	<ui:define name="title">Tariff analysis</ui:define>

	<ui:define name="headInclude">	
	
		<script>
			$(window).load(function(){ 
				/*code here*/
				document.getElementsByTagName("form")[0].setAttribute("class", "margin10");
				document.getElementsByTagName("table")[0].setAttribute("class", "bordered");
				$("th").each(function(){$(this)[0].setAttribute("class", "text-center")});
				$("td").each(function(){$(this)[0].setAttribute("class", "text-center")});
				//document.getElementsByTagName("th")[0].setAttribute("class", "text-center");
				})
		</script>
	</ui:define> 

	<ui:define name="maincontent">	
		<h:form>
			<p:dataTable value="#{tariffMarketBean.allTarifs}" var="o"
				styleClass="order-table" headerClass="order-table-header"
				rowClasses="order-table-odd-row,order-table-even-row"
				filteredValue="#{tariffMarketBean.filteredValue}">
				
				<p:column sortBy="#{o.spec.id}" headerText="Tariff ID" filterBy="#{o.spec.id}" filterMatchMode="contains">
					<h:outputText value="#{o.spec.id}" />
				</p:column>

				<p:column sortBy="#{o.profit}" headerText="Profit [EUR]" filterBy="#{o.profit}" filterMatchMode="contains">
					<h:outputText value="#{o.profit}" />
				</p:column>

				<p:column sortBy="#{o.netMWh}" headerText="Traded energy [MWh]" filterBy="#{o.netMWh}" filterMatchMode="contains">
					<h:outputText value="#{o.netMWh}" />
				</p:column>

				<p:column sortBy="#{o.powerType}" headerText="Power Type" filterBy="#{o.powerType}" filterMatchMode="contains">
					<h:outputText value="#{o.powerType}" />
				</p:column>
				
				<p:column sortBy="#{o.broker.name}" headerText="Offered by" filterBy="#{o.broker.name}" filterMatchMode="contains">
					<h:outputText value="#{o.broker.name}" />
				</p:column>


			</p:dataTable>
    	</h:form>               
	</ui:define>
	
	<ui:define name="rowcontent">
	</ui:define>

</ui:composition>
{'fraction_non_alphanumeric': 0.2245919881305638, 'fraction_numerical': 0.008345697329376855, 'mean_word_length': 4.141086749285034, 'pattern_counts': {'":': 0, '<': 106, '<?xml version=': 0, '>': 106, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '6983751', 'n_tokens_mistral': 2277, 'n_tokens_neox': 1973, 'n_words': 249}