<commit_before>{% load i18n %}
<form role="form" method="post" action="{{request.prefix}}/execute/launch/exporttofolder/">{% csrf_token %}
  <table>
    <tr>
      <td style="vertical-align:top; padding-left:15px">
        <button type="submit" class="btn btn-primary" id="exporttofolder" value="{% trans "export"|capfirst %}">{% trans "export"|capfirst %}</button>
      </td>
      <td colspan='5' style="padding-left:15px">
        <p>{% trans "Exports the plan (purchase orders, distribution orders and manufacturing orders) as a set of CSV files." %}</p>
      </td>
    </tr>
    <tr>
      <td></td>
      <td style="padding-left:15px"><strong>{% trans 'file name'|capfirst %}</strong></td>
      <td><strong>{% trans 'size'|capfirst %}</strong></td>
      <td><strong>{% trans 'changed'|capfirst %}</strong></td>
      <td>
        <div class="btn btn-xs btn-primary" style="margin-bottom: 5px" data-toggle="tooltip" data-placement="top" 
          data-original-title="{% trans 'Download all files' %}" onClick="downloadExportFile(1)">
          <span class="fa fa-arrow-down"></span>
        </div>
      </td>
      <td>
        <div class="btn btn-xs btn-danger deletefile" style="margin-bottom:5px" data-toggle="tooltip" data-placement="top"
          data-original-title="{% trans 'Delete all files' %}" onClick="deleteExportFile(1, {{filesexported}})">
          <span class="fa fa-close"></span>
        </div>
      </td>
    </tr></form>
    {% for j in filesexported %}
    <tr data-file="{{j.0}}">
      <td></td>
      <td style="padding-left:15px">{{j.0}}</td>
      <td>{{j.2}}</td>
      <td>{{j.1}}</td>
      <td>
        <div class="btn btn-xs btn-primary downloadfile" style="margin-bottom:5px;" data-toggle="tooltip"
          data-placement="top" data-original-title="Download file" onClick="downloadExportFile(1, '{{j.0}}')">
          <span class="fa fa-arrow-down"></span>
        </div>
      </td>
      <td>
        <div class="btn btn-xs btn-danger deletefile" style="margin-bottom:5px" data-toggle="tooltip"
          data-placement="top" data-original-title="Delete file from folder" onClick="deleteExportFile(1, '{{j.0}}')">
          <span class="fa fa-close"></span>
        </div>
      </td>
    </tr>
    {% endfor %}
  </table>
</form>
<script>
function deleteExportFile(folder, filename) {
  $.jgrid.hideModal("#searchmodfbox_grid");
  var dialogcontent;
  if (typeof filename === 'object') {<commit_msg>fix invalid html in exporttofolder template<commit_after>{% load i18n %}
<form role="form" method="post" action="{{request.prefix}}/execute/launch/exporttofolder/">{% csrf_token %}
  <table>
    <tr>
      <td style="vertical-align:top; padding-left:15px">
        <button type="submit" class="btn btn-primary" id="exporttofolder" value="{% trans "export"|capfirst %}">{% trans "export"|capfirst %}</button>
      </td>
      <td colspan='5' style="padding-left:15px">
        <p>{% trans "Exports the plan (purchase orders, distribution orders and manufacturing orders) as a set of CSV files." %}</p>
      </td>
    </tr>
    <tr>
      <td></td>
      <td style="padding-left:15px"><strong>{% trans 'file name'|capfirst %}</strong></td>
      <td><strong>{% trans 'size'|capfirst %}</strong></td>
      <td><strong>{% trans 'changed'|capfirst %}</strong></td>
      <td>
        <div class="btn btn-xs btn-primary" style="margin-bottom: 5px" data-toggle="tooltip" data-placement="top" 
          data-original-title="{% trans 'Download all files' %}" onClick="downloadExportFile(1)">
          <span class="fa fa-arrow-down"></span>
        </div>
      </td>
      <td>
        <div class="btn btn-xs btn-danger deletefile" style="margin-bottom:5px" data-toggle="tooltip" data-placement="top"
          data-original-title="{% trans 'Delete all files' %}" onClick="deleteExportFile(1, {{filesexported}})">
          <span class="fa fa-close"></span>
        </div>
      </td>
    </tr>
    {% for j in filesexported %}
    <tr data-file="{{j.0}}">
      <td></td>
      <td style="padding-left:15px">{{j.0}}</td>
      <td>{{j.2}}</td>
      <td>{{j.1}}</td>
      <td>
        <div class="btn btn-xs btn-primary downloadfile" style="margin-bottom:5px;" data-toggle="tooltip"
          data-placement="top" data-original-title="Download file" onClick="downloadExportFile(1, '{{j.0}}')">
          <span class="fa fa-arrow-down"></span>
        </div>
      </td>
      <td>
        <div class="btn btn-xs btn-danger deletefile" style="margin-bottom:5px" data-toggle="tooltip"
          data-placement="top" data-original-title="Delete file from folder" onClick="deleteExportFile(1, '{{j.0}}')">
          <span class="fa fa-close"></span>
        </div>
      </td>
    </tr>
    {% endfor %}
  </table>
</form>
<script>
function deleteExportFile(folder, filename) {
  $.jgrid.hideModal("#searchmodfbox_grid");
  var dialogcontent;
  if (typeof filename === 'object') {
{'fraction_non_alphanumeric': 0.20081218274111676, 'fraction_numerical': 0.01015228426395939, 'mean_word_length': 3.136020151133501, 'pattern_counts': {'":': 0, '<': 134, '<?xml version=': 0, '>': 134, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4150285', 'n_tokens_mistral': 1650, 'n_tokens_neox': 1583, 'n_words': 347}