<commit_before>{{!
    Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file>
    Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
    Created By: <EMAIL>
    Maintained By: <EMAIL>
}}

{{#instance}}
<section class="info">
  {{#is_info_pin}}
  <div class="clearfix">
    {{{render '/static/mustache/base_objects/info-pin.mustache'}}}
  </div>
  {{/is_info_pin}}

  {{^is_info_pin}}
    {{#is_allowed 'update' instance context='for'}}
      <div class="details-wrap">
        <a class="btn btn-small btn-draft dropdown-toggle" href="#" data-toggle="dropdown"><i class="grcicon-setup-color"></i></a>
        <ul class="dropdown-menu" aria-labelledby="drop1" role="menu">
          {{{render_hooks instance.class.shortName 'info_widget_actions'}}}
          <li>
            <a href="javascript://" data-toggle="modal-ajax-form" data-object-plural="{{model.table_plural}}" data-object-singular="{{model.model_singular}}" data-modal-reset="reset" data-modal-class="modal-wide" title="Edit {{model.model_title}}" data-object-id="{{instance.id}}">
              <i class="grcicon-edit"></i>
              Edit Workflow Info
            </a>
          </li>
          <li>
            <workflow-clone workflow="instance">
              <a href="javascript://">
                <i class="grcicon-clone"></i>
                Clone Workflow
              </a>
            </workflow-clone>
          </li>
          {{#if instance.recurrences}}
          <li>
            <workflow-start-cycle workflow="instance">
              <a href="#workflowStart" {{^instance.task_groups.length}}disabled="disabled"{{/task_groups}}>
                <i class="grcicon-manual"></i>
                Manually Start a Cycle
              </a>
            </workflow-start-cycle>
          </li>
          <li>
            <workflow-deactivate workflow="instance">
              <a href="#workflowStart" {{^instance.task_groups.length}}disabled="disabled"{{/task_groups}}>
                <i class="grcicon-archive"></i>
                Archive workflow
              </a>
            </workflow-deactivate>
          </li>
          {{/if}}<commit_msg>CORE-979 Hides manually start button when cycle can't be created<commit_after>{{!
    Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file>
    Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
    Created By: <EMAIL>
    Maintained By: <EMAIL>
}}

{{#instance}}
<section class="info">
  {{#is_info_pin}}
  <div class="clearfix">
    {{{render '/static/mustache/base_objects/info-pin.mustache'}}}
  </div>
  {{/is_info_pin}}

  {{^is_info_pin}}
    {{#is_allowed 'update' instance context='for'}}
      <div class="details-wrap">
        <a class="btn btn-small btn-draft dropdown-toggle" href="#" data-toggle="dropdown"><i class="grcicon-setup-color"></i></a>
        <ul class="dropdown-menu" aria-labelledby="drop1" role="menu">
          {{{render_hooks instance.class.shortName 'info_widget_actions'}}}
          <li>
            <a href="javascript://" data-toggle="modal-ajax-form" data-object-plural="{{model.table_plural}}" data-object-singular="{{model.model_singular}}" data-modal-reset="reset" data-modal-class="modal-wide" title="Edit {{model.model_title}}" data-object-id="{{instance.id}}">
              <i class="grcicon-edit"></i>
              Edit Workflow Info
            </a>
          </li>
          <li>
            <workflow-clone workflow="instance">
              <a href="javascript://">
                <i class="grcicon-clone"></i>
                Clone Workflow
              </a>
            </workflow-clone>
          </li>
          {{#if instance.recurrences}}
          <li>
            <workflow-start-cycle workflow="instance">
              <workflow-activate workflow="instance" deferredData="can_activate">
                {{#can_activate}}
                  <a href="#workflowStart" {{^instance.task_groups.length}}disabled="disabled"{{/task_groups}}>
                    <i class="grcicon-manual"></i>
                    Manually Start a Cycle
                  </a>
                {{/can_activate}}
              </workflow-activate>
            </workflow-start-cycle>
          </li>
          <li>
            <workflow-deactivate workflow="instance">
              <a href="#workflowStart" {{^instance.task_groups.length}}disabled="disabled"{{/task_groups}}>
                <i class="grcicon-archive"></i>
                Archive workflow
              </a>
            </workflow-deactivate>
          </li>
          {{/if}}
{'fraction_non_alphanumeric': 0.1665219279201042, 'fraction_numerical': 0.0036908380373425966, 'mean_word_length': 2.1794340924775706, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 91, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2140076', 'n_tokens_mistral': 1397, 'n_tokens_neox': 1344, 'n_words': 248}