<commit_before>.sidebar
  .header
    a.toggle-sidebar.hidden-md-up href='#'
      = fa_icon 'times'
    a href="#{root_path}"
      = inline_svg('dalphi-logo.svg', class: 'dalphi-logo')
    h1
      | Dalphi
    p
      span
        | Dalphi Active Learning Platform
      span
        | for Human Interaction

    ul.nav
      - active_class = ''
      - active_class = 'active' if %w(projects raw_data).include?(params[:controller])
      li class="#{active_class}"
        a href="#{projects_path}"
          = t('activerecord.models.project.other')

      - active_class = ''
      - active_class = 'active' if params[:controller] == 'services'
      li class="#{active_class}"
        a href="#{services_path}"
          = t('activerecord.models.service.other')

      - active_class = ''
      - active_class = 'active' if params[:controller] == 'interfaces'
      li class="#{active_class}"
        a href="#{interfaces_path}"
          = t('activerecord.models.interface.other')<commit_msg>disable navigation for unauthentificated user<commit_after>.sidebar
  .header
    a.toggle-sidebar.hidden-md-up href='#'
      = fa_icon 'times'
    a href="#{root_path}"
      = inline_svg('dalphi-logo.svg', class: 'dalphi-logo')
    h1
      | Dalphi
    p
      span
        | Dalphi Active Learning Platform
      span
        | for Human Interaction

    - if user_signed_in?
      ul.nav
        - active_class = ''
        - active_class = 'active' if %w(projects raw_data).include?(params[:controller])
        li class="#{active_class}"
          a href="#{projects_path}"
            = t('activerecord.models.project.other')

        - active_class = ''
        - active_class = 'active' if params[:controller] == 'services'
        li class="#{active_class}"
          a href="#{services_path}"
            = t('activerecord.models.service.other')

        - active_class = ''
        - active_class = 'active' if params[:controller] == 'interfaces'
        li class="#{active_class}"
          a href="#{interfaces_path}"
            = t('activerecord.models.interface.other')
{'fraction_non_alphanumeric': 0.14183037853378055, 'fraction_numerical': 0.0009583133684714902, 'mean_word_length': 2.373182552504039, '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': '6319404', 'n_tokens_mistral': 637, 'n_tokens_neox': 617, 'n_words': 119}