<commit_before><%--
  Created by IntelliJ IDEA.
  User: da
  Date: 11/30/13
  Time: 10:20 PM
  To change this template use File | Settings | File Templates.
--%>

<div id="manageDiv">
  <h3>Define subsets for ${dataset.description}</h3>
  <g:formRemote name="subsetForm" url="[controller: 'upload', action: 'createSubset']" update="subsetDiv">
    <div id="imageListDiv">
      <g:render template="imageList" model="[dataset: dataset, imageIDs: []]"/>
    </div>
    <div id="subsetDiv">
      <g:render template="subset" model="[subsets: dataset.subsets]"/>
      <br/>
      <label for="subsetName">New subset:</label>
      <br/>
      <g:textField name="subsetName" id="subsetName" />
    <g:submitButton name="subsetSubmit" value="Define" class="button"/>
    </div>
    <g:hiddenField name="datasetID" value="${dataset.id}" />
  </g:formRemote>

</div><commit_msg>change dataset on define form. may need another assocbuttons call<commit_after><%@ page import="edu.sfsu.ntd.phenometrainer.Dataset" %>
<%--
  Created by IntelliJ IDEA.
  User: da
  Date: 11/30/13
  Time: 10:20 PM
  To change this template use File | Settings | File Templates.
--%>

<div id="manageDiv">
  %{--<h3>Define subsets for ${dataset.description}</h3>--}%
  <h3>Define subsets for:<g:select name="datasetID" from="${Dataset.findAll()}" optionValue="description" optionKey="id" value="${dataset.id}"
                        onchange="${remoteFunction(controller: "upload", action: "dataset",
                                params: '\'datasetID=\' + this.value', update: 'datasetDiv')}"/></h3>
  <g:formRemote name="subsetForm" url="[controller: 'upload', action: 'createSubset']" update="manageDiv" class="validatedForm" onSuccess="assocButtons()">
    <div id="imageListDiv">
      <g:render template="imageList" model="[dataset: dataset, imageIDs: []]"/>
    </div>
    <div id="subsetDiv">
      <g:render template="subset" model="[subsets: dataset.subsets]"/>
      <br/>
      <label for="subsetName">New subset:</label>
      <br/>
      <g:textField name="subsetName" id="subsetName" />
    <g:submitButton name="subsetSubmit" value="Define" class="button"/>
    </div>
    <g:hiddenField name="datasetID" value="${dataset.id}" />
  </g:formRemote>

</div>
{'fraction_non_alphanumeric': 0.18635755684351316, 'fraction_numerical': 0.0115916183682568, 'mean_word_length': 3.94273127753304, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '5432968', 'n_tokens_mistral': 754, 'n_tokens_neox': 720, 'n_words': 161}