<commit_before>{{#if error}}
  {{#if modal}}
    {{#modal-dialog
      title=(t "components.flexberry-error.caption")
      useOkButton=false
      settings=(hash context=modalContext onHidden=(action "close"))
    }}
      <h2 class="ui header">
        {{#if (and _errorIsArray _messageIsNotSpecified)}}
          <div class="ui bulleted list">
            {{#each error as |err|}}
              {{#if (eq err.state "rejected")}}
                <div class="item">{{err.reason.message}} er0</div>
              {{/if}}
            {{/each}}
          </div>
        {{else if (or error.messageLocaleKey error.message)}}
          {{#if error.messageLocaleKey}}
            {{t error.messageLocaleKey}}
          {{else if error.message}}
            {{error.message}}
          {{/if}}
        {{else}}
          {{t "components.flexberry-error.unknown-error"}}
        {{/if}}
      </h2>
      {{#if error.errors}}
        {{#flexberry-toggler
          caption=(t "components.flexberry-error.show-more")
        }}
          {{#each error.errors as |e|}}
            <h3 class="ui header">
              {{#if e.messageLocaleKey}}
                {{t e.messageLocaleKey}}
              {{else if e.message}}
                {{e.message}}
              {{/if}}
            </h3>
            <pre>{{e.stack}}</pre><commit_msg>Fix flexberry-error component excess conditions and typo in template<commit_after>{{#if error}}
  {{#if modal}}
    {{#modal-dialog
      title=(t "components.flexberry-error.caption")
      useOkButton=false
      settings=(hash context=modalContext onHidden=(action "close"))
    }}
      <h2 class="ui header">
        {{#if (and _errorIsArray _messageIsNotSpecified)}}
          <div class="ui bulleted list">
            {{#each error as |err|}}
              {{#if (eq err.state "rejected")}}
                <div class="item">{{err.reason.message}}</div>
              {{/if}}
            {{/each}}
          </div>
        {{else if error.messageLocaleKey}}
          {{t error.messageLocaleKey}}
        {{else if error.message}}
          {{error.message}}
        {{else}}
          {{t "components.flexberry-error.unknown-error"}}
        {{/if}}
      </h2>
      {{#if error.errors}}
        {{#flexberry-toggler
          caption=(t "components.flexberry-error.show-more")
        }}
          {{#each error.errors as |e|}}
            <h3 class="ui header">
              {{#if e.messageLocaleKey}}
                {{t e.messageLocaleKey}}
              {{else if e.message}}
                {{e.message}}
              {{/if}}
            </h3>
            <pre>{{e.stack}}</pre>
{'fraction_non_alphanumeric': 0.168, 'fraction_numerical': 0.0034285714285714284, 'mean_word_length': 1.7212435233160621, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '1359403', 'n_tokens_mistral': 770, 'n_tokens_neox': 754, 'n_words': 159}