<commit_before>import { Template } from 'meteor/templating';
import { Session } from 'meteor/session';
import { Router } from 'meteor/iron:router';

import '/imports/ui/templates/components/identity/avatar/avatar.js';

import { toggleSelectedItem } from '../../../modules/menu';
import './inbox.html';

Template.inbox.helpers({
  selected() {
    if (this.url) {
      const current = Router.current().url.replace(window.location.origin, '');
      if ((Router.current().params.username === this.url.substring(6))
        || (current === this.url)
      ) {
        return 'menu-item-selected';
      }
    }
    return '';
  },
  isAvatar() {
    return this.isAvatar;
  },
  displayCount() {
    return this.displayCount;
  },
  count() {
    return this.count;
  },
  sidebarTagStyle() {
    const selectedId = Session.get('sidebarMenuSelectedId');
    if ((selectedId === this.id) || (!selectedId && this.id === 0)) {
      return 'sidebar-tag-selected';
    }
    return '';
  },
  tokens() {
    const reserve = {
      token: this.reserve.token,
      balance: this.reserve.balance,
      placed: this.reserve.placed,
      available: this.reserve.available,
      disableStake: true,
      disableBar: true,
    };
    return reserve;<commit_msg>fixed selected sidebar menu count<commit_after>import { Template } from 'meteor/templating';
import { Session } from 'meteor/session';
import { Router } from 'meteor/iron:router';

import '/imports/ui/templates/components/identity/avatar/avatar.js';

import { toggleSelectedItem } from '../../../modules/menu';
import './inbox.html';

Template.inbox.helpers({
  selected() {
    if (this.url) {
      const current = Router.current().url.replace(window.location.origin, '');
      if ((Router.current().params.username === this.url.substring(6))
        || (current === this.url)
      ) {
        return 'menu-item-selected';
      }
    }
    return '';
  },
  isAvatar() {
    return this.isAvatar;
  },
  displayCount() {
    return this.displayCount;
  },
  count() {
    return this.count;
  },
  sidebarTagStyle() {
    if (this.url) {
      const current = Router.current().url.replace(window.location.origin, '');
      if ((Router.current().params.username === this.url.substring(6))
        || (current === this.url)
      ) {
        return 'sidebar-tag-selected';
      }
    }
    return '';
  },
  tokens() {
    const reserve = {
      token: this.reserve.token,
      balance: this.reserve.balance,
      placed: this.reserve.placed,
      available: this.reserve.available,
      disableStake: true,
      disableBar: true,
    };
    return reserve;
{'fraction_non_alphanumeric': 0.16361556064073227, 'fraction_numerical': 0.0015255530129672007, 'mean_word_length': 2.715297450424929, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5515748', 'n_tokens_mistral': 827, 'n_tokens_neox': 817, 'n_words': 152}