<commit_before>{{#if canCancel}}
  {{#if cancel.isRunning}}
    {{loading-indicator height=true}}
  {{else}}
    <div class='action-button-container'>
      {{#if labelless}}{{#tooltip-on-element}}Cancel {{type}}{{/tooltip-on-element}}{{/if}}
      <button {{action (perform cancel)}} class="action-button--cancel" type="button" aria-label="Cancel {{type}}">
        {{svg-jar 'icon-failed' class="icon"}}
        <span class="label-align">Cancel {{type}}</span>
      </button>
    </div>
  {{/if}}
{{/if}}

{{#if canRestart}}
  {{#if restarters.isRunning}}
    {{loading-indicator height=true}}
  {{else}}
    <div class='action-button-container'>
      {{#if labelless}}{{#tooltip-on-element}}Restart {{type}}{{/tooltip-on-element}}{{/if}}
      <button {{action (perform restart)}} class="action-button--restart" aria-label="Restart {{type}}" type="button">
        {{svg-jar 'icon-restart' class="icon"}}
        <span class="label-align">Restart {{type}}</span>
      </button>
    </div>
    {{#unless features.enterpriseVersion}}
      {{#if features.proVersion}}
        {{#if canDebug}}
          <div class='action-button-container'>
            <button {{action (perform debug)}} class="action-button--debug" aria-label="Restart as debug {{type}}" type="button">
              {{#if labelless}}{{#tooltip-on-element}}Restart as debug {{type}}{{/tooltip-on-element}}{{/if}}
              {{svg-jar 'icon-debug' class="icon"}}
              <span class="label-align">Debug {{type}}</span>
            </button>
          </div>
        {{/if}}<commit_msg>Move action button tooltips inside button (#1387)<commit_after>{{#if canCancel}}
  {{#if cancel.isRunning}}
    {{loading-indicator height=true}}
  {{else}}
    <div class='action-button-container'>
      <button {{action (perform cancel)}} class="action-button--cancel" type="button" aria-label="Cancel {{type}}">
        {{#if labelless}}{{#tooltip-on-element}}Cancel {{type}}{{/tooltip-on-element}}{{/if}}
        {{svg-jar 'icon-failed' class="icon"}}
        <span class="label-align">Cancel {{type}}</span>
      </button>
    </div>
  {{/if}}
{{/if}}

{{#if canRestart}}
  {{#if restarters.isRunning}}
    {{loading-indicator height=true}}
  {{else}}
    <div class='action-button-container'>
      <button {{action (perform restart)}} class="action-button--restart" aria-label="Restart {{type}}" type="button">
        {{#if labelless}}{{#tooltip-on-element}}Restart {{type}}{{/tooltip-on-element}}{{/if}}
        {{svg-jar 'icon-restart' class="icon"}}
        <span class="label-align">Restart {{type}}</span>
      </button>
    </div>
    {{#unless features.enterpriseVersion}}
      {{#if features.proVersion}}
        {{#if canDebug}}
          <div class='action-button-container'>
            <button {{action (perform debug)}} class="action-button--debug" aria-label="Restart as debug {{type}}" type="button">
              {{#if labelless}}{{#tooltip-on-element}}Restart as debug {{type}}{{/tooltip-on-element}}{{/if}}
              {{svg-jar 'icon-debug' class="icon"}}
              <span class="label-align">Debug {{type}}</span>
            </button>
          </div>
        {{/if}}
{'fraction_non_alphanumeric': 0.21987381703470033, 'fraction_numerical': 0.0012618296529968455, 'mean_word_length': 3.2563758389261745, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, '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': '2221835', 'n_tokens_mistral': 997, 'n_tokens_neox': 982, 'n_words': 185}