<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.com/products/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:p4s="http://play4science.org/facelets">

	<div id="betSale_#{bet.id}" style="border:1px solid silver; padding:5px;">
		<s:fragment rendered="#{mitTradeBet.isOfferedForSale(bet)}">
			<div style="padding:0 0 3px 0">
				<h:outputFormat value="#{messages['bet.trade.offeredForSale']}">
					<f:param value="#{mitTradeBet.getSaleOfferPrice(bet)}"/>
				</h:outputFormat>
			</div>
			<h:commandLink id="cancelSaleOfferBetButton" action="#{mitTradeBet.cancelSaleOffer(bet)}" styleClass="button">
				<f:param name="resultNumber" value="#{mitBetList.resultNumber}" />
				<span><span class="checkmark-no" /><h:outputText value="#{messages['bet.trade.cancelOffer']}" /></span>
			</h:commandLink> <!-- score,coins -->
		</s:fragment>
		<s:fragment rendered="#{!mitTradeBet.isOfferedForSale(bet)}">
			<div style="padding:0 0 3px 0">
				<h:outputText value="#{messages['bet.trade.sale.info']}" />
			</div>
			<div id="betPriceDiv">
				<rich:inputNumberSpinner minValue="0" id="betPrice" value="#{mitTradeBet.price}" style="float:left" inputSize="2"/>
				<h:outputText value="#{messages['points']}" style="margin:3px 20px 0 2px; float:left" />
				<h:commandLink id="sellBetButton" action="#{mitTradeBet.offerForSale(bet)}" styleClass="button">
					<f:param name="resultNumber" value="#{mitBetList.resultNumber}" />
					<span><span class="checkmark-yes" /><h:outputText value="#{messages['bet.trade.offerForSale']}" /></span>
				</h:commandLink>
			</div>
			<div style="clear:both; padding:5px 0 3px 0">
				<h:outputText value="#{messages['bet.trade.sale.info2']}" />
			</div>
			<h:commandLink id="directSellBetButton" action="#{mitTradeBet.sellDirectly(bet)}" styleClass="button">
				<f:param name="resultNumber" value="#{mitBetList.resultNumber}" />
				<span><span class="checkmark-yes" />
					<h:outputFormat value="#{messages['bet.trade.sellDirectly']}">
						<f:param value="#{mitTradeBet.getDirectSalePrice(bet)}"/>
					</h:outputFormat>
				</span>
			</h:commandLink>
		</s:fragment>
		<div class="clear"/>
	</div>
</ui:composition><commit_msg>bugfix for display of trade<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.com/products/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:p4s="http://play4science.org/facelets">

	<div id="betSale_#{bet.id}" style="border:1px solid silver; padding:5px;">
		<s:fragment rendered="#{mitTradeBet.isOfferedForSale(bet)}">
			<div style="padding:0 0 3px 0">
				<h:outputFormat value="#{messages['bet.trade.offeredForSale']}">
					<f:param value="#{mitTradeBet.getSaleOfferPrice(bet)}"/>
				</h:outputFormat>
			</div>
			<h:commandLink id="cancelSaleOfferBetButton" action="#{mitTradeBet.cancelSaleOffer(bet)}" styleClass="button">
				<f:param name="resultNumber" value="#{mitBetList.resultNumber}" />
				<span><span class="checkmark-no" /><h:outputText value="#{messages['bet.trade.cancelOffer']}" /></span>
			</h:commandLink> <!-- score,coins -->
		</s:fragment>
		<s:fragment rendered="#{!mitTradeBet.isOfferedForSale(bet)}">
			<div style="padding:0 0 3px 0">
				<h:outputText value="#{messages['bet.trade.sale.info']}" />
			</div>
			<div id="betPriceDiv">
				<rich:inputNumberSpinner minValue="0" maxValue="9999" id="betPrice" value="#{mitTradeBet.price}" style="float:left" inputSize="2"/>
				<h:outputText value="#{messages['points']}" style="margin:3px 20px 0 2px; float:left" />
				<h:commandLink id="sellBetButton" action="#{mitTradeBet.offerForSale(bet)}" styleClass="button">
					<f:param name="resultNumber" value="#{mitBetList.resultNumber}" />
					<span><span class="checkmark-yes" /><h:outputText value="#{messages['bet.trade.offerForSale']}" /></span>
				</h:commandLink>
			</div>
			<div style="clear:both; padding:5px 0 3px 0">
				<h:outputText value="#{messages['bet.trade.sale.info2']}" />
			</div>
			<h:commandLink id="directSellBetButton" action="#{mitTradeBet.sellDirectly(bet)}" styleClass="button">
				<f:param name="resultNumber" value="#{mitBetList.resultNumber}" />
				<span><span class="checkmark-yes" />
					<h:outputFormat value="#{messages['bet.trade.sellDirectly']}">
						<f:param value="#{mitTradeBet.getDirectSalePrice(bet)}"/>
					</h:outputFormat>
				</span>
			</h:commandLink>
		</s:fragment>
		<div class="clear"/>
	</div>
</ui:composition>
{'fraction_non_alphanumeric': 0.21107198748043818, 'fraction_numerical': 0.015258215962441314, 'mean_word_length': 5.101431980906921, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 101, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '3387267', 'n_tokens_mistral': 2145, 'n_tokens_neox': 1855, 'n_words': 244}