<commit_before>{% extends "main/base.html" %}
{% block head %}
{% endblock %}
{% block content %}
<h2>{{ battery.name }}</h2>

<div class="row" style="margin-top:0px">
    <div class="col-lg-12">
            {% if edit_permission %}
                <a class='btn-default btn-lg' href='{% url 'edit_battery' battery.id %}'>Edit Battery</a>
                {% if has_results %}
                <a class='btn-default btn-lg' href='{% url 'export_battery' battery.id %}'>Export Results</a>
                {% endif %}
                {% if mturk_permission %}
                    {% if hits %}
                        <a class='btn-default btn-lg' target="_blank" href='{% url 'serve_hit' hits.0.id %}'>Preview</a>
                    {% endif %}
                {% endif %}
            {% else %}
                {% if mturk_permission %}
                {% if hits %}
                <div class="alert alert-info" role="alert">You do not have permission to edit this battery, but you can
                <a href='{% url 'serve_hit' hits.0.id %}' target="_blank">preview</a> it.</div>
                {% endif %}
                {% else %}
                <div class="alert alert-info" role="alert">You do not have permission to edit this battery, but you can
                <a href='{% url 'serve_battery' battery.id %}' target="_blank">preview</a> it.</div><commit_msg>fixing strange styling of columns (shrinking on battery view)<commit_after>{% extends "main/base.html" %}
{% block head %}
{% endblock %}
{% block content %}
<h2>{{ battery.name }}</h2>

<div class="row" style="margin-top:0px">
    <div class="col-md-12">
            {% if edit_permission %}
                <a class='btn-default btn-lg' href='{% url 'edit_battery' battery.id %}'>Edit Battery</a>
                {% if has_results %}
                <a class='btn-default btn-lg' href='{% url 'export_battery' battery.id %}'>Export Results</a>
                {% endif %}
                {% if mturk_permission %}
                    {% if hits %}
                        <a class='btn-default btn-lg' target="_blank" href='{% url 'serve_hit' hits.0.id %}'>Preview</a>
                    {% endif %}
                {% endif %}
            {% else %}
                {% if mturk_permission %}
                {% if hits %}
                <div class="alert alert-info" role="alert">You do not have permission to edit this battery, but you can
                <a href='{% url 'serve_hit' hits.0.id %}' target="_blank">preview</a> it.</div>
                {% endif %}
                {% else %}
                <div class="alert alert-info" role="alert">You do not have permission to edit this battery, but you can
                <a href='{% url 'serve_battery' battery.id %}' target="_blank">preview</a> it.</div>
{'fraction_non_alphanumeric': 0.16367552045944006, 'fraction_numerical': 0.005025125628140704, 'mean_word_length': 1.846782431052094, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, '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': '981295', 'n_tokens_mistral': 890, 'n_tokens_neox': 766, 'n_words': 217}