<commit_before><%@ include file="/WEB-INF/jsp/includes/include.jsp" %>

<c:set var="component">${param.component}</c:set>

<content tag="listFilters">
</content>

<content tag="customActions">
	<tags:actionURLButton buttonText="Add" actionId="lava.crms.assessment.instrument.instrument" eventId="instrument__add" component="${component}" locked="${currentVisit.locked}"/>	    
</content>

<content tag="groupActions">
<tags:listInstrumentPrototypeGroupRow groupPrototype="${groupPrototype}" groupComponent="instrumentGroup" pageName="${component}" locked="${currentVisit.locked}"/>
<tags:listSelectedItemsGroupRow listComponent="${component}" groupComponent="instrumentGroup" pageName="${component}" selectedCountMsgKey="instrumentGroup.selectedCount" locked="${currentVisit.locked}"/>
</content>

<content tag="listColumns">
<tags:listRow>
	<tags:componentListColumnHeader component="${component}"  label="&nbsp;" width="2%"/>
	<tags:componentListColumnHeader component="${component}"  label="Action" width="12%"/>
	<tags:componentListColumnHeader component="${component}"  label="Measure"width="11%"/>
	<tags:componentListColumnHeader component="${component}"  label="Collection" width="18%"/>
	<tags:componentListColumnHeader component="${component}"  label="Data Entry" width="18%"/>
	<tags:componentListColumnHeader component="${component}"  label="Validation" width="18%"/>
	<tags:componentListColumnHeader component="${component}"  label="Summary" width="21%"/>
</tags:listRow>
</content>


<tags:list component="${component}">
	
	<tags:listRow>
		<tags:listCell styleClass="actionButton"> 
			<tags:listItemSelect component="${component}" listIndex="${iterator.index}" entityType="instrument" mode="le"/>
		</tags:listCell>
		<tags:listCell styleClass="actionButton">
		   <c:choose>
		        <c:when test="${fn:startsWith(item.instrTypeEncoded, 'macdiagnosis')}">
					<tags:listInstrumentActionURLStandardButtons actionId="lava.crms.assessment.diagnosis.${item.instrTypeEncoded}" idParam="${item.id}" instrTypeEncoded="${item.instrTypeEncoded}" locked="${item.locked}"/>
				</c:when>
			    <c:when test="${not empty instrumentConfig[item.instrTypeEncoded]}">
					<tags:listInstrumentActionURLStandardButtons actionId="lava.crms.assessment.instrument.${item.instrTypeEncoded}" idParam="${item.id}" instrTypeEncoded="${item.instrTypeEncoded}" locked="${item.locked}"/>
				</c:when>
				<c:otherwise><commit_msg>fixed for Tomcat 7 compatibility, an attribute name was not preceded by whitespace<commit_after><%@ include file="/WEB-INF/jsp/includes/include.jsp" %>

<c:set var="component">${param.component}</c:set>

<content tag="listFilters">
</content>

<content tag="customActions">
	<tags:actionURLButton buttonText="Add" actionId="lava.crms.assessment.instrument.instrument" eventId="instrument__add" component="${component}" locked="${currentVisit.locked}"/>	    
</content>

<content tag="groupActions">
<tags:listInstrumentPrototypeGroupRow groupPrototype="${groupPrototype}" groupComponent="instrumentGroup" pageName="${component}" locked="${currentVisit.locked}"/>
<tags:listSelectedItemsGroupRow listComponent="${component}" groupComponent="instrumentGroup" pageName="${component}" selectedCountMsgKey="instrumentGroup.selectedCount" locked="${currentVisit.locked}"/>
</content>

<content tag="listColumns">
<tags:listRow>
	<tags:componentListColumnHeader component="${component}"  label="&nbsp;" width="2%"/>
	<tags:componentListColumnHeader component="${component}"  label="Action" width="12%"/>
	<tags:componentListColumnHeader component="${component}"  label="Measure" width="11%"/>
	<tags:componentListColumnHeader component="${component}"  label="Collection" width="18%"/>
	<tags:componentListColumnHeader component="${component}"  label="Data Entry" width="18%"/>
	<tags:componentListColumnHeader component="${component}"  label="Validation" width="18%"/>
	<tags:componentListColumnHeader component="${component}"  label="Summary" width="21%"/>
</tags:listRow>
</content>


<tags:list component="${component}">
	
	<tags:listRow>
		<tags:listCell styleClass="actionButton"> 
			<tags:listItemSelect component="${component}" listIndex="${iterator.index}" entityType="instrument" mode="le"/>
		</tags:listCell>
		<tags:listCell styleClass="actionButton">
		   <c:choose>
		        <c:when test="${fn:startsWith(item.instrTypeEncoded, 'macdiagnosis')}">
					<tags:listInstrumentActionURLStandardButtons actionId="lava.crms.assessment.diagnosis.${item.instrTypeEncoded}" idParam="${item.id}" instrTypeEncoded="${item.instrTypeEncoded}" locked="${item.locked}"/>
				</c:when>
			    <c:when test="${not empty instrumentConfig[item.instrTypeEncoded]}">
					<tags:listInstrumentActionURLStandardButtons actionId="lava.crms.assessment.instrument.${item.instrTypeEncoded}" idParam="${item.id}" instrTypeEncoded="${item.instrTypeEncoded}" locked="${item.locked}"/>
				</c:when>
				<c:otherwise>
{'fraction_non_alphanumeric': 0.1799511996746645, 'fraction_numerical': 0.005490036600244001, 'mean_word_length': 9.038775510204081, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 77, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '1695610', 'n_tokens_mistral': 1493, 'n_tokens_neox': 1410, 'n_words': 208}