<commit_before>{% extends '__base__.html' %}

{% block title %}{{ blog.title }}{% endblock %}

{% block content %}
<div class="col-sm-9" id="main">
    <h2 class="text-primary">{{ blog.title }}</h2>
    <h4><small><span class="glyphicon glyphicon-time"></span> Posted by {{ blog.user_name }}, {{ blog.created|datetime }}</small></h4>
        <!-- will add tags here -->
    <p>{{ blog.content }}</p>
    <hr>
    {% if g.__user__ %}
    <h4>Leave a Comment:</h4>
    <form class="form" v-on:submit.prevent="submit">
        <div class="form-group">
            <textarea class="form-control" rows="8" v-model="comment" placeholder="Content" required></textarea>
        </div>
        <div class="form-group">
            <button class="btn btn-success">Submit</button>
        </div>
    </form>
    <br><br>
    {% else %}
    <h4>Please login</h4>
    {% endif %}
    
    <p><span class="badge">2</span> Comments:</p><br>
    <div class="row" v-for="item in comments" track-by="_id">
        <div class="col-sm-2 text-center">
            <img :src="item.user_image" class="img-circle" height="65" width="65" alt="Avatar" />
        </div>
        <div class="col-sm-10">
            <h4 v-text="item.user_name"></h4>
            <p v-text="item.content"></p>
            <br>
        </div>
    </div>
</div>
{% endblock %}

{% block script %}
    <script src="/static/js/comment.js"></script>
{% endblock %}<commit_msg>render<commit_after>{% extends '__base__.html' %}

{% block title %}{{ blog.title }}{% endblock %}

{% block content %}
<div class="col-sm-9" id="main">
    <h2 class="text-primary">{{ blog.title }}</h2>
    <h4><small><span class="glyphicon glyphicon-time"></span> Posted by {{ blog.user_name }}, {{ blog.created|datetime }}</small></h4>
        <!-- will add tags here -->
    <p>{{ blog.content }}</p>
    <hr>
    {% if g.__user__ %}
    <h4>Leave a Comment:</h4>
    <form class="form" v-on:submit.prevent="submit">
        <div class="form-group">
            <textarea class="form-control" rows="6" v-model="comment" placeholder="Content" required></textarea>
        </div>
        <div class="form-group">
            <button class="btn btn-success">Submit</button>
        </div>
    </form>
    <br><br>
    {% else %}
    <h4>Please sign in</h4>
    {% endif %}
    
    <p><span class="badge" v-text="comments | count"></span> Comments:</p><br>
    <div class="row" v-for="item in comments" track-by="_id">
        <div class="col-sm-2 text-center">
            <img :src="item.user_image" class="img-circle" height="65" width="65" alt="Avatar" />
        </div>
        <div class="col-sm-10">
            <h4 style="display:inline-block" v-text="item.user_name"></h4>
            <h4 style="display:inline-block"></h4>
            <h4 style="display:inline-block"><small v-text="item.created | datetime"></small></h4>
            <p style="overflow-x:scroll" v-html="item.content"></p>
            <br>
        </div>
    </div>
</div>
{% endblock %}

{% block script %}
    <script src="/static/js/comment.js"></script>
{% endblock %}
{'fraction_non_alphanumeric': 0.21788617886178863, 'fraction_numerical': 0.013983739837398375, 'mean_word_length': 2.653206650831354, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 107, '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': '3913245', 'n_tokens_mistral': 1087, 'n_tokens_neox': 1034, 'n_words': 203}