<commit_before>{{#eui-button
  disabled=disabled
  style=style
  size=size
  width='100%'
  classBinding=":eui-select showOptionList:eui-active"
  action="showOptionList"
  ariaOwns=ariaOwns
  ariaHaspopup=ariaHasPopup}}
  <div class="eui-select-label {{unless selection 'eui-select-placeholder'}}">
    {{#if selection}}
      {{yield selection}}
    {{else}}
      {{placeholder}}
    {{/if}}
  </div>
  <div class="eui-select-icon"></div>
{{/eui-button}}

{{#if errorMessage}}
  <div class="eui-error-message">
    <div class="eui-error-wrapper">
      <p class="eui-error-text">
        {{errorMessage}}
      </p>
    </div>
  </div>
{{/if}}

{{#if showOptionList}}
  {{#eui-popup
    attachment=attachment
    target=element
    targetAttachment=targetAttachment
    width=popupWidth
    animateIn=animateInPopup
    animateOut=animateOutPopup
    onClose=(action "selectOption") as | closeAction |}}

    {{#eui-option-list
      style="select"
      highlights=selectionArray
      options=optionsWithBlank as |option index|}}

      <div class="eui-select--list-option" {{action closeAction option}}><commit_msg>fix select collapsing when no option selected and no placeholder specified<commit_after>{{#eui-button
  disabled=disabled
  style=style
  size=size
  width='100%'
  classBinding=":eui-select showOptionList:eui-active"
  action="showOptionList"
  ariaOwns=ariaOwns
  ariaHaspopup=ariaHasPopup}}
  <div class="eui-select-label {{unless selection 'eui-select-placeholder'}}">
    {{#if selection}}
      {{yield selection}}

    {{else if placeholder}}
      {{placeholder}}

    {{else}}
      &nbsp;
    {{/if}}
  </div>
  <div class="eui-select-icon"></div>
{{/eui-button}}

{{#if errorMessage}}
  <div class="eui-error-message">
    <div class="eui-error-wrapper">
      <p class="eui-error-text">
        {{errorMessage}}
      </p>
    </div>
  </div>
{{/if}}

{{#if showOptionList}}
  {{#eui-popup
    attachment=attachment
    target=element
    targetAttachment=targetAttachment
    width=popupWidth
    animateIn=animateInPopup
    animateOut=animateOutPopup
    onClose=(action "selectOption") as | closeAction |}}

    {{#eui-option-list
      style="select"
      highlights=selectionArray
      options=optionsWithBlank as |option index|}}

      <div class="eui-select--list-option" {{action closeAction option}}>
{'fraction_non_alphanumeric': 0.15515771526001704, 'fraction_numerical': 0.0025575447570332483, 'mean_word_length': 3.7034068136272547, 'pattern_counts': {'":': 2, '<': 25, '<?xml version=': 0, '>': 25, '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': '7472646', 'n_tokens_mistral': 780, 'n_tokens_neox': 769, 'n_words': 141}