<commit_before><%-- 
	Copyright 2011-2014 eBusiness Information, Groupe Excilys (www.ebusinessinformation.fr)
--%>
<%@include file="/html/gatling/header.jsp"%>

<aui:fieldset label="scenario">
	<aui:input type="hidden" name="scenarioId"
		value='${empty scenario ? "" : scenario.scenario_id }' />
	<aui:input type="hidden" name="groupId" value='${scenario.group_id}' />

	<portlet:renderURL var="helpURL" windowState="pop_up">
		<portlet:param name="page" value="/html/gatling/help.jsp" />
	</portlet:renderURL>
	<div class="well well-small">
		<liferay-ui:message key="scenario-edit-help-scenario" />
		<a href="#help" class="label" id="help"> <i class="icon-question-sign"></i>
			<liferay-ui:message key="help-use-scenario" />
		</a>
	</div>

	<table class="table table-bordered table-scenario">
		<thead>
		<tr>
			<th class="small-column"><input type="checkbox" id="checkAll" />
				<label for="checkAll" class="inline"><i
					class='icon-circle-arrow-down'></i></label> <%--Force weight button --%> <aui:input
					label="" name="forceWeight" cssClass="forceinput"
					inlineField="true" /> <aui:button
					value="scenario-edit-force-weight-btn" cssClass="inline-button"
					id="force" onClick="forceWeight();" /> <liferay-ui:icon-help
					message="scenario-edit-force-weight" /></th>
			<th ><liferay-ui:message key="scenario-edit-table-header-page" />
				<liferay-ui:icon-help message="name-info-help" /></th>
			<th class="small-column"><liferay-ui:message key="scenario-edit-table-header-portlet" /></th>
			<th class="small-column"><liferay-ui:message key="scenario-edit-table-header-weight" />
				<liferay-ui:icon-help message="weight-info-help" /></th>
			<th class="small-column"><liferay-ui:icon-help message="percent-info-help" /></th>
		</tr>
		</thead>
		<c:if test="${ listPages.size() ==0 }">
			<tr>
				<td><label style="color: green"> <liferay-ui:message
							key="no-page" /></label></td>
			</tr>
		</c:if>
		<%--
		
		FOR EACH Display
		
		 --%>
		<tbody>
		<c:forEach var="layout" items='${ listPages }' varStatus="status">
			<%-- Add a variable to know if we need to ask the user about upgrading the scenario --%>
			<c:if test="${empty confirmUpgrade && !layout.portlet && layout.state != 'DEFAULT' }">
				<c:set var="confirmUpgrade" value="confirmUpgrade" />
			</c:if>
			<%--subpages --%>
			<c:set var="arraySubPage" />
			<c:if test="${not empty layout.subNodes}">
				<c:forEach var="i" items="${layout.subNodes}" varStatus="info">
					<c:set var="arraySubPage" value="${arraySubPage}${i}" />
					<c:if test="${not info.last}">
						<c:set var="arraySubPage" value="${arraySubPage}," />
					</c:if>
				</c:forEach>
			</c:if>
			<%--Portlets --%>
			<c:set var="portletList" />
			<c:if test="${not empty layout.pagePortlet}">
				<c:forEach var="i" items="${layout.pagePortlet}" varStatus="info">
					<c:set var="portletList" value="${portletList}${i}" />
					<c:if test="${not info.last}">
						<c:set var="portletList" value="${portletList}," />
					</c:if>
				</c:forEach>
			</c:if>
			<%-- Weight = 0 ? blue line --%>
			<c:set var="color" />
			<c:if test="${not layout.isUsed() }">
				<c:set var="color" value="empty-weight-color" />
			</c:if>
			<c:choose>
				<c:when test="layout.privateItem">
					<c:set var="url" value="${privateURL}${layout.url}" />
				</c:when>
				<c:otherwise>
					<c:set var="url" value="${publicURL}${layout.url}" />
				</c:otherwise>
			</c:choose>
			
			<%--
				DISPLAY
			 --%>
			<c:choose>
				<%--
				
					If it is a portlet
				
				 --%>
				<c:when test="${layout.portlet }">
					<tr id="${layout.displayId}" class="${color }" data-parent="${layout.parentDisplayId }"
						hidden="true">
						<td><input type="checkbox" name="${status.index}"
							class='checkLine' /></td>
						<td><i class="icon-th-large"></i>
							<a href="#${layout.portletId}" class="portlet-popup" style="margin-left:${(layout.depth-1)*30}px"> ${layout.name}</a>
						</td>
						<td></td>
						<td><aui:input label="" name="weight${status.index}"
								cssClass="weight-portlet " inlineField="true" onChange="showWeightPortlet()"
								value="${layout.weight}">
								<aui:validator name="number" />
							</aui:input></td>
						<td><span style="margin-left:${(layout.depth)*15}px" class='percent'>0.00%</span></td>
					</tr>
				</c:when><commit_msg>Correction poids page avec portlet<commit_after><%-- 
	Copyright 2011-2014 eBusiness Information, Groupe Excilys (www.ebusinessinformation.fr)
--%>
<%@include file="/html/gatling/header.jsp"%>

<aui:fieldset label="scenario">
	<aui:input type="hidden" name="scenarioId"
		value='${empty scenario ? "" : scenario.scenario_id }' />
	<aui:input type="hidden" name="groupId" value='${scenario.group_id}' />

	<portlet:renderURL var="helpURL" windowState="pop_up">
		<portlet:param name="page" value="/html/gatling/help.jsp" />
	</portlet:renderURL>
	<div class="well well-small">
		<liferay-ui:message key="scenario-edit-help-scenario" />
		<a href="#help" class="label" id="help"> <i class="icon-question-sign"></i>
			<liferay-ui:message key="help-use-scenario" />
		</a>
	</div>

	<table class="table table-bordered table-scenario">
		<thead>
		<tr>
			<th class="small-column"><input type="checkbox" id="checkAll" />
				<label for="checkAll" class="inline"><i
					class='icon-circle-arrow-down'></i></label> <%--Force weight button --%> <aui:input
					label="" name="forceWeight" cssClass="forceinput"
					inlineField="true" /> <aui:button
					value="scenario-edit-force-weight-btn" cssClass="inline-button"
					id="force" onClick="forceWeight();" /> <liferay-ui:icon-help
					message="scenario-edit-force-weight" /></th>
			<th ><liferay-ui:message key="scenario-edit-table-header-page" />
				<liferay-ui:icon-help message="name-info-help" /></th>
			<th class="small-column"><liferay-ui:message key="scenario-edit-table-header-portlet" /></th>
			<th class="small-column"><liferay-ui:message key="scenario-edit-table-header-weight" />
				<liferay-ui:icon-help message="weight-info-help" /></th>
			<th class="small-column"><liferay-ui:icon-help message="percent-info-help" /></th>
		</tr>
		</thead>
		<c:if test="${ listPages.size() ==0 }">
			<tr>
				<td><label style="color: green"> <liferay-ui:message
							key="no-page" /></label></td>
			</tr>
		</c:if>
		<%--
		
		FOR EACH Display
		
		 --%>
		<tbody>
		<c:forEach var="layout" items='${ listPages }' varStatus="status">
			<%-- Add a variable to know if we need to ask the user about upgrading the scenario --%>
			<c:if test="${empty confirmUpgrade && !layout.portlet && layout.state != 'DEFAULT' }">
				<c:set var="confirmUpgrade" value="confirmUpgrade" />
			</c:if>
			<%--subpages --%>
			<c:set var="arraySubPage" />
			<c:if test="${not empty layout.subNodes}">
				<c:forEach var="i" items="${layout.subNodes}" varStatus="info">
					<c:set var="arraySubPage" value="${arraySubPage}${i}" />
					<c:if test="${not info.last}">
						<c:set var="arraySubPage" value="${arraySubPage}," />
					</c:if>
				</c:forEach>
			</c:if>
			<%--Portlets --%>
			<c:set var="portletList" />
			<c:if test="${not empty layout.pagePortlet}">
				<c:forEach var="i" items="${layout.pagePortlet}" varStatus="info">
					<c:set var="portletList" value="${portletList}${i}" />
					<c:if test="${not info.last}">
						<c:set var="portletList" value="${portletList}," />
					</c:if>
				</c:forEach>
			</c:if>
			<%-- Weight = 0 ? blue line --%>
			<c:set var="color" />
			<c:if test="${not layout.isUsed() }">
				<c:set var="color" value="empty-weight-color" />
			</c:if>
			<c:choose>
				<c:when test="layout.privateItem">
					<c:set var="url" value="${privateURL}${layout.url}" />
				</c:when>
				<c:otherwise>
					<c:set var="url" value="${publicURL}${layout.url}" />
				</c:otherwise>
			</c:choose>
			
			<%--
				DISPLAY
			 --%>
			<c:choose>
				<%--
				
					If it is a portlet
				
				 --%>
				<c:when test="${layout.portlet }">
					<tr id="${layout.displayId}" class="${color }" data-parent="${layout.parentDisplayId }"
						hidden="true">
						<td><input type="checkbox" name="${status.index}"
							class='checkLine' /></td>
						<td><i class="icon-th-large"></i>
							<a href="#${layout.portletId}" class="portlet-popup" style="margin-left:${(layout.depth-1)*30}px"> ${layout.name}</a>
						</td>
						<td></td>
						<td><aui:input label="" name="portlet${status.index}"
								cssClass="weight-portlet " inlineField="true" onChange="showWeightPortlet()"
								value="${layout.weight}">
								<aui:validator name="number" />
							</aui:input></td>
						<td><span style="margin-left:${(layout.depth)*15}px" class='percent'>0.00%</span></td>
					</tr>
				</c:when>
{'fraction_non_alphanumeric': 0.22629409070087037, 'fraction_numerical': 0.004122766834631242, 'mean_word_length': 3.64274322169059, 'pattern_counts': {'":': 0, '<': 247, '<?xml version=': 0, '>': 247, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, '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': '2568079', 'n_tokens_mistral': 3774, 'n_tokens_neox': 3119, 'n_words': 521}