<commit_before>div(id="comments_div").bottom-padding-med
    legend Comments:
    div(id="prev_comments_div" ng-if="update.comments.length!==0")
        .row.left-padding-lg.bottom-padding-med(ng-repeat="comment in update.comments")
            .row
                b {{comment.author.firstName}} {{comment.author.lastName}} (
                b {{comment.author.role}}
                b ):
            .row
                date
                    small
                        em  {{comment.date | date:'MM/dd/yyyy @ h:mma' : timezone}}
            .row.col-md-11(ng-bind-html="comment.content")
            .row.pull-right.right-padding-lg(ng-if="comment.author._id === current_user._id")
                button.btn.btn-primary(ng-click="commentEdit(comment, $index)") Edit comment

    div(id="new_comment_div").bottom-padding-med.top-padding-med
        ng-form(name="new_comment_form")
            .form-group.top-padding-med
                .row.left-padding-lg
                    .col-md-10
                        div(
                            name="comment"
                            ng-model="update.new_comment"
                            ta-toolbar="[['undo', 'redo', 'clear'], ['bold', 'italics', 'underline', 'strikeThrough'], ['h1', 'h2', 'h3'], ['ul', 'ol'], ['pre', 'quote', 'insertLink']]"
                            placeholder="New comment..."
                            text-angular
                        )
                    .col-md-1
                        button.btn.btn-success(
                        ng-click="commentSubmit()"
                        ng-disabled="new_comment_form.$invalid"
                        ) Submit comment

//div(id="comments_div").bottom-padding-med
//    legend Comments:
//    div(id="prev_comments_div" ng-if="update.comments.length!==0")
//        .row.left-padding-lg.bottom-padding-med(ng-repeat="comment in update.comments")
//            .row
//                b {{comment.author_name}} (
//                b {{comment.role}}
//                b ):
//            .row
//                date
//                    small
//                        em  {{comment.date | date:'MM/dd/yyyy @ h:mma' : timezone}}
//            .row.col-md-11(ng-bind-html="comment.content")
//            .row.pull-right.right-padding-lg(ng-if="comment.author === current_user._id")
//                button.btn.btn-primary(ng-click="commentEdit(comment, $index)") Edit comment
//
//    div(id="new_comment_div").bottom-padding-med.top-padding-med
//        ng-form(name="new_comment_form")
//            .form-group.top-padding-med
//                .row.left-padding-lg
//                    .col-md-10
//                        textarea.form-control(
//                        name="comment"
//                        type="text"
//                        ng-model="update.new_comment"
//                        placeholder="New comment..."
//                        redactor
//                        required) {{update.new_comment}}
//                    .col-md-1
//                        button.btn.btn-success(
//                        ng-click="commentSubmit()"
//                        ng-disabled="new_comment_form.$invalid"
//                        ) Submit comment
//
//
////div(id="comments_div").bottom-padding-med
////    legend Comments:
////    div(id="prev_comments_div" ng-if="comments.comments.length!==0")
////        .row.left-padding-lg.bottom-padding-med(ng-repeat="comment in comments.comments")
////            .row
////                b {{comment.author_name}} (
////                b {{comment.role}}
////                b ):
////            .row
////                date
////                    small
////                        em  {{comment.date | date:'MM/dd/yyyy @ h:mma' : timezone}}
////            .row.col-md-11(ng-bind-html="comment.content")
////            .row.pull-right.right-padding-lg(ng-if="comment.author === current_user._id")
////                button.btn.btn-primary(ng-click="commentEdit(comment, $index)") Edit comment
////
////    div {{comments}}
////
////    div(id="new_comment_div").bottom-padding-med.top-padding-med
////        ng-form(name="new_comment_form")
////            .form-group.top-padding-med
////                .row.left-padding-lg
////                    .col-md-10
////                        textarea.form-control(
////                        name="comment"
////                        type="text"
////                        ng-model="new_comment"
////                        placeholder="New comment..."
////                        redactor
////                        required)
////                    .col-md-1
////                        button.btn.btn-success(
////                        ng-click="commentSubmit()"
////                        ng-disabled="new_comment_form.$invalid"
////                        ) Submit comment<commit_msg>fix the error `$digest already in progress`<commit_after>div(id="comments_div").bottom-padding-med
    legend Comments:
    div(id="prev_comments_div" ng-if="update.comments.length!==0")
        .row.left-padding-lg.bottom-padding-med(ng-repeat="comment in update.comments")
            .row
                b {{comment.author.firstName}} {{comment.author.lastName}} (
                b {{comment.author.role}}
                b ):
            .row
                date
                    small
                        em  {{comment.date | date:'MM/dd/yyyy @ h:mma' : timezone}}
            .row.col-md-11(ng-bind-html="comment.content")
            .row.pull-right.right-padding-lg(ng-if="comment.author._id === current_user._id")
                button.btn.btn-primary(ng-click="commentEdit(comment, $index)") Edit comment

    #new_comment_div.bottom-padding-med.top-padding-med
        ng-form(name="new_comment_form")
            .row.left-padding-lg
                .col-md-10
                    div(
                        name="comment"
                        ng-model="update.new_comment"
                        ta-toolbar="[['undo', 'redo', 'clear'], ['bold', 'italics', 'underline', 'strikeThrough'], ['h1', 'h2', 'h3'], ['ul', 'ol'], ['pre', 'quote', 'insertLink']]"
                        placeholder="New comment..."
                        text-angular
                    )
                .col-md-1
                    button.btn.btn-success(
                    ng-click="commentSubmit()"
                    ng-disabled="new_comment_form.$invalid"
                    ) Submit comment
{'fraction_non_alphanumeric': 0.16337854500616522, 'fraction_numerical': 0.004623921085080148, 'mean_word_length': 1.2406767955801106, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6031146', 'n_tokens_mistral': 1808, 'n_tokens_neox': 1704, 'n_words': 227}