<commit_before>{% extends 'frontend_base.html' %}
{% set active_page = 'sessions' %}


{% block styles %}
{{ super() }}
    <style>
        button {
            float: right;
        }
    </style>
{% endblock styles %}


{% block content %}
{{ super() }}
    <div class="container">
        {% for (collection, sessions) in all_sessions %}
        <div class="row">
            <h2>{{ collection.label }}
                {% if site_admin %}
                <a href="{{ '#' }}" class="lead">
                    <button type="button" class="btn btn-primary">Add new session </button>
                </a></h2>
                {% endif  %}
        </div>
        <div class="row">
        </div>
        <table class="table table-bordered table-hover" >
            {% for session, can_admin in sessions %}
            <tr>
                <td>
                    {% if session.type == 'stack' %}<commit_msg>Adding anchors to each collection<commit_after>{% extends 'frontend_base.html' %}
{% set active_page = 'sessions' %}


{% block styles %}
{{ super() }}
    <style>
        button {
            float: right;
        }

        .header-link {
          opacity: 0;

          -webkit-transition: opacity 0.2s ease-in-out 0.1s;
          -moz-transition: opacity 0.2s ease-in-out 0.1s;
          -ms-transition: opacity 0.2s ease-in-out 0.1s;
        }

        h2:hover .header-link,
        h3:hover .header-link,
        h4:hover .header-link,
        h5:hover .header-link,
        h6:hover .header-link {
          opacity: 1;
        }

        .anchor {
            padding-top: 60px;
            margin-top: -60px;
        }
    </style>
{% endblock styles %}


{% block content %}
{{ super() }}
    <div class="container">
        {% for (collection, sessions) in all_sessions %}
        <div class="row">
            <h2 id="{{ collection.id}}" class="anchor">{{ collection.label }} <a class="header-link" href="#{{collection.id}}"><span style="font-size:20px"><i class="glyphicon glyphicon-th"></i></span></a>
            {% if site_admin %}
                <a href="{{ '#' }}" class="lead">
                    <button type="button" class="btn btn-primary">Add new session </button>
                </a>
            {% endif  %}
            </h2>
        </div>
        <div class="row">
        </div>
        <table class="table table-bordered table-hover" >
            {% for session, can_admin in sessions %}
            <tr>
                <td>
                    {% if session.type == 'stack' %}
{'fraction_non_alphanumeric': 0.1638238794129314, 'fraction_numerical': 0.011503371677905593, 'mean_word_length': 1.6107660455486543, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, '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': '1994239', 'n_tokens_mistral': 810, 'n_tokens_neox': 731, 'n_words': 173}