<commit_before>{% extends comment.getId() ? 'default/layout.twig' : 'default/empty.twig' %}

{% block body %}

{% if comment.getId() %}
<h2 class="page-header">Editing commeent</h2>
{% endif %}

<form method="POST" action="{{ comment.getId() ? '' : url('/post/' ~ post.getId() ~ '/comment') }}">
<fieldset>
    {% if not comment.getId() %}
    <legend>Writing comment</legend>
    {% endif %}

    {% if loggedAccountId is empty %}
    <div class="row">
    <div class="form-group col-sm-6">
        <label>Author</label>
        <input type="text" name="author" value="{{ comment.getAuthor() | escape }}" class="form-control" />
    </div>
    <div class="form-group col-sm-6">
        <label>Password</label>
        <input type="password" name="password" value="" class="form-control" />
    </div>
    </div>
    {% endif %}

    <div class="form-group">
        <label>Content</label>
        <textarea name="content" rows="10" cols="80" class="form-control">{{ comment.getContent() | escape }}</textarea>
    </div>
    <div class="form-group">
        <input type="submit" value="Submit" class="btn btn-primary" />
    </div>
</fieldset>
</form>
{% endblock %}
<commit_msg>코멘트 수정 페이지에서 취소 버튼 추가<commit_after>{% extends comment.getId() ? 'default/layout.twig' : 'default/empty.twig' %}

{% block body %}

{% if comment.getId() %}
<h2 class="page-header">Editing commeent</h2>
{% endif %}

<form method="POST" action="{{ comment.getId() ? '' : url('/post/' ~ post.getId() ~ '/comment') }}">
<fieldset>
    {% if not comment.getId() %}
    <legend>Writing comment</legend>
    {% endif %}

    {% if loggedAccountId is empty %}
    <div class="row">
    <div class="form-group col-sm-6">
        <label>Author</label>
        <input type="text" name="author" value="{{ comment.getAuthor() | escape }}" class="form-control" />
    </div>
    <div class="form-group col-sm-6">
        <label>Password</label>
        <input type="password" name="password" value="" class="form-control" />
    </div>
    </div>
    {% endif %}

    <div class="form-group">
        <label>Content</label>
        <textarea name="content" rows="10" cols="80" class="form-control">{{ comment.getContent() | escape }}</textarea>
    </div>
    <div class="form-group">
        <input type="submit" value="Submit" class="btn btn-primary" />
        {% if comment %}
            <a href="{{ url('/post/' ~ comment.getPost().getId()) }}" class="btn btn-danger">Cancel</a>
        {% endif %}
    </div>
</fieldset>
</form>
{% endblock %}

{'fraction_non_alphanumeric': 0.2173222089789432, 'fraction_numerical': 0.006356773937226857, 'mean_word_length': 3.16198347107438, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 63, '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': '6587515', 'n_tokens_mistral': 885, 'n_tokens_neox': 843, 'n_words': 174}