<commit_before><div class="action-bar">
  <ul class="change-links">
    {{> /static/mustache/base_objects/edit_object_link.mustache}}
    <li>
      <task-group-clone task-group="instance">
        <a href="javascript://">
          Clone Task Group
        </a>
      </task-group-clone>
    </li>
  </ul>
</div>

<div class="small-info">
  <div class="row-fluid">
    <div class="span12">
      <h6>Task Group</h6>
      <h3 class="taskGroupTitle">
        {{instance.title}}
        {{!<a href="javascript://" class="toggleClosest"><i class="grcicon-edit"></i></a>}}
      </h3>
      <div class="taskGroupTitleForm edit-field hide">
        <input type="text" value="{{title}}" class="pull-left saveTaskGroupField" data-index="{{@index}}" data-field="title">
        <a href="javascript://" id="editFieldSave" class="btn btn-success pull-left toggleClosest">Save</a>
        <a href="javascript://" id="editFieldCancel" class="pull-left toggleClosest cancel-text"><i class="grcicon-x-grey"></i>Cancel</a>
      </div>
    </div>
  </div>

  {{#using workflow=instance.workflow}}
    {{#if_equals workflow.status 'Active'}}
      <div class="row-fluid">
        <div class="span12">
            <div class="alert">
              <button type="button" class="close" data-dismiss="alert">
                <span aria-hidden="true">&times;</span><commit_msg>make sure clone task group only visible with correct permissions<commit_after>
<div class="action-bar">
  <ul class="change-links">
    {{> /static/mustache/base_objects/edit_object_link.mustache}}
    {{#is_allowed 'update' instance context='for'}}
    <li>
      <task-group-clone task-group="instance">
        <a href="javascript://">
          Clone Task Group
        </a>
      </task-group-clone>
    </li>
    {{/is_allowed}}
  </ul>
</div>

<div class="small-info">
  <div class="row-fluid">
    <div class="span12">
      <h6>Task Group</h6>
      <h3 class="taskGroupTitle">
        {{instance.title}}
        {{!<a href="javascript://" class="toggleClosest"><i class="grcicon-edit"></i></a>}}
      </h3>
      <div class="taskGroupTitleForm edit-field hide">
        <input type="text" value="{{title}}" class="pull-left saveTaskGroupField" data-index="{{@index}}" data-field="title">
        <a href="javascript://" id="editFieldSave" class="btn btn-success pull-left toggleClosest">Save</a>
        <a href="javascript://" id="editFieldCancel" class="pull-left toggleClosest cancel-text"><i class="grcicon-x-grey"></i>Cancel</a>
      </div>
    </div>
  </div>

  {{#using workflow=instance.workflow}}
    {{#if_equals workflow.status 'Active'}}
      <div class="row-fluid">
        <div class="span12">
            <div class="alert">
              <button type="button" class="close" data-dismiss="alert">
                <span aria-hidden="true">&times;</span>
{'fraction_non_alphanumeric': 0.19485553206483439, 'fraction_numerical': 0.005637773079633545, 'mean_word_length': 3.0966810966810967, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 81, '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': '534060', 'n_tokens_mistral': 929, 'n_tokens_neox': 908, 'n_words': 172}