<commit_before>{% extends "pages/page.html" %}
{% load comment_tags %}
{#TODO when there is no community don't crash#}
{% block extra_css %}
    <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/jquery.dataTables.min.css">
{% endblock %}

{% block main %}
    <div id="communities-app">
        <div class="collaborate-header">
            <div class="container">
                <div class="row">
                    <div class="col-sm-12">
                        <div class="collaborate-nav">
                            <a href="{% url "communities" %}" class="collaborate-nav-item">Find Communities</a>
                            <a href="{% url "my_communities" %}" class="collaborate-nav-item">My Communities</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="container">
            <div class="row">
                <div class="col-sm-3">
                    <div><a href="http://criticalzone.org"><img src="{{ STATIC_URL }}img/communities/czo-national.png"
                                                                alt="CZO National"></a></div>
                </div>
                <div class="col-sm-7">
                </div>
                <div><!-- [Modals] --></div>
            </div>
            <div class="full-width-tabs-container" id="user-profile-tabs">
                <!-- Nav tabs -->
                <ul class="nav nav-tabs full-width-tabs" role="tablist">
                    <li role="presentation" class="active">
                        <a href="#public" aria-controls="public" role="tab" data-toggle="tab">
                            <i class="glyphicon glyphicon-file"></i>&nbsp;PUBLIC</a>
                    </li>
                </ul>

                <!-- Tab panes -->
                <div class="tab-content">
                    <!-- PUBLIC -->
                    <div role="tabpanel" class="tab-pane fade in active" id="public">
                        <div class="row">
                            <div class="col-lg-2" id="facets">
                                <div class="panel panel-default">
                                    <div class="panel-heading">
                                        <h4 class="panel-title">
                                            <span class="glyphicon glyphicon glyphicon-user"></span>
                                            <a data-toggle="collapse" class="accordion-toggle" data-parent="#accordion"
                                               href="#filter">&nbsp;Shared by</a></h4>
                                    </div>
                                    <div id="filter-shared-by" class="facet-list panel-collapse collapse in">
                                        <div class="panel-body">
                                            <div class="list-group">
                                            </div>
                                            <div id="groups-list"><!-- this id=groups-list is used to construct the VueJS group name to id map -->
                                                {% if not groups %}
                                                    <i class="list-group-item no-items-found">No resources have been
                                                        shared with this community yet.</i>
                                                {% else %}
                                                    {% for g in groups %}
                                                        <li class="list-group-item" id="{{ g.id }}"><div style="white-space:nowrap;">
                                                            <label class="checkbox noselect"
                                                                 for="{{ g.id }}">{{ g.name }}<input type="checkbox" id="{{ g.id }}" value="Click"
                                                                    @click="updateContribs({{ g.id }})"
                                                            {% if grpfilter == g.name %}
                                                                 checked
                                                            {% endif %}
                                                            />&nbsp;&nbsp;<span class="badge">{{ g.res_count }}</span>
                                                            </label></div>
                                                        </li>
                                                    {% endfor %}
                                                {% endif %}
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-10" id="items">
                                <div class="row">
                                    <div class="col-sm-12">
                                        <div id="search-container" class="input-group">
                                            <span class="glyphicon glyphicon-search search-icon"></span>
                                            <input id="resource-search-input" type="text" class="form-control"
                                                   placeholder="Search" size="600px"/>
                                            <span id="btn-clear-search-input"
                                                  class="glyphicon glyphicon-remove-sign btn-clear-search"></span>
                                        </div>
                                    </div>
                                </div>
                                <!-- /input-group -->
                                <table id="item-selectors" class="table-hover table-striped resource-custom-table">
                                    <thead>
                                    <tr>
                                        <th><input class="all-rows-selector" type="checkbox"></th>
                                        <th>Type</th>
                                        <th>Title</th>
                                        <th>First Author</th><commit_msg>Change community resource shared by formatting<commit_after>{% extends "pages/page.html" %}
{% load comment_tags %}
{#TODO when there is no community don't crash#}
{% block extra_css %}
    <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/jquery.dataTables.min.css">
{% endblock %}

{% block main %}
    <div id="communities-app">
        <div class="collaborate-header">
            <div class="container">
                <div class="row">
                    <div class="col-sm-12">
                        <div class="collaborate-nav">
                            <a href="{% url "communities" %}" class="collaborate-nav-item">Find Communities</a>
                            <a href="{% url "my_communities" %}" class="collaborate-nav-item">My Communities</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="container">
            <div class="row">
                <div class="col-sm-3">
                    <div><a href="http://criticalzone.org"><img src="{{ STATIC_URL }}img/communities/czo-national.png"
                                                                alt="CZO National"></a></div>
                </div>
                <div class="col-sm-7">
                </div>
                <div><!-- [Modals] --></div>
            </div>
            <div class="full-width-tabs-container" id="user-profile-tabs">
                <!-- Nav tabs -->
                <ul class="nav nav-tabs full-width-tabs" role="tablist">
                    <li role="presentation" class="active">
                        <a href="#public" aria-controls="public" role="tab" data-toggle="tab">
                            <i class="glyphicon glyphicon-file"></i>&nbsp;PUBLIC</a>
                    </li>
                </ul>

                <!-- Tab panes -->
                <div class="tab-content">
                    <!-- PUBLIC -->
                    <div role="tabpanel" class="tab-pane fade in active" id="public">
                        <div class="row">
                            <div class="col-lg-2" id="facets">
                                <div class="panel panel-default">
                                    <div class="panel-heading">
                                        <h4 class="panel-title">
                                            <span class="glyphicon glyphicon glyphicon-user"></span>
                                            <a data-toggle="collapse" class="accordion-toggle" data-parent="#accordion"
                                               href="#filter">&nbsp;Shared by</a></h4>
                                    </div>
                                    <div id="filter-shared-by" class="facet-list panel-collapse collapse in">
                                        <div class="panel-body">
                                            <div class="list-group">
                                            </div>
                                            <div id="groups-list"><!-- this id=groups-list is used to construct the VueJS group name to id map -->
                                                {% if not groups %}
                                                    <i class="list-group-item no-items-found">No resources have been
                                                        shared with this community yet.</i>
                                                {% else %}
                                                    {% for g in groups %}
                                                        <li class="list-group-item" id="{{ g.id }}">

                                                            <label class="checkbox noselect"
                                                                 for="{{ g.id }}">{{ g.name }}&nbsp;<span class="badge">{{ g.res_count }}</span><input type="checkbox" id="{{ g.id }}" value="Click"
                                                                    @click="updateContribs({{ g.id }})"
                                                            {% if grpfilter == g.name %}
                                                                 checked
                                                            {% endif %}
                                                            />
                                                            </label>
                                                        </li>
                                                    {% endfor %}
                                                {% endif %}
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-10" id="items">
                                <div class="row">
                                    <div class="col-sm-12">
                                        <div id="search-container" class="input-group">
                                            <span class="glyphicon glyphicon-search search-icon"></span>
                                            <input id="resource-search-input" type="text" class="form-control"
                                                   placeholder="Search" size="600px"/>
                                            <span id="btn-clear-search-input"
                                                  class="glyphicon glyphicon-remove-sign btn-clear-search"></span>
                                        </div>
                                    </div>
                                </div>
                                <!-- /input-group -->
                                <table id="item-selectors" class="table-hover table-striped resource-custom-table">
                                    <thead>
                                    <tr>
                                        <th><input class="all-rows-selector" type="checkbox"></th>
                                        <th>Type</th>
                                        <th>Title</th>
                                        <th>First Author</th>
{'fraction_non_alphanumeric': 0.11840940191580134, 'fraction_numerical': 0.0022538839249778638, 'mean_word_length': 0.7420078519349411, 'pattern_counts': {'":': 0, '<': 207, '<?xml version=': 0, '>': 207, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 166, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1457759', 'n_tokens_mistral': 2521, 'n_tokens_neox': 2333, 'n_words': 515}