<commit_before><div id="imageUploadrDiv">
  <h3>Upload image files</h3>
  <uploadr:add name="imageUploadr"
    path="${datasetDir + File.separator}img"
    direction="up"
    maxVisible="8"
    unsupported="${createLink(plugin: 'uploadr', controller: 'upload', action: 'warning')}"
    rating="false"
    voting="false"
    colorPicker="false"
    allowedExtensions="png"
    maxSize="${2**20 * 50}" />
</div>
<div id="segUploadrDiv">
  <h3>Upload segmented image files</h3>
  <uploadr:add name="segUploadr"
    path="${datasetDir + File.separator}bw"
    direction="up"
    maxVisible="8"
    unsupported="${createLink(plugin: 'uploadr', controller: 'upload', action: 'warning')}"
    rating="false"
    voting="false"
    colorPicker="false"
    allowedExtensions="png"
    maxSize="${2**20 * 50}" />
</div>
<div id="datasetFormDiv">
    <g:formRemote name="datasetForm" url="[controller: 'upload', action: 'createDataset']" update="uploadDiv">
      <label for="datasetName">Type a name for this data set:</label><g:textField name="datasetName"/><br />
      <g:hiddenField name="datasetDir" value="${datasetDir}"/>
      <g:submitButton name="datasetSubmit" value="Submit" class="button"/>
    </g:formRemote>
</div><commit_msg>use form remote<commit_after><div id="imageUploadrDiv">
  <h3>Upload image files</h3>
  <uploadr:add name="imageUploadr"
    path="${datasetDir + File.separator}img"
    direction="up"
    maxVisible="8"
    unsupported="${createLink(plugin: 'uploadr', controller: 'upload', action: 'warning')}"
    rating="false"
    voting="false"
    colorPicker="false"
    allowedExtensions="png"
    noSound="true"
    maxSize="${2**20 * 50}" />
</div>
<div id="segUploadrDiv">
  <h3>Upload segmented image files</h3>
  <uploadr:add name="segUploadr"
    path="${datasetDir + File.separator}bw"
    direction="up"
    maxVisible="8"
    unsupported="${createLink(plugin: 'uploadr', controller: 'upload', action: 'warning')}"
    rating="false"
    voting="false"
    colorPicker="false"
    allowedExtensions="png"
    noSound="true"
    maxSize="${2**20 * 50}" />
</div>
<div id="datasetFormDiv">
    <g:formRemote name="datasetForm"
                  url="[controller: 'upload', action: 'createDataset']"
                  update="uploadDiv"
                  before="if (\$('#datasetForm').valid()){"
                  after="}"
                  class="validatedForm">
      <label for="datasetName">Type a name for this data set:</label><g:textField name="datasetName"/><br />
      <g:hiddenField name="datasetDir" value="${datasetDir}"/>
      <g:submitButton name="datasetSubmit" value="Submit" class="button" />
    </g:formRemote>
</div>
{'fraction_non_alphanumeric': 0.1824653428250281, 'fraction_numerical': 0.011989509179467965, 'mean_word_length': 4.174418604651163, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, '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': '3733500', 'n_tokens_mistral': 844, 'n_tokens_neox': 832, 'n_words': 159}