<commit_before>mixin content
  li.dropdown(ng-if='allLabs.ready && (allLabs.all.length > 0)')
    a.link.dropdown-toggle(data-toggle='dropdown' role='button' aria-haspopup='true' aria-expanded='false')
      i.fa.fa-fw.fa-building-o
      | &nbsp;
      lab-name(id='curLab.lab_id')
      i.fa.fa-fw.fa-angle-down
    ul.dropdown-menu
      li.heading
        | Current Lab
      li.text
        lab-name(id='curLab.lab_id')
      li.divider(ng-if='curLab.all_except_current.length > 0')
      li.heading(ng-if='curLab.all_except_current.length > 0')
        | Other Labs
      li(ng-repeat='other_lab_id in curLab.all_except_current')
        a.link(ng-click='curLab.set(other_lab_id)')
          lab-name(id='other_lab_id')

ul.nav.navbar-nav
  +content<commit_msg>Show lab selector menu only when there's more than one lab<commit_after>mixin current_lab
  i.fa.fa-fw.fa-building-o
  lab-name(id='curLab.lab_id')

mixin content
  li(ng-if='allLabs.ready && (allLabs.all.length > 0) && (curLab.all_except_current.length == 0)')
    a
      +current_lab
  li.dropdown(ng-if='allLabs.ready && (allLabs.all.length > 0) && (curLab.all_except_current.length > 0)')
    a.link.dropdown-toggle(data-toggle='dropdown' role='button' aria-haspopup='true' aria-expanded='false')
      +current_lab
      i.fa.fa-fw.fa-angle-down
    ul.dropdown-menu
      li.heading
        | Other Labs
      li(ng-repeat='other_lab_id in curLab.all_except_current')
        a.link(ng-click='curLab.set(other_lab_id)')
          lab-name(id='other_lab_id')

ul.nav.navbar-nav
  +content
{'fraction_non_alphanumeric': 0.15374759769378604, 'fraction_numerical': 0.004484304932735426, 'mean_word_length': 3.176470588235294, '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': '4672108', 'n_tokens_mistral': 605, 'n_tokens_neox': 585, 'n_words': 76}