<commit_before>{% extends 'layouts/base.html' %}

{% block content %}
    <div class="ui stackable centered grid container">
        <div class="twelve wide column">
            <table class="ui compact definition table">
                <tr><td>Name</td><td>{{ resource.name }}</td></tr>
                <tr><td>Description</td><td>{{ resource.description }}</td></tr>
                <tr><td>Website</td><td><a target="_blank" href="{{ resource.website }}">{{ resource.website }}</a></td></tr>
                <tr><td>Address</td><td>{{ address.street_address }}</td></tr>
                <tr><td>User</td><td>{{ user.full_name() }}</td></tr>
            </table>
            <a href="{{ url_for('resources.create_review', resource_id=resource.id) }}">
                <button class="ui button">Write a Review</button>
            </a>
        </div>

        {% for review in resource.reviews.all() %}
        <div class="twelve wide column">
            <h1>Reviews</h1>
            <h3>User ID: {{ review.user_id }}</h3>
            <table class="ui compact definition table" id="{{ review.id }}">
                <tr><td>Content</td>
                    <td>{{ review.content }}</td></tr>
                <tr><td>Rating</td>
                    <td>{{ review.rating }}</td></tr>
            </table>
            {% if review.user_id is equalto current_user_id %}
                <a href="{{ url_for('resources.update_review', review_id=review.id) }}">
                    <button class="ui button"><i class="write icon"></i></button>
                </a>
                <a href="{{ url_for('resources.delete_review', review_id=review.id) }}">
                    <button class="ui button"><i class="trash icon"></i></button>
                </a>
            {% endif %}
        </div>
        {% endfor %}
    </div>
{% endblock %}
<commit_msg>indent for<commit_after>{% extends 'layouts/base.html' %}

{% block content %}
    <div class="ui stackable centered grid container">
        <div class="twelve wide column">
            <table class="ui compact definition table">
                <tr><td>Name</td><td>{{ resource.name }}</td></tr>
                <tr><td>Description</td><td>{{ resource.description }}</td></tr>
                <tr><td>Website</td><td><a target="_blank" href="{{ resource.website }}">{{ resource.website }}</a></td></tr>
                <tr><td>Address</td><td>{{ address.street_address }}</td></tr>
                <tr><td>User</td><td>{{ user.full_name() }}</td></tr>
            </table>
            <a href="{{ url_for('resources.create_review', resource_id=resource.id) }}">
                <button class="ui button">Write a Review</button>
            </a>
        </div>

        {% for review in resource.reviews.all() %}
            <div class="twelve wide column">
                <h1>Reviews</h1>
                <h3>User ID: {{ review.user_id }}</h3>
                <table class="ui compact definition table" id="{{ review.id }}">
                    <tr><td>Content</td>
                        <td>{{ review.content }}</td></tr>
                    <tr><td>Rating</td>
                        <td>{{ review.rating }}</td></tr>
                </table>
                {% if review.user_id is equalto current_user_id %}
                    <a href="{{ url_for('resources.update_review', review_id=review.id) }}">
                        <button class="ui button"><i class="write icon"></i></button>
                    </a>
                    <a href="{{ url_for('resources.delete_review', review_id=review.id) }}">
                        <button class="ui button"><i class="trash icon"></i></button>
                    </a>
                {% endif %}
            </div>
        {% endfor %}
    </div>
{% endblock %}

{'fraction_non_alphanumeric': 0.19199151418721824, 'fraction_numerical': 0.0021214531954388757, 'mean_word_length': 1.8023774145616642, 'pattern_counts': {'":': 0, '<': 151, '<?xml version=': 0, '>': 151, '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': '2261301', 'n_tokens_mistral': 1136, 'n_tokens_neox': 1045, 'n_words': 219}