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

<%-- note that component 'imporResult' is put into the ComponentCommand map as well
as the 'import' component. this is done when an import is executed and used to display 
results, when indicated by the flowState value. but still want 'import' as 
the "primary" component because this is what the handler is using as the default 
component object name so it used to set up the component mode and component view --%>
<c:set var="component" value="import"/>
<c:set var="viewString" value="${component}_view"/>
<c:set var="componentView" value="${requestScope[viewString]}"/>

<page:applyDecorator name="component.content">
  <page:param name="component">${component}</page:param>
  <page:param name="forceMain">true</page:param>
  <page:param name="hasFileUpload">true</page:param>
  <page:param name="pageHeadingArgs"></page:param>
 
<page:applyDecorator name="component.import.content">
  <page:param name="component">${component}</page:param>
 
	<c:if test="${flowState == 'edit'}"> 
 		<c:import url="/WEB-INF/jsp/core/importer/import/importSetupContent.jsp">
			<c:param name="component">${component}</c:param>
		</c:import>
	</c:if>	
	<c:if test="${flowState == 'result'}"> 
		<c:import url="/WEB-INF/jsp/core/importer/log/importLogContent.jsp">
			<c:param name="component">${component}</c:param>
		</c:import>
	</c:if>	
	
	</page:applyDecorator>    
</page:applyDecorator>	    

<%-- TODO: list of allImportLogs as secondary list, ala visits on Add Visit --%><commit_msg>now that import log following export redirects to a new flow rather than a 'result' state of the import flow, the import view need not be concerned with display a view for this state<commit_after><%@ include file="/WEB-INF/jsp/includes/include.jsp" %>

<c:set var="component" value="import"/>
<c:set var="viewString" value="${component}_view"/>
<c:set var="componentView" value="${requestScope[viewString]}"/>

<page:applyDecorator name="component.content">
  <page:param name="component">${component}</page:param>
  <page:param name="forceMain">true</page:param>
  <page:param name="hasFileUpload">true</page:param>
  <page:param name="pageHeadingArgs"></page:param>
 
<page:applyDecorator name="component.import.content">
  <page:param name="component">${component}</page:param>
 
	<c:import url="/WEB-INF/jsp/core/importer/import/importSetupContent.jsp">
		<c:param name="component">${component}</c:param>
	</c:import>
	
	</page:applyDecorator>    
</page:applyDecorator>	    

<%-- TODO: list of allImportLogs as secondary list, ala visits on Add Visit --%>
{'fraction_non_alphanumeric': 0.1674329501915709, 'fraction_numerical': 0.0, 'mean_word_length': 5.7642487046632125, 'pattern_counts': {'":': 0, '<': 58, '<?xml version=': 0, '>': 58, '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': '5320772', 'n_tokens_mistral': 850, 'n_tokens_neox': 818, 'n_words': 205}