<commit_before>
<div class="ui large header">Running Tales</div>


<div class="ui icon message">
    <i class="small blue play icon"></i>
    <div class="content">
        <div class="ui grid">
            <div class="eight wide column">
                <p>There are {{model.length}} Tales Currently Running</p>
            </div>
        </div>

    </div>
</div>


<table class="ui celled padded table">
    <thead>
    <tr>

        <th>Name</th>
        <th>Image Name</th>
        <th>Folder Name</th>
        <th>Created</th>
        <th>Last Activity</th>
        <th>Status</th>
        <th>Launch</th>
    </tr></thead>
    <tbody>
    {{#each model as |instance|}}
        <tr class="center aligned">
            <td>
                <div class="ui center aligned header">{{instance.name}}</div>
            </td>
            <td>
                {{instance.image.name}}
            </td>
            <td>
                {{instance.folder.name}}
            </td>
            <td>
              {{from-now instance.created}}
            </td>
            <td>
              {{from-now instance.lastActivity}}
            </td>
            <td>
              {{instance.status}}
            </td>
            <td>
                <div class="ui compact buttons">
                  <a href="{{instance.url}}" target="_blank"><div class="ui green button"><i class="play icon"></i> </div></a>
                  <div class="ui red button" {{action 'openDeleteModal' instance._id}}><i class="remove icon"></i></div>
                </div>
            </td>
        </tr>

        <div class="ui {{instance._id}} modal" style="display: none">
            <i class="close icon"></i>
            <div class="header">
                Really Delete Instance?
            </div>
            <div class="image content">
                <div class="description">
                    <p>This will permanently delete the '{{instance.name}}' instance. Continue?</p>
                </div>
            </div>
            <div class="actions">
                <div class="ui black deny button" {{action 'denyDelete'}}>
                    No
                </div>
                <div class="ui positive right labeled icon button" {{action 'approveDelete' instance}}>
                    Yes
                    <i class="checkmark icon"></i>
                </div>
            </div>
        </div>
    {{/each}}
    </tbody>
</table>

{{#if error }}

  <div class="ui red message">
      <div class="ui header">
          Errors
      </div>
      <ul>
        {{{error}}}
      </ul>
  </div>

{{/if}}<commit_msg>We can either go to (visit) or close instance on the status page<commit_after>
<div class="ui large header">Running Tales</div>


<div class="ui icon message">
    <i class="small blue play icon"></i>
    <div class="content">
        <div class="ui grid">
            <div class="eight wide column">
                <p>There are {{model.length}} Tales Currently Running</p>
            </div>
        </div>

    </div>
</div>


<table class="ui celled padded table">
    <thead>
    <tr>

        <th>Name</th>
        <th>Image Name</th>
        <th>Folder Name</th>
        <th>Created</th>
        <th>Last Activity</th>
        <th>Status</th>
        <th>Visit or Close</th>
    </tr></thead>
    <tbody>
    {{#each model as |instance|}}
        <tr class="center aligned">
            <td>
                <div class="ui center aligned header">{{instance.name}}</div>
            </td>
            <td>
                {{instance.image.name}}
            </td>
            <td>
                {{instance.folder.name}}
            </td>
            <td>
              {{from-now instance.created}}
            </td>
            <td>
              {{from-now instance.lastActivity}}
            </td>
            <td>
              {{instance.status}}
            </td>
            <td>
                <div class="ui compact buttons">
                  <a href="{{instance.url}}" target="_blank"><div class="ui green button"><i class="play icon"></i> </div></a>
                  <div class="ui red button" {{action 'openDeleteModal' instance._id}}><i class="remove icon"></i></div>
                </div>
            </td>
        </tr>

        <div class="ui {{instance._id}} modal" style="display: none">
            <i class="close icon"></i>
            <div class="header">
                Really Delete Instance?
            </div>
            <div class="image content">
                <div class="description">
                    <p>This will permanently delete the '{{instance.name}}' instance. Continue?</p>
                </div>
            </div>
            <div class="actions">
                <div class="ui black deny button" {{action 'denyDelete'}}>
                    No
                </div>
                <div class="ui positive right labeled icon button" {{action 'approveDelete' instance}}>
                    Yes
                    <i class="checkmark icon"></i>
                </div>
            </div>
        </div>
    {{/each}}
    </tbody>
</table>

{{#if error }}

  <div class="ui red message">
      <div class="ui header">
          Errors
      </div>
      <ul>
        {{{error}}}
      </ul>
  </div>

{{/if}}

{'fraction_non_alphanumeric': 0.16104585070102312, 'fraction_numerical': 0.0, 'mean_word_length': 1.3973660308810172, 'pattern_counts': {'":': 0, '<': 187, '<?xml version=': 0, '>': 187, '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': '6504987', 'n_tokens_mistral': 1517, 'n_tokens_neox': 1451, 'n_words': 387}