<commit_before><template>
    <li :class="['nav-item','dropdown', {dropup, show: visible}]">

        <a :class="['nav-link', dropdownToggle, {disabled}]"
           href=""
           ref="button"
           aria-haspopup="true"
           :aria-expanded="visible"
           :disabled="disabled"
           @click.stop.prevent="toggle($event)"
        >
            <slot name="text"><span v-html="text"></span></slot>
        </a>

        <div :class="['dropdown-menu',{'dropdown-menu-right': right}]"
             role="menu"
             ref="menu"<commit_msg>Keyboard control of nav-item-dropdown (fixes #348) (#351)<commit_after><template>
    <li :class="['nav-item','dropdown', {dropup, show: visible}]">

        <a :class="['nav-link', dropdownToggle, {disabled}]"
           href="#"
           ref="button"
           aria-haspopup="true"
           :aria-expanded="visible"
           :disabled="disabled"
           @click.stop.prevent="toggle($event)"
           @keydown.enter.stop.prevent="toggle($event)"
           @keydown.space.stop.prevent="toggle($event)"
        >
            <slot name="text"><span v-html="text"></span></slot>
        </a>

        <div :class="['dropdown-menu',{'dropdown-menu-right': right}]"
             role="menu"
             ref="menu"
{'fraction_non_alphanumeric': 0.1947245927075252, 'fraction_numerical': 0.004654771140418929, 'mean_word_length': 2.2330827067669174, 'pattern_counts': {'":': 0, '<': 21, '<?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': '5307821', 'n_tokens_mistral': 385, 'n_tokens_neox': 377, 'n_words': 57}