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

<c:set var="component">${param.component}</c:set>
<c:set var="modeString" value="${component}_mode"/>
<c:set var="componentMode" value="${requestScope[modeString]}"/>
<c:set var="viewString" value="${component}_view"/>
<c:set var="componentView" value="${requestScope[viewString]}"/>

<%-- TODO: use the flow state to determine whether to display import setup (with an Import button)
or import results (with a Close button) --%>

<page:applyDecorator name="component.entity.section">
  <page:param name="sectionId">setup</page:param>
  <page:param name="sectionNameKey">import.setup.section</page:param>
	<tags:createField property="definitionName" component="${component}"/>
	<tags:createField property="dataFileInput" component="${component}"/>  <%-- MultipartFile upload control --%>
	<tags:createField property="notes" component="${component}"/>
</page:applyDecorator>
<commit_msg>1) switch from definitionName to definitionId so can use core method to retrieve importDefinition 2) go back to using fileUpload tag instead of making data file a model property because Spring not binding to MultipartFile without a PropertyEditor (and no time for that now)<commit_after><%@ include file="/WEB-INF/jsp/includes/include.jsp" %>

<c:set var="component">${param.component}</c:set>
<c:set var="modeString" value="${component}_mode"/>
<c:set var="componentMode" value="${requestScope[modeString]}"/>
<c:set var="viewString" value="${component}_view"/>
<c:set var="componentView" value="${requestScope[viewString]}"/>

<%-- TODO: use the flow state to determine whether to display import setup (with an Import button)
or import results (with a Close button) --%>

<page:applyDecorator name="component.entity.section">
  <page:param name="sectionId">setup</page:param>
  <page:param name="sectionNameKey">import.setup.section</page:param>
	<tags:createField property="definitionId" component="${component}"/>
	<tags:fileUpload paramName="uploadFile"  component="${component}"/>
	<div class="verticalSpace10">&nbsp;</div>
	<tags:createField property="notes" component="${component}"/>
</page:applyDecorator>

{'fraction_non_alphanumeric': 0.1693511274735389, 'fraction_numerical': 0.0018407731247123793, 'mean_word_length': 7.730923694779117, 'pattern_counts': {'":': 0, '<': 40, '<?xml version=': 0, '>': 40, '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': '1115465', 'n_tokens_mistral': 628, 'n_tokens_neox': 617, 'n_words': 160}