<commit_before>{% extends "core/base.html" %}

{% block title %}{{ request.press.name }} Preprints{% endblock %}

{% block body %}
    <div class="row">
        <div class="col-md-12">
            <h2 class="text-center">{{ request.press.name }} Preprints</h2>
        </div>

        <br/><br/><br/><br/>

        <div class="col-md-3"></div>
        <div class="col-md-6">
            <form class="form-horizontal" method="POST" action="{% url 'preprints_search' %}">
                {% csrf_token %}
                <div class="form-group">
                    <label class="sr-only" for="exampleInputAmount">Search Term</label>
                    <div class="input-group">
                        <div class="input-group-addon"><i class="fa fa-search"></i></div>
                        <input type="text" class="form-control" id="search" name="search_term"
                               placeholder="Search preprints..." style="width: 100%;">
                    </div>
                </div>
                <input type="submit" style="visibility: hidden;"/>
            </form>
        </div>
    </div>
    <div class="row">
        <div class="col-md-12">
            <p class="text-center">Read about {{ request.press.name }} <a
                    href="{% url 'preprints_about' %}">preprints</a> or view list of <a
                    href="{% url 'preprints_list' %}">all preprints</a>.</p>
        </div>
    </div>
    {% if preprints %}
        <br/><br/><br/><br/>
        <div class="row">
            <div class="col-md-12">
                <h3 class="text-center">Latest Preprints</h3>

                {% include "elements/preprint_block.html" with preprints=preprints %}
            </div>
        </div>
    {% endif %}
    {% if subjects %}
        <br/><br/><br/><br/>
        <div class="row">
            <div class="col-md-12">
                <h3 class="text-center">Filter by Subject</h3>
                {% if subjects|length <= 5 %}
                    <div class="col-md-12">
                        <div class="stacked button-group">
                            {% for subject in subjects %}
                                <a href="{% url 'preprints_list_subject' subject.slug %}"
                                   class="btn btn-primary btn-block">{{ subject.name }}</a>
                            {% endfor %}
                        </div>
                    </div>
                {% else %}
                    <div class="row">
                        {% for subject in subjects %}
                            <div class="col-md-6">
                                <a href="{% url 'preprints_list_subject' subject.slug %}"
                                   class="btn btn-primary btn-block">{{ subject.name }}</a><commit_msg>Wrapped preprints element in row for default<commit_after>{% extends "core/base.html" %}

{% block title %}{{ request.press.name }} Preprints{% endblock %}

{% block body %}
    <div class="row">
        <div class="col-md-12">
            <h2 class="text-center">{{ request.press.name }} Preprints</h2>
        </div>

        <br/><br/><br/><br/>

        <div class="col-md-3"></div>
        <div class="col-md-6">
            <form class="form-horizontal" method="POST" action="{% url 'preprints_search' %}">
                {% csrf_token %}
                <div class="form-group">
                    <label class="sr-only" for="exampleInputAmount">Search Term</label>
                    <div class="input-group">
                        <div class="input-group-addon"><i class="fa fa-search"></i></div>
                        <input type="text" class="form-control" id="search" name="search_term"
                               placeholder="Search preprints..." style="width: 100%;">
                    </div>
                </div>
                <input type="submit" style="visibility: hidden;"/>
            </form>
        </div>
    </div>
    <div class="row">
        <div class="col-md-12">
            <p class="text-center">Read about {{ request.press.name }} <a
                    href="{% url 'preprints_about' %}">preprints</a> or view list of <a
                    href="{% url 'preprints_list' %}">all preprints</a>.</p>
        </div>
    </div>
    {% if preprints %}
        <br/><br/><br/><br/>
        <div class="row">
            <div class="col-md-12">
                <h3 class="text-center">Latest Preprints</h3>
                <div class="row">
                    {% include "elements/preprint_block.html" with preprints=preprints %}
                </div>
            </div>
        </div>
    {% endif %}
    {% if subjects %}
        <br/><br/><br/><br/>
        <div class="row">
            <div class="col-md-12">
                <h3 class="text-center">Filter by Subject</h3>
                {% if subjects|length <= 5 %}
                    <div class="col-md-12">
                        <div class="stacked button-group">
                            {% for subject in subjects %}
                                <a href="{% url 'preprints_list_subject' subject.slug %}"
                                   class="btn btn-primary btn-block">{{ subject.name }}</a>
                            {% endfor %}
                        </div>
                    </div>
                {% else %}
                    <div class="row">
                        {% for subject in subjects %}
                            <div class="col-md-6">
                                <a href="{% url 'preprints_list_subject' subject.slug %}"
                                   class="btn btn-primary btn-block">{{ subject.name }}</a>
{'fraction_non_alphanumeric': 0.16645962732919253, 'fraction_numerical': 0.00816326530612245, 'mean_word_length': 1.3561872909698998, 'pattern_counts': {'":': 0, '<': 139, '<?xml version=': 0, '>': 137, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4257191', 'n_tokens_mistral': 1662, 'n_tokens_neox': 1518, 'n_words': 324}