<commit_before><div class="navbar navbar-fixed-top navbar-default notransition
{% if not active_page == 'index' and not has_splash == 'true' %}opaque{% endif %}">
        <div class="container">
          <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </button>
          <var id="logo-black" data-src="{{url_for('static',filename='img/logo-dark-plain.png')}}"></var>
          <var id="logo-white" data-src="{{url_for('static',filename='img/logo-white-plain.png')}}"></var>
          <a class="navbar-brand" href="{{ url_for('home.home') }}"><img id="navbar-logo"
          {% if not active_page == 'index' and not has_splash == 'true' %}
                  src="{{url_for('static',filename='img/logo-dark-plain.png')}}"
          {% else %}
                  src="{{url_for('static',filename='img/logo-white-plain.png')}}"
          {% endif %} alt="{{brand}} logo" /></a>
          </div>
          <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
              <li class="nav-link {% if active_page == 'about' %} active{% endif %}"><a href="{{ url_for('home.about')}}">{{ _('About') }}</a></li>
              <li class="nav-link {% if active_page == 'projects' %} active{% endif %}"><a href="{{ url_for('project.index') }}">{{ _('Projects') }}</a></li>
              <li class="nav-link {% if active_page == 'globalstats' %} active{% endif %}"><a href="{{ url_for('statistics.index')}}">{{ _('Statistics') }}</a></li>
              <li class="nav-link"><a href="{{url_for('discourse.index')}}">Community
                        {% if current_user.info.notification_count and current_user.info.notification_count > 0 %}
                                <span id="discourse-notifications" class="badge badge-danger">{{current_user.info.notification_count}}</span>
                        {% endif %}
              </a></li>
              <li class="nav-link {% if active_page == 'data' %} active{% endif %}"><a href="{{ url_for('data.index')}}">{{ _('Data') }}</a></li>
              <li class="nav-link {% if active_page == 'blog' %} active{% endif %}"><a href="{{ url_for('blog.index')}}">{{ _('Blog') }}</a></li>
         </ul>
            {% include '_gcs_form.html' ignore missing %}
          {% if current_user.is_authenticated() %}
            <ul class="nav navbar-nav navbar-right">
                <li class="nav-link"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><i class="icon fa fa-user"></i> {{ current_user.name | truncate(10,true) }} <span class="caret"></span></a>
                  <ul class="dropdown-menu">
                    <li class="nav-link"><a href="{{ url_for('account.profile', name=current_user.name) }}"><i class="fa fa-user"></i> {{ _('Profile') }}</a></li>
                    <li class="nav-link"><a href="{{ url_for('account.update_profile', name=current_user.name) }}"><i class="fa fa-cog"></i> {{ _('Settings') }}</a></li>
                    {% if current_user.admin == 1 %}
                    <li class="divider"></li>
                    <li class="nav-link"><a href="{{ url_for('admin.index') }}"><i class="fa fa-cog"></i> {{ _('Admin') }}</a></li>
                    {% endif %}
                    <li class="divider"></li>
                  <li class="nav-link"><a href="{{ url_for('discourse.signout') }}"><i class="fa fa-power-off"></i> {{ _('Sign Out') }}</a></li>
                </ul>
              </li>
            </ul>
          {% endif %}

            {% if current_user.is_anonymous() %}
            <ul class="nav navbar-nav navbar-right">
              <li class="nav-link"><a href="{{ url_for('account.signin') }}">{{ _('Sign in') }}</a></li>
            </ul>
            {% endif %}
          </div><!--/.nav-collapse -->
        </div>
      </div>
<commit_msg>Fix notifications pill<commit_after><div class="navbar navbar-fixed-top navbar-default notransition
{% if not active_page == 'index' and not has_splash == 'true' %}opaque{% endif %}">
        <div class="container">
          <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </button>
          <var id="logo-black" data-src="{{url_for('static',filename='img/logo-dark-plain.png')}}"></var>
          <var id="logo-white" data-src="{{url_for('static',filename='img/logo-white-plain.png')}}"></var>
          <a class="navbar-brand" href="{{ url_for('home.home') }}"><img id="navbar-logo"
          {% if not active_page == 'index' and not has_splash == 'true' %}
                  src="{{url_for('static',filename='img/logo-dark-plain.png')}}"
          {% else %}
                  src="{{url_for('static',filename='img/logo-white-plain.png')}}"
          {% endif %} alt="{{brand}} logo" /></a>
          </div>
          <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
              <li class="nav-link {% if active_page == 'about' %} active{% endif %}"><a href="{{ url_for('home.about')}}">{{ _('About') }}</a></li>
              <li class="nav-link {% if active_page == 'projects' %} active{% endif %}"><a href="{{ url_for('project.index') }}">{{ _('Projects') }}</a></li>
              <li class="nav-link {% if active_page == 'globalstats' %} active{% endif %}"><a href="{{ url_for('statistics.index')}}">{{ _('Statistics') }}</a></li>
              <li class="nav-link"><a href="{{url_for('discourse.index')}}">Community
                        {% if current_user.is_authenticated() and current_user.info.notification_count and current_user.info.notification_count > 0 %}
                                <span id="discourse-notifications" class="badge badge-danger">{{current_user.info.notification_count}}</span>
                        {% endif %}
              </a></li>
              <li class="nav-link {% if active_page == 'data' %} active{% endif %}"><a href="{{ url_for('data.index')}}">{{ _('Data') }}</a></li>
              <li class="nav-link {% if active_page == 'blog' %} active{% endif %}"><a href="{{ url_for('blog.index')}}">{{ _('Blog') }}</a></li>
         </ul>
            {% include '_gcs_form.html' ignore missing %}
          {% if current_user.is_authenticated() %}
            <ul class="nav navbar-nav navbar-right">
                <li class="nav-link"><a href="#" data-toggle="dropdown" class="dropdown-toggle"><i class="icon fa fa-user"></i> {{ current_user.name | truncate(10,true) }} <span class="caret"></span></a>
                  <ul class="dropdown-menu">
                    <li class="nav-link"><a href="{{ url_for('account.profile', name=current_user.name) }}"><i class="fa fa-user"></i> {{ _('Profile') }}</a></li>
                    <li class="nav-link"><a href="{{ url_for('account.update_profile', name=current_user.name) }}"><i class="fa fa-cog"></i> {{ _('Settings') }}</a></li>
                    {% if current_user.admin == 1 %}
                    <li class="divider"></li>
                    <li class="nav-link"><a href="{{ url_for('admin.index') }}"><i class="fa fa-cog"></i> {{ _('Admin') }}</a></li>
                    {% endif %}
                    <li class="divider"></li>
                  <li class="nav-link"><a href="{{ url_for('discourse.signout') }}"><i class="fa fa-power-off"></i> {{ _('Sign Out') }}</a></li>
                </ul>
              </li>
            </ul>
          {% endif %}

            {% if current_user.is_anonymous() %}
            <ul class="nav navbar-nav navbar-right">
              <li class="nav-link"><a href="{{ url_for('account.signin') }}">{{ _('Sign in') }}</a></li>
            </ul>
            {% endif %}
          </div><!--/.nav-collapse -->
        </div>
      </div>

{'fraction_non_alphanumeric': 0.22606675632717937, 'fraction_numerical': 0.0009781146839466927, 'mean_word_length': 2.3941908713692945, 'pattern_counts': {'":': 0, '<': 199, '<?xml version=': 0, '>': 201, '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': '4083835', 'n_tokens_mistral': 2599, 'n_tokens_neox': 2404, 'n_words': 478}