<commit_before><template>
    <div class="viu-menu-item" @click="click"><slot></slot></div>
</template>

<script>
    import Helper from "../plugin/class.js";
    export default {
        methods: {
            click() {
                let ancestor = Helper.findAncestor(this.$el, "viu-menu-content");
                Helper.removeClass(ancestor,"show")
                itemActive  = ancestor.querySelector(".viu-menu-item.active");
                if (itemActive) {
                    Helper.removeClass(itemActive, "active")
                }
                Helper.addClass(this.$el, "active");<commit_msg>Remove menu item active class<commit_after><template>
    <div class="viu-menu-item" @click="click"><slot></slot></div>
</template>

<script>
    import Helper from "../plugin/class.js";
    export default {
        methods: {
            click() {
                let ancestor = Helper.findAncestor(this.$el, "viu-menu-content");
                Helper.removeClass(ancestor,"show")
                itemActive  = ancestor.querySelector(".viu-menu-item.active");
                if (itemActive) {
                    Helper.removeClass(itemActive, "active")
                }
{'fraction_non_alphanumeric': 0.1459915611814346, 'fraction_numerical': 0.0, 'mean_word_length': 1.987405541561713, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '3129757', 'n_tokens_mistral': 342, 'n_tokens_neox': 325, 'n_words': 55}