<commit_before>{{#if linkButton}}
  <a {{action 'open'}} href="#" class="ember-remodal outer link text {{buttonClasses}} {{outerButtonClasses}}" data-test-id="linkButton">{{linkButton}}</a>
{{else if openLink}}
  <a {{action 'open'}} href="#" class="ember-remodal outer link text {{buttonClasses}} {{outerButtonClasses}} {{openLinkClasses}}" data-test-id="openLink">{{openLink}}</a>
{{else if openButton}}
  <button {{action 'open'}} class="ember-remodal outer open button {{buttonClasses}} {{outerButtonClasses}} {{openButtonClasses}}" data-test-id="openButton">{{openButton}}</button>
{{/if}}

<span {{action 'open'}} id="open-button-{{elementId}}"></span>

<div data-remodal-id="{{elementId}}" class="ember-remodal {{name}} {{animationState}} window {{if disableForeground 'invisible'}} {{modalClasses}}" data-test-id="modalWindow">

  {{#unless disableNativeClose}}
    <button {{action 'close'}} class="remodal-close ember-remodal inner native close" data-test-id="nativeClose"></button>
  {{/unless}}

  {{#if title}}
    <h2 class="ember-remodal inner title text" data-test-id="title">{{title}}</h2>
  {{/if}}

  {{#if text}}
    <p class="ember-remodal inner paragraph text" data-test-id="text">{{text}}</p>
  {{/if}}

  {{#if hasBlock}}
    <div class="ember-remodal inner yielded content" data-test-id="yielded">
      {{yield (hash
        open=(component 'er-button' modalId=elementId action=(action 'open'))
        confirm=(component 'er-button' action=(action 'confirm'))
        cancel=(component 'er-button' action=(action 'cancel'))
      )}}
    </div>
  {{/if}}

  {{#if cancelButton}}
    <button {{action 'cancel'}} class="ember-remodal inner cancel button {{buttonClasses}} {{innerButtonClasses}} {{cancelButtonClasses}}" data-test-id="cancelButton">{{cancelButton}}</button>
  {{/if}}

  {{#if confirmButton}}
    <button {{action 'confirm'}} class="ember-remodal inner confirm button {{buttonClasses}} {{innerButtonClasses}} {{confirmButtonClasses}}" data-test-id="confirmButton">{{confirmButton}}</button>
  {{/if}}
</div><commit_msg>don't need to pass in the open action as it's handled by the ember-wormhole destination span<commit_after>{{#if linkButton}}
  <a {{action 'open'}} href="#" class="ember-remodal outer link text {{buttonClasses}} {{outerButtonClasses}}" data-test-id="linkButton">{{linkButton}}</a>
{{else if openLink}}
  <a {{action 'open'}} href="#" class="ember-remodal outer link text {{buttonClasses}} {{outerButtonClasses}} {{openLinkClasses}}" data-test-id="openLink">{{openLink}}</a>
{{else if openButton}}
  <button {{action 'open'}} class="ember-remodal outer open button {{buttonClasses}} {{outerButtonClasses}} {{openButtonClasses}}" data-test-id="openButton">{{openButton}}</button>
{{/if}}

<span {{action 'open'}} id="open-button-{{elementId}}"></span>

<div data-remodal-id="{{elementId}}" class="ember-remodal {{name}} {{animationState}} window {{if disableForeground 'invisible'}} {{modalClasses}}" data-test-id="modalWindow">

  {{#unless disableNativeClose}}
    <button {{action 'close'}} class="remodal-close ember-remodal inner native close" data-test-id="nativeClose"></button>
  {{/unless}}

  {{#if title}}
    <h2 class="ember-remodal inner title text" data-test-id="title">{{title}}</h2>
  {{/if}}

  {{#if text}}
    <p class="ember-remodal inner paragraph text" data-test-id="text">{{text}}</p>
  {{/if}}

  {{#if hasBlock}}
    <div class="ember-remodal inner yielded content" data-test-id="yielded">
      {{yield (hash
        open=(component 'er-button' modalId=elementId)
        confirm=(component 'er-button' action=(action 'confirm'))
        cancel=(component 'er-button' action=(action 'cancel'))
      )}}
    </div>
  {{/if}}

  {{#if cancelButton}}
    <button {{action 'cancel'}} class="ember-remodal inner cancel button {{buttonClasses}} {{innerButtonClasses}} {{cancelButtonClasses}}" data-test-id="cancelButton">{{cancelButton}}</button>
  {{/if}}

  {{#if confirmButton}}
    <button {{action 'confirm'}} class="ember-remodal inner confirm button {{buttonClasses}} {{innerButtonClasses}} {{confirmButtonClasses}}" data-test-id="confirmButton">{{confirmButton}}</button>
  {{/if}}
</div>
{'fraction_non_alphanumeric': 0.20881226053639848, 'fraction_numerical': 0.0009578544061302681, 'mean_word_length': 5.791869918699187, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '1778899', 'n_tokens_mistral': 1305, 'n_tokens_neox': 1261, 'n_words': 296}