<commit_before><form role="form" id="editCountermeasureOptionsForm" xmlns="http://www.w3.org/1999/html" >

  <div class="tabs infoWidth" style="width: 100%;">
    <ul>
      <li><a href="#summary">Summary</a></li>
      <li><a href="#description">Description</a></li>
    </ul>
    <div id="summary">
      <div class="form-group">
        <label for="theName" class="control-label">Countermeasure</label>
        <input class="optionsInput countermeasureUpdate form-control" type="text" name="theName" id="theName" style="float: right; width: 75%" date-error="Name is required" required>
        <div class="help-block with-errors"></div>
      </div>
      <div class="form-group">
        <label for="theTags" class="control-label">Tags</label>
        <input class="optionsInput countermeasureUpdate form-control" type="text" value="" id="theTags" name="theTags" style="float: right; width: 75%">
      </div>
      <div class="form-group">
        <label for="theType" class="control-label">Type</label>
        <select id="theType" name="theType" class="form-control" style="float: right; width: 75%">
          <option>Information</option>
          <option>Systems</option>
          <option>Software</option>
          <option>Hardware</option>
          <option>People</option>
        </select>
      </div>
    </div>   
    <div class="form-group" id="description">
      <textarea id="theDescription" class="countermeasureUpdate form-control" style="width: 100%" date-error="Description is required" required></textarea>
      <div class="help-block with-errors"></div>
    </div>   
  </div>
  <div class="inblock">
    <table class="left clickable-table" id="theEnvironments" style="width: 25%;">
      <thead>
        <tr><th id="addCountermeasureEnv" style="width: 15px;"> <i class="fa fa-plus"></i></th><th>Environment</th></tr>
      </thead>
      <tbody>
      </tbody>
    </table>

    <div class="tabs right" style="width: 75%;">
      <div id="Properties" class="clickable-table scrollableTable" style="width: 100%;" >
        <div class="form-group">
          <label for="theCountermeasureCost" class="control-label">Cost</label>
          <select id="theCountermeasureCost" name="theCountermeasureCost" class="form-control" style="float: right; width: 75%">
            <option>Low</option>
            <option>Medium</option>
            <option>High</option>
          </select>
        </div>
        <ul>
          <li><a href="#security">Security</a></li>
          <li><a href="#usability">Usability</a></li>
        </ul>
        <div id="security" class="clickable-table scrollableTable">
          <div class="inblock">
            <table id="theRequirements" class="left">
              <thead><tr><th id="addRequirementToCountermeasure" style="width: 15px;"> <i class="fa fa-plus"></i></th><th>Requirement</th></tr></thead>
              <tbody>
              </tbody>
            </table>
            <table id="theTargets" class="right">
              <thead><tr><th id="addTargetToCountermeasure" style="width: 30px;"> <i class="fa fa-plus"></i></th><th>Target</th><th>Effectiveness</th><th>Rationale</th></tr></thead>
              <tbody>
              </tbody>
            </table>
          </div>
          <table id="countermeasureProperties">
            <thead><tr><th id="addPropertytoCountermeasure" style="width: 15px;"> <i class="fa fa-plus"></i></th><th>Property</th><th>Value</th><th>Rationale</th></tr></thead>
            <tbody>
            </tbody>
          </table>
        </div>
        <div id="usability" class="clickable-table scrollableTable">
          <table id="theRoles" class="left" style="width: 100%">
            <thead><tr><th id="addRoleToCountermeasure" style="width: 15px;"> <i class="fa fa-plus"></i></th><th>Role</th></tr></thead>
            <tbody>
            </tbody>
          </table>
          <table id="thePersonas" style="width: 100%">
            <thead>
              <tr>
                <th>Task</th><th>Persona</th><th>Duration</th><th>Frequency</th><th>Demands</th><th>Goal Conflict</th>
              </tr>
            </thead>
            <tbody>
            </tbody>
          </table>
        </div>
      </div>
    </div>
  </div>
  <div class="row">
    <div class="form-group col-md-2 col-md-offset-5 footer">
      <button type="submit" class="btn btn-primary" id="UpdateCountermeasure">Update</button>
      <button type="submit" class="btn btn-secondary" id="CloseCountermeasure">Close</button>
    </div>
  </div>
  <div class="modal fade" id="ChooseTargetDialog" tabindex="-1" role="dialog" aria-labelledby="croc_label">
    <div class="modal-dialog" role="document">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
          <h4 class="modal-title" id="ChooseTargetDialogTitle">Choose a target</h4>
        </div>
        <div class="modal-body">
          <select class="form-control" id="chooseCountermeasureTargetSelect">
          </select>
        </div>
        <div class="modal-body">
          <select class="form-control" id="chooseTargetEffectivenessSelect">
            <option value="None">None</option>
            <option value="Low">Low</option>
            <option value="Medium">Medium</option>
            <option value="High">High</option>
          </select>
        </div>
        <div class="form-group">
          <label for="enterRationale" class="control-label">Rationale</label>
          <textarea rows="4" class="form-control" id="enterRationale" data-error="Rationale is required" required></textarea>
        </div>
        <div class="modal-footer">
          <div class="form-group col-md-2 col-md-offset-5">
            <button type="button" id="chooseTargetButton" class="btn btn-primary">Add</button>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="modal fade" id="EditCountermeasureTaskDialog" tabindex="-1" role="dialog" aria-labelledby="ectd_label">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title">Edit Impacted Task</h4>
      </div>
      <div class="modal-body">
        <div class="form-group">
          <label for="theTask" class="control-label">Task</label>
          <input class="form-control" type="text" name="theTask" id="theTask" readonly>
          <label for="thePersona" class="control-label">Persona</label>
          <input class="form-control" type="text" name="thePersona" id="thePersona" readonly>
          <label for="theDuration" class="control-label">Duration</label>
          <select class="form-control" id="theDuration">
            <option id="High Help">High Help</option>
            <option id="Medium Help">Medium Help</option>
            <option id="Low Help">Low Help</option>
            <option id="None">None</option>
            <option id="Low Hindrance">Low Hindrance</option>
            <option id="Medium Hindrance">Medium Hindrance</option>
            <option id="High Hindrance">High Hindrance</option>
          </select>
          <label for="theFrequency" class="control-label">Frequency</label>
          <select class="form-control" id="theFrequency">
            <option id="High Help">High Help</option>
            <option id="Medium Help">Medium Help</option>
            <option id="Low Help">Low Help</option>
            <option id="None">None</option>
            <option id="Low Hindrance">Low Hindrance</option>
            <option id="Medium Hindrance">Medium Hindrance</option>
            <option id="High Hindrance">High Hindrance</option>
          </select>
          <label for="theDemands" class="control-label">Demands</label>
          <select id="theDemands" class="form-control">
            <option id="High Help">High Help</option>
            <option id="Medium Help">Medium Help</option>
            <option id="Low Help">Low Help</option>
            <option id="None">None</option>
            <option id="Low Hindrance">Low Hindrance</option>
            <option id="Medium Hindrance">Medium Hindrance</option>
            <option id="High Hindrance">High Hindrance</option>
          </select>
          <label for="theGoalConflict" class="control-label">Goal Conflict</label>
          <select id="theGoalConflict" class="form-control">
            <option id="High Help">High Help</option>
            <option id="Medium Help">Medium Help</option>
            <option id="Low Help">Low Help</option>
            <option id="None">None</option>
            <option id="Low Hindrance">Low Hindrance</option>
            <option id="Medium Hindrance">Medium Hindrance</option>
            <option id="High Hindrance">High Hindrance</option>
          </select>
        </div>
      </div><commit_msg>Tidied up impacted task modal<commit_after><form role="form" id="editCountermeasureOptionsForm" xmlns="http://www.w3.org/1999/html" >

  <div class="tabs infoWidth" style="width: 100%;">
    <ul>
      <li><a href="#summary">Summary</a></li>
      <li><a href="#description">Description</a></li>
    </ul>
    <div id="summary">
      <div class="form-group">
        <label for="theName" class="control-label">Countermeasure</label>
        <input class="optionsInput countermeasureUpdate form-control" type="text" name="theName" id="theName" style="float: right; width: 75%" date-error="Name is required" required>
        <div class="help-block with-errors"></div>
      </div>
      <div class="form-group">
        <label for="theTags" class="control-label">Tags</label>
        <input class="optionsInput countermeasureUpdate form-control" type="text" value="" id="theTags" name="theTags" style="float: right; width: 75%">
      </div>
      <div class="form-group">
        <label for="theType" class="control-label">Type</label>
        <select id="theType" name="theType" class="form-control" style="float: right; width: 75%">
          <option>Information</option>
          <option>Systems</option>
          <option>Software</option>
          <option>Hardware</option>
          <option>People</option>
        </select>
      </div>
    </div>   
    <div class="form-group" id="description">
      <textarea id="theDescription" class="countermeasureUpdate form-control" style="width: 100%" date-error="Description is required" required></textarea>
      <div class="help-block with-errors"></div>
    </div>   
  </div>
  <div class="inblock">
    <table class="left clickable-table" id="theEnvironments" style="width: 25%;">
      <thead>
        <tr><th id="addCountermeasureEnv" style="width: 15px;"> <i class="fa fa-plus"></i></th><th>Environment</th></tr>
      </thead>
      <tbody>
      </tbody>
    </table>

    <div class="tabs right" style="width: 75%;">
      <div id="Properties" class="clickable-table scrollableTable" style="width: 100%;" >
        <div class="form-group">
          <label for="theCountermeasureCost" class="control-label">Cost</label>
          <select id="theCountermeasureCost" name="theCountermeasureCost" class="form-control" style="float: right; width: 75%">
            <option>Low</option>
            <option>Medium</option>
            <option>High</option>
          </select>
        </div>
        <ul>
          <li><a href="#security">Security</a></li>
          <li><a href="#usability">Usability</a></li>
        </ul>
        <div id="security" class="clickable-table scrollableTable">
          <div class="inblock">
            <table id="theRequirements" class="left">
              <thead><tr><th id="addRequirementToCountermeasure" style="width: 15px;"> <i class="fa fa-plus"></i></th><th>Requirement</th></tr></thead>
              <tbody>
              </tbody>
            </table>
            <table id="theTargets" class="right">
              <thead><tr><th id="addTargetToCountermeasure" style="width: 30px;"> <i class="fa fa-plus"></i></th><th>Target</th><th>Effectiveness</th><th>Rationale</th></tr></thead>
              <tbody>
              </tbody>
            </table>
          </div>
          <table id="countermeasureProperties">
            <thead><tr><th id="addPropertytoCountermeasure" style="width: 15px;"> <i class="fa fa-plus"></i></th><th>Property</th><th>Value</th><th>Rationale</th></tr></thead>
            <tbody>
            </tbody>
          </table>
        </div>
        <div id="usability" class="clickable-table scrollableTable">
          <table id="theRoles" class="left" style="width: 100%">
            <thead><tr><th id="addRoleToCountermeasure" style="width: 15px;"> <i class="fa fa-plus"></i></th><th>Role</th></tr></thead>
            <tbody>
            </tbody>
          </table>
          <table id="thePersonas" style="width: 100%">
            <thead>
              <tr>
                <th>Task</th><th>Persona</th><th>Duration</th><th>Frequency</th><th>Demands</th><th>Goal Conflict</th>
              </tr>
            </thead>
            <tbody>
            </tbody>
          </table>
        </div>
      </div>
    </div>
  </div>
  <div class="row">
    <div class="form-group col-md-2 col-md-offset-5 footer">
      <button type="submit" class="btn btn-primary" id="UpdateCountermeasure">Update</button>
      <button type="submit" class="btn btn-secondary" id="CloseCountermeasure">Close</button>
    </div>
  </div>
  <div class="modal fade" id="ChooseTargetDialog" tabindex="-1" role="dialog" aria-labelledby="croc_label">
    <div class="modal-dialog" role="document">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
          <h4 class="modal-title" id="ChooseTargetDialogTitle">Choose a target</h4>
        </div>
        <div class="modal-body">
          <select class="form-control" id="chooseCountermeasureTargetSelect">
          </select>
        </div>
        <div class="modal-body">
          <select class="form-control" id="chooseTargetEffectivenessSelect">
            <option value="None">None</option>
            <option value="Low">Low</option>
            <option value="Medium">Medium</option>
            <option value="High">High</option>
          </select>
        </div>
        <div class="form-group">
          <label for="enterRationale" class="control-label">Rationale</label>
          <textarea rows="4" class="form-control" id="enterRationale" data-error="Rationale is required" required></textarea>
        </div>
        <div class="modal-footer">
          <div class="form-group col-md-2 col-md-offset-5">
            <button type="button" id="chooseTargetButton" class="btn btn-primary">Add</button>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="modal fade" id="EditCountermeasureTaskDialog" tabindex="-1" role="dialog" aria-labelledby="ectd_label">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title">Edit Impacted Task</h4>
      </div>
      <div class="modal-body">
        <div class="form-group">
          <label for="theTask" class="control-label">Task</label>
          <input class="form-control" type="text" name="theTask" id="theTask" readonly>
        </div>
        <div class="form-group">
          <label for="thePersona" class="control-label">Persona</label>
          <input class="form-control" type="text" name="thePersona" id="thePersona" readonly>
        </div>
        <div class="form-group">
          <label for="theDuration" class="control-label">Duration</label>
          <select class="form-control" id="theDuration">
            <option id="High Help">High Help</option>
            <option id="Medium Help">Medium Help</option>
            <option id="Low Help">Low Help</option>
            <option id="None">None</option>
            <option id="Low Hindrance">Low Hindrance</option>
            <option id="Medium Hindrance">Medium Hindrance</option>
            <option id="High Hindrance">High Hindrance</option>
          </select>
        </div>
        <div class="form-group">
          <label for="theFrequency" class="control-label">Frequency</label>
          <select class="form-control" id="theFrequency">
            <option id="High Help">High Help</option>
            <option id="Medium Help">Medium Help</option>
            <option id="Low Help">Low Help</option>
            <option id="None">None</option>
            <option id="Low Hindrance">Low Hindrance</option>
            <option id="Medium Hindrance">Medium Hindrance</option>
            <option id="High Hindrance">High Hindrance</option>
          </select>
        </div>
        <div class="form-group">
          <label for="theDemands" class="control-label">Demands</label>
          <select id="theDemands" class="form-control">
            <option id="High Help">High Help</option>
            <option id="Medium Help">Medium Help</option>
            <option id="Low Help">Low Help</option>
            <option id="None">None</option>
            <option id="Low Hindrance">Low Hindrance</option>
            <option id="Medium Hindrance">Medium Hindrance</option>
            <option id="High Hindrance">High Hindrance</option>
          </select>
        </div>
        <div class="form-group">
          <label for="theGoalConflict" class="control-label">Goal Conflict</label>
          <select id="theGoalConflict" class="form-control">
            <option id="High Help">High Help</option>
            <option id="Medium Help">Medium Help</option>
            <option id="Low Help">Low Help</option>
            <option id="None">None</option>
            <option id="Low Hindrance">Low Hindrance</option>
            <option id="Medium Hindrance">Medium Hindrance</option>
            <option id="High Hindrance">High Hindrance</option>
          </select>
        </div>
      </div>
{'fraction_non_alphanumeric': 0.17429443173150266, 'fraction_numerical': 0.005775307834804402, 'mean_word_length': 2.720105391163356, 'pattern_counts': {'":': 0, '<': 661, '<?xml version=': 0, '>': 661, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '3628674', 'n_tokens_mistral': 5542, 'n_tokens_neox': 5290, 'n_words': 1046}