<commit_before>{{!
    Copyright (C) 2014 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.cycles.length}}
<li class="inner-nav-button">
  <button type="submit" href="#workflowStart" data-ggrc-action="start-cycle" data-toggle="modal" class="btn" {{^instance.task_groups.length}}disabled="disabled"{{/task_groups}}>
    Start Workflow
  </button>
</li>
{{/instance}}
<commit_msg>Use widget count instead of cycles.length<commit_after>{{!
    Copyright (C) 2014 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>
}}

{{#widget_list}}
{{#if_equals "Current Cycle" internav_display}}
{{!
    We can't use '^instance.cycles.length' instead of count, because
    it isn't live bound and doesn't get updated when Start Workflow is clicked
}}
{{^count}}
  <li class="inner-nav-button">
    <button type="submit" href="#workflowStart" data-ggrc-action="start-cycle" data-toggle="modal" class="btn" {{^instance.task_groups.length}}disabled="disabled"{{/task_groups}}>
      Start Workflow
    </button>
  </li>
{{/count}}
{{/if_equals}}
{{/widget_list}}

{'fraction_non_alphanumeric': 0.1664179104477612, 'fraction_numerical': 0.008955223880597015, 'mean_word_length': 4.755364806866953, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '983962', 'n_tokens_mistral': 446, 'n_tokens_neox': 431, 'n_words': 111}