<commit_before>{{#click-outside action=(action (mut isOpen) false)}}
  <button
    aria-label={{t (concat "general.language." locale.id)}}
    class="toggle"
    aria-haspopup="true"
    aria-expanded={{if isOpen "true" "false"}}
    data-level="toggle"
    data-test-toggle
    {{action "toggleMenu"}}
  >
    {{fa-icon "globe"}} <span>{{t (concat "general.language." locale.id)}}</span>
  </button>
  {{#if isOpen}}
    <div class="menu" role="menu">
      {{#each locales as |loc|}}
        <button
          role="menuitemradio"
          lang={{loc.id}}
          tabindex="-1"
          aria-checked={{if (eq locale.id loc.id) "true" "false"}}
          data-level="item"
          data-test-item
          {{action "changeLocale" loc.id}}
        >
          {{loc.text}}
        </button>
      {{/each}}
    </div>
  {{/if}}
{{/click-outside}}<commit_msg>Add menuitem role to button<commit_after>{{#click-outside action=(action (mut isOpen) false)}}
  <button
    aria-label={{t (concat "general.language." locale.id)}}
    role="menuitem"
    class="toggle"
    aria-haspopup="true"
    aria-expanded={{if isOpen "true" "false"}}
    data-level="toggle"
    data-test-toggle
    {{action "toggleMenu"}}
  >
    {{fa-icon "globe"}} <span>{{t (concat "general.language." locale.id)}}</span>
  </button>
  {{#if isOpen}}
    <div class="menu" role="menu">
      {{#each locales as |loc|}}
        <button
          role="menuitemradio"
          lang={{loc.id}}
          tabindex="-1"
          aria-checked={{if (eq locale.id loc.id) "true" "false"}}
          data-level="item"
          data-test-item
          {{action "changeLocale" loc.id}}
        >
          {{loc.text}}
        </button>
      {{/each}}
    </div>
  {{/if}}
{{/click-outside}}
{'fraction_non_alphanumeric': 0.19807037457434734, 'fraction_numerical': 0.0011350737797956867, 'mean_word_length': 2.3773946360153255, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '3859389', 'n_tokens_mistral': 591, 'n_tokens_neox': 598, 'n_words': 118}