<commit_before>import m from 'mithril';
import _ from 'underscore';
import h from '../h';
import HeaderMenuSearch from '../c/header-menu-search';
import menuProfile from '../c/menu-profile';
import models from '../models';
import { catarse } from '../api';

import { ExploreLightBox } from '../experiments/c/explore-light-box';

const menu = {
    oninit: function(vnode) {
        const exploreButtonBehavoir = h.RedrawStream((/** @type {Event} */ event) => {
            event.preventDefault();
            m.route.set('/explore?ref=ctrse_header&utm_source=catarse&utm_medium=ctrse_header&utm_campaign=testeAB_original');
        });
        const displayLightBox = h.RedrawStream(false);
        const user = h.getUser();
        const menuCss = () => {
            return `${vnode.attrs.menuTransparency ? 'overlayer' : ''} ${(vnode.attrs.withAlert || vnode.attrs.withFixedAlert) ? 'with-global-alert' : ''}`;
        };
        const homeAttrs = () => {
            if (vnode.attrs.absoluteHome) {
                return {<commit_msg>Remove UTM from Explore button on header<commit_after>import m from 'mithril';
import _ from 'underscore';
import h from '../h';
import HeaderMenuSearch from '../c/header-menu-search';
import menuProfile from '../c/menu-profile';
import models from '../models';
import { catarse } from '../api';

import { ExploreLightBox } from '../experiments/c/explore-light-box';

const menu = {
    oninit: function(vnode) {
        const exploreButtonBehavoir = h.RedrawStream((/** @type {Event} */ event) => {
            event.preventDefault();
            m.route.set('/explore?ref=ctrse_header');
        });
        const displayLightBox = h.RedrawStream(false);
        const user = h.getUser();
        const menuCss = () => {
            return `${vnode.attrs.menuTransparency ? 'overlayer' : ''} ${(vnode.attrs.withAlert || vnode.attrs.withFixedAlert) ? 'with-global-alert' : ''}`;
        };
        const homeAttrs = () => {
            if (vnode.attrs.absoluteHome) {
                return {
{'fraction_non_alphanumeric': 0.16043307086614172, 'fraction_numerical': 0.0, 'mean_word_length': 2.771799628942486, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '1271570', 'n_tokens_mistral': 611, 'n_tokens_neox': 612, 'n_words': 130}