<commit_before>{% extends 'reviews/base.html' %}
{% block title %}ibComics Reviews: Write Review{% endblock %}
{% block allreviews %}{{ block.super }}{% endblock %}
{% block allcomics %}{{ block.super }}{% endblock %}

{% block content %}
    <h1>{{ comic.name }}</h1>

    {% if error_message %}<p style="color:red;"><strong>{{ error_message }}</strong></p>{% endif %}

    <form action="{% url 'savereview' comic.id %}" method="post">
        {% csrf_token %}
        <div class="login">
            Reviewer:
            <select name="reviewer">
            {% for reviewer in reviewers %}
                <option value="{{ reviewer.id }}">{{ reviewer.name }}</option>
            {% endfor %}
            </select>

            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

            Password:
            <input type="password" name="password" />
        </div>
        <br />
        <div class="review">
            <input type="range" step="0.5" value="0" step="0.25" id="starbacking" name="rating" />
            <div class="rateit" data-rateit-backingfld="#starbacking" ></div>
            <div class="review_text">
                <textarea rows="4" cols="60" name="review_text" onclick="this.focus();this.select()">{{ review_text }}</textarea>
            </div>
        </div>
        <input type="submit" value="Review" />
    </form>
{% endblock %}<commit_msg>integer ratings only<commit_after>{% extends 'reviews/base.html' %}
{% block title %}ibComics Reviews: Write Review{% endblock %}
{% block allreviews %}{{ block.super }}{% endblock %}
{% block allcomics %}{{ block.super }}{% endblock %}

{% block content %}
    <h1>{{ comic.name }}</h1>

    {% if error_message %}<p style="color:red;"><strong>{{ error_message }}</strong></p>{% endif %}

    <form action="{% url 'savereview' comic.id %}" method="post">
        {% csrf_token %}
        <div class="login">
            Reviewer:
            <select name="reviewer">
            {% for reviewer in reviewers %}
                <option value="{{ reviewer.id }}">{{ reviewer.name }}</option>
            {% endfor %}
            </select>

            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

            Password:
            <input type="password" name="password" />
        </div>
        <br />
        <div class="review">
            <input type="range" value="0" id="starbacking" name="rating" />
            <div class="rateit" data-rateit-backingfld="#starbacking" ></div>
            <div class="review_text">
                <textarea rows="4" cols="60" name="review_text" onclick="this.focus();this.select()">{{ review_text }}</textarea>
            </div>
        </div>
        <input type="submit" value="Review" />
    </form>
{% endblock %}
{'fraction_non_alphanumeric': 0.19557195571955718, 'fraction_numerical': 0.006273062730627306, 'mean_word_length': 2.4015056461731494, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, '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': '2646227', 'n_tokens_mistral': 880, 'n_tokens_neox': 790, 'n_words': 178}