<commit_before><ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

	<div class="menu-wrapper" style="margin-bottom:5px;">
		<div style="">
			<p:commandButton value="#{msg['common.btn.txt.back']}" icon="fa fa-mail-reply" actionListener="#{summarizeView.backToCandidatesByDate}" update="@form"/>
		</div>
	</div>
	<p:dataTable id="tbCandidateDetail" widgetVar="tbDetailVar"
		value="#{summarizeView.candidateDetail.bySection}"
		var="var"
		reflow="false"
		paginator="true"
		paginatorAlwaysVisible="true"
		paginatorTemplate="#{summarizeView.defaultPaginateTemplate}"
		paginatorPosition="bottom"
		rows="10"
		emptyMessage="Not found"
		styleClass="" expandedRow="#{summarizeView.candidateDetail.bySection.size() == 1}"
		style="margin:0 auto;width:inherit;">
		
		<f:facet name="header">
			<h:outputFormat value="#{msg['tb.candidate.detail.header']}">
				<f:param value="#{summarizeView.candidateDetail.student.firstName} #{summarizeView.candidateDetail.student.lastName}"/>
			</h:outputFormat>
		</f:facet>
		
		<p:column style="width:16px">
            <p:rowToggler />
        </p:column>
		<p:column headerText="#{msg['tb.candidate.detail.col.1']}" styleClass="txt-center">
			<h:outputText value="#{var.sectionNo}" />
		</p:column>
		<p:column headerText="#{msg['tb.candidate.detail.col.2']}" style="width:320px;" >
			<h:outputText value="#{var.sectionName}" />
		</p:column>
		<p:column headerText="#{msg['tb.candidate.detail.col.3']}">
			<h:outputText value="#{var.description}" />
		</p:column>
		<p:column headerText="#{msg['tb.candidate.detail.col.4']}" styleClass="txt-center">
			<h:outputText value="#{var.marks}"/>
		</p:column>
		
		<p:rowExpansion>
			<p:dataTable value="#{var.results}" var="detail" >
				
				<p:column headerText="#{msg['tb.sub.candidate.detail.col.0']}" style="width:32px;" styleClass="txt-center bg-color-grey">
					<h:outputText value="#{detail.answer.question.questionNo}"/>
				</p:column>
				<p:column headerText="#{msg['tb.sub.candidate.detail.col.1']}" styleClass="bg-color-grey">
					<h:outputText value="#{detail.answer.question.questionText}"/>
				</p:column>
				<p:column headerText="#{msg['tb.sub.candidate.detail.col.3']}" styleClass="bg-color-grey">
					<h:outputText value="#{detail.answer.choiceLetter}) #{detail.answer.answerText}"/>
				</p:column>
				<p:column headerText="#{msg['tb.sub.candidate.detail.col.4']}" style="width:70px;" 
					styleClass="txt-center #{detail.answer.answerType.answerTypeCode eq 'CORRECT_ANS' ? 'color-green' : 'color-red'} bg-color-grey">
					<h:outputText value="#{detail.answer.answerType.description}"></h:outputText>
				</p:column>
				
			</p:dataTable>
		</p:rowExpansion>
		
	</p:dataTable>
	
	<script type="text/javascript">
		function autoExpandsRow() {
	        $('.ui-datatable-data').find('.ui-row-toggler').eq(0).trigger('click');
		}
	</script>
	
</ui:composition><commit_msg>added tooltip box to display all answers<commit_after><ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

	<div class="menu-wrapper" style="margin-bottom:5px;">
		<div style="">
			<p:commandButton value="#{msg['common.btn.txt.back']}" icon="fa fa-mail-reply" actionListener="#{summarizeView.backToCandidatesByDate}" update="@form"/>
		</div>
	</div>
	<p:dataTable id="tbCandidateDetail" widgetVar="tbDetailVar"
		value="#{summarizeView.candidateDetail.bySection}"
		var="var"
		reflow="false"
		paginator="true"
		paginatorAlwaysVisible="true"
		paginatorTemplate="#{summarizeView.defaultPaginateTemplate}"
		paginatorPosition="bottom"
		rows="10"
		emptyMessage="Not found"
		styleClass="" expandedRow="#{summarizeView.candidateDetail.bySection.size() == 1}"
		style="margin:0 auto;width:inherit;">
		
		<f:facet name="header">
			<h:outputFormat value="#{msg['tb.candidate.detail.header']}">
				<f:param value="#{summarizeView.candidateDetail.student.firstName} #{summarizeView.candidateDetail.student.lastName}"/>
			</h:outputFormat>
		</f:facet>
		
		<p:column style="width:16px">
            <p:rowToggler />
        </p:column>
		<p:column headerText="#{msg['tb.candidate.detail.col.1']}" styleClass="txt-center">
			<h:outputText value="#{var.sectionNo}" />
		</p:column>
		<p:column headerText="#{msg['tb.candidate.detail.col.2']}" style="width:320px;" >
			<h:outputText value="#{var.sectionName}" />
		</p:column>
		<p:column headerText="#{msg['tb.candidate.detail.col.3']}">
			<h:outputText value="#{var.description}" />
		</p:column>
		<p:column headerText="#{msg['tb.candidate.detail.col.4']}" styleClass="txt-center">
			<h:outputText value="#{var.marks}"/>
		</p:column>
		
		<p:rowExpansion>
			<p:dataTable value="#{var.results}" var="detail" >
				
				<p:column headerText="#{msg['tb.sub.candidate.detail.col.0']}" style="width:32px;" styleClass="txt-center bg-color-grey">
					<h:outputText value="#{detail.answer.question.questionNo}"/>
				</p:column>
				<p:column headerText="#{msg['tb.sub.candidate.detail.col.1']}" styleClass="bg-color-grey">
					<h:outputText value="#{detail.answer.question.questionText}"/>
				</p:column>
				<p:column headerText="#{msg['tb.sub.candidate.detail.col.3']}" styleClass="bg-color-grey" >
					<h:outputText id="showHint" value="#{detail.answer.choiceLetter}) #{detail.answer.answerText}"/>
					<p:tooltip id="toolTipTrack" for="showHint" trackMouse="true">
						<ui:repeat var="answer" value="#{detail.answer.question.answers}">
							<h:outputText value="#{answer.choiceLetter}) #{answer.answerText}"/><br/>
						</ui:repeat>
					</p:tooltip>
				</p:column>
				<p:column headerText="#{msg['tb.sub.candidate.detail.col.4']}" style="width:70px;" 
					styleClass="txt-center #{detail.answer.answerType.answerTypeCode eq 'CORRECT_ANS' ? 'color-green' : 'color-red'} bg-color-grey">
					<h:outputText value="#{detail.answer.answerType.description}"></h:outputText>
				</p:column>
				
			</p:dataTable>
		</p:rowExpansion>
		
	</p:dataTable>
	
	<script type="text/javascript">
		function autoExpandsRow() {
	        $('.ui-datatable-data').find('.ui-row-toggler').eq(0).trigger('click');
		}
	</script>
	
</ui:composition>
{'fraction_non_alphanumeric': 0.20788369304556356, 'fraction_numerical': 0.008393285371702638, 'mean_word_length': 4.390145395799677, 'pattern_counts': {'":': 0, '<': 105, '<?xml version=': 0, '>': 105, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 12}, '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': '803301', 'n_tokens_mistral': 2691, 'n_tokens_neox': 2335, 'n_words': 262}