<commit_before>- var own_page = (self.runtime.user_hid === self.user.hid)
- self.add_raw_data('profile_tab', own_page)

#content.user-member-page
  //- != self.partial('@users.blocks.breadcrumbs')

  .layout__container.container-fluid
    header.page-head
      h1.page-head__title(itemprop='name')
        if self.user_is_ignored
          span.member__ignored.icon.icon-ignore.icon-space-after(
            title=self.t('ignored')
          )
        = self.users[self.user._id].name
      p.page-head__descr.member__last-visit(itemprop='description')
        =self.t('last_active')
        | 
        != self.timetag(self.user.last_active_ts, 'compact')
      if self.user_is_hb
        p.page-head__descr.member__hb.text-danger(itemprop='description')=self.t('hellbaned')
      if self.penalty_expire
        p.page-head__descr.member__penalty.text-danger(itemprop='description')
          =self.t('blocked_until')
          | 
          !=self.timetag(self.penalty_expire, 'compact')

    - var modifier = self.avatar_exists ? 'member-layout__m-avatar-exists' : '';
    .member-layout(class=modifier)
      .member-sidebar
        .member-avatar
          if own_page
            a.member-avatar__delete.btn.btn-xs.btn-secondary(href='#' data-on-click='users.member:delete_avatar').icon.icon-cancel
            a.member-avatar__link(href='#' data-on-click='users.member:change_avatar')
              img.member-avatar__image()&attributes(self.avatar(self.user._id, self.users[self.user._id]))
              .member-avatar__caption= self.t('change_avatar')
          else
            img.member-avatar__image()&attributes(self.avatar(self.user._id, self.users[self.user._id]))

        if own_page
          ul.member-sidebar__menu
            each item in self.menu_ordered
              li.member-sidebar__menu-item
                a.member-sidebar__menu-link(href=self.link_to(item.to, { user_hid: self.user.hid }))
                  =self.t('@users.profile_page.menu.' + item.name)

      .member-blocks
        if self.runtime.is_member
          .page-actions.member-block


            .page-actions__item.page-actions__dropdown
              if self.actions_ordered.length
                button.btn.btn-secondary.btn-square.icon.icon-dropdown.dropdown-toggle(
                  type='button'
                  data-toggle='dropdown'
                )
                .dropdown-menu.dropdown-menu-left
                  each item in self.actions_ordered
                    !=self.partial('@users.member.actions.' + item.name)

            if self.settings.can_add_mod_notes && self.mod_notes_count > 0
              .page-actions__item
                a.btn.btn-secondary(
                  href=self.link_to('users.mod_notes', { 'user_hid': self.user.hid })
                )=self.t('mod_notes', self.mod_notes_count)

            if self.settings.can_use_messages && self.settings.can_send_messages && !own_page
              .page-actions__item
                button.btn.btn-secondary.btn-square.icon.icon-mail(
                  type='button'
                  data-on-click='users.member:message'
                  data-to-nick=self.users[self.user._id].nick
                  data-to-hid=self.users[self.user._id].hid
                  title=self.t('send_message_help')
                )

        each block in self.blocks_ordered
          if (self.blocks[block.name])
            != self.partial('@users.member.blocks.' + block.name)<commit_msg>profile: moved sidebar menu to dropdown (for small screens)<commit_after>- var own_page = (self.runtime.user_hid === self.user.hid)
- self.add_raw_data('profile_tab', own_page)

#content.user-member-page
  //- != self.partial('@users.blocks.breadcrumbs')

  .layout__container.container-fluid
    header.page-head
      h1.page-head__title(itemprop='name')
        if self.user_is_ignored
          span.member__ignored.icon.icon-ignore.icon-space-after(
            title=self.t('ignored')
          )
        = self.users[self.user._id].name
      p.page-head__descr.member__last-visit(itemprop='description')
        =self.t('last_active')
        | 
        != self.timetag(self.user.last_active_ts, 'compact')
      if self.user_is_hb
        p.page-head__descr.member__hb.text-danger(itemprop='description')=self.t('hellbaned')
      if self.penalty_expire
        p.page-head__descr.member__penalty.text-danger(itemprop='description')
          =self.t('blocked_until')
          | 
          !=self.timetag(self.penalty_expire, 'compact')

    - var modifier = self.avatar_exists ? 'member-layout__m-avatar-exists' : '';
    .member-layout(class=modifier)
      .member-sidebar
        .member-avatar
          if own_page
            a.member-avatar__delete.btn.btn-xs.btn-secondary(href='#' data-on-click='users.member:delete_avatar').icon.icon-cancel
            a.member-avatar__link(href='#' data-on-click='users.member:change_avatar')
              img.member-avatar__image()&attributes(self.avatar(self.user._id, self.users[self.user._id]))
              .member-avatar__caption= self.t('change_avatar')
          else
            img.member-avatar__image()&attributes(self.avatar(self.user._id, self.users[self.user._id]))

        if own_page
          ul.member-sidebar__menu
            each item in self.menu_ordered
              li.member-sidebar__menu-item
                a.member-sidebar__menu-link(href=self.link_to(item.to, { user_hid: self.user.hid }))
                  =self.t('@users.profile_page.menu.' + item.name)

      .member-blocks
        if self.runtime.is_member
          .page-actions.member-block


            .page-actions__item.page-actions__dropdown
              if self.actions_ordered.length
                button.btn.btn-secondary.btn-square.icon.icon-dropdown.dropdown-toggle(
                  type='button'
                  data-toggle='dropdown'
                )
                .dropdown-menu.dropdown-menu-left

                  if own_page
                    each item in self.menu_ordered
                      a.dropdown-item.hidden-sm-up(href=self.link_to(item.to, { user_hid: self.user.hid }))
                        = self.t('@users.profile_page.menu.' + item.name)

                  each item in self.actions_ordered
                    !=self.partial('@users.member.actions.' + item.name)

            if self.settings.can_add_mod_notes && self.mod_notes_count > 0
              .page-actions__item
                a.btn.btn-secondary(
                  href=self.link_to('users.mod_notes', { 'user_hid': self.user.hid })
                )=self.t('mod_notes', self.mod_notes_count)

            if self.settings.can_use_messages && self.settings.can_send_messages && !own_page
              .page-actions__item
                button.btn.btn-secondary.btn-square.icon.icon-mail(
                  type='button'
                  data-on-click='users.member:message'
                  data-to-nick=self.users[self.user._id].nick
                  data-to-hid=self.users[self.user._id].hid
                  title=self.t('send_message_help')
                )

        each block in self.blocks_ordered
          if (self.blocks[block.name])
            != self.partial('@users.member.blocks.' + block.name)
{'fraction_non_alphanumeric': 0.12726017943409249, 'fraction_numerical': 0.0005521048999309869, 'mean_word_length': 2.053518752633797, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4309015', 'n_tokens_mistral': 2279, 'n_tokens_neox': 2196, 'n_words': 238}