<commit_before>#flags_div.bottom-padding-med
    legend Flags:
    #prev_flags_div.panel-group(role="tablist", aria-multiselectable="true")

        .panel(
        ng-repeat="flag in flags"
        ng-if="identity.currentUser.isSupervisor() || (!flag.addressed && (flag.addressed_to._id === identity.currentUser._id))"
        ng-class="{'panel-success': flag.addressed, 'panel-danger': !flag.addressed}")
            .panel-heading(role="tab", id="heading{{flag._id}}")
                h4.panel-title
                    div(
                    style="text-align: left;"
                    role="button"
                    data-toggle="collapse"
                    data-parent="#accordion"
                    href="#collapse{{flag._id}}"
                    aria-expanded="false"
                    aria-controls="collapse{{flag._id}}")
                        b Flag {{$index+1}} - {{flag.author.firstName}} {{flag.author.lastName}} (
                        b {{ flag.author.role|role }}
                        b ):
                        em  {{flag.date | date:'MM/dd/yyyy'}}
                        h6.pull-right(ng-if="identity.currentUser.isSupervisor()") Addressed to: {{flag.addressed_to.firstName}} {{flag.addressed_to.lastName}}
            .panel-collapse.collapse(
            id="collapse{{flag._id}}"
            role="tabpanel"
            ng-if="flag.addressed"
            aria-labelledby="heading{{flag._id}}")
                .panel-body
                    .row.left-padding-lg(ng-if="identity.currentUser.isSupervisor()")
                        label Addressed?
                            | &nbsp;
                            input(type="checkbox" ng-model="flag.addressed")
                    .row.left-padding-lg.right-padding-lg.flag-panel-content(ng-bind-html="flag.content") {{flag.content}}
                    .row.pull-right.right-padding-lg(ng-if="flag.author._id === identity.currentUser._id")
                        button.btn.btn-primary(ng-click="flagEdit(flag, $index)") Edit
            .panel-collapse.collapse.in(
            id="collapse{{flag._id}}"
            role="tabpanel"
            ng-if="!flag.addressed"
            aria-labelledby="heading{{flag._id}}")
                .panel-body
                    .row.left-padding-lg(ng-if="identity.currentUser.isSupervisor()")
                        label Addressed?
                            | &nbsp;
                            input(type="checkbox", ng-model="flag.addressed")

                    .row.left-padding-lg.right-padding-lg.wrap-content(ng-bind-html="flag.content")
                    .row.pull-right.right-padding-lg(ng-if="flag.author._id === identity.currentUser._id")
                        button.btn.btn-primary(ng-click="flagEdit(flag, $index)") Edit
        .top-padding-lg
            div(
            ng-repeat="flag in answer.flags"
            ng-if="!identity.currentUser.isSupervisor() && flag.addressed_to._id!==identity.currentUser._id")
                i.glyphicon.glyphicon-warning-sign.text-warning
                    text(ng-if="identity.currentUser.isResearcher()")  Flag to Researcher:
                    text(ng-if="identity.currentUser.isReviewer()")  Flag to Reviewer:
                text.wrap-content(ng-bind-html="flag.content")<commit_msg>fix the flag addressing<commit_after>#flags_div.bottom-padding-med
    legend Flags:
    #prev_flags_div.panel-group(role="tablist", aria-multiselectable="true")

        .panel(
        ng-repeat="flag in flags"
        ng-if="identity.currentUser.isSupervisor() || (!flag.addressed && (flag.addressed_to._id === identity.currentUser._id))"
        ng-class="{'panel-success': flag.addressed, 'panel-danger': !flag.addressed}")
            .panel-heading(role="tab", id="heading{{flag._id}}")
                h4.panel-title
                    div(
                    style="text-align: left;"
                    role="button"
                    data-toggle="collapse"
                    data-parent="#accordion"
                    href="#collapse{{flag._id}}"
                    aria-expanded="false"
                    aria-controls="collapse{{flag._id}}")
                        b Flag {{$index+1}} - {{flag.author.firstName}} {{flag.author.lastName}} (
                        b {{ flag.author.role|role }}
                        b ):
                        em  {{flag.date | date:'MM/dd/yyyy'}}
                        h6.pull-right(ng-if="identity.currentUser.isSupervisor()") Addressed to: {{flag.addressed_to.firstName}} {{flag.addressed_to.lastName}}
            .panel-collapse.collapse(
            id="collapse{{flag._id}}"
            role="tabpanel"
            ng-if="flag.addressed"
            aria-labelledby="heading{{flag._id}}")
                .panel-body
                    .row.left-padding-lg(ng-if="identity.currentUser.isSupervisor()")
                        label Addressed?
                            | &nbsp;
                            input(type="checkbox" ng-model="flag.addressed")
                    .row.left-padding-lg.right-padding-lg.flag-panel-content(ng-bind-html="flag.content") {{flag.content}}
                    .row.pull-right.right-padding-lg(ng-if="flag.author._id === identity.currentUser._id")
                        button.btn.btn-primary(ng-click="flagEdit(flag, $index)") Edit
            .panel-collapse.collapse.in(
            id="collapse{{flag._id}}"
            role="tabpanel"
            ng-if="!flag.addressed"
            aria-labelledby="heading{{flag._id}}")
                .panel-body
                    .row.left-padding-lg(ng-if="identity.currentUser.isSupervisor()")
                        label Addressed?
                            | &nbsp;
                            input(type="checkbox", ng-model="flag.addressed")

                    .row.left-padding-lg.right-padding-lg.wrap-content(ng-bind-html="flag.content")
                    .row.pull-right.right-padding-lg(ng-if="flag.author._id === identity.currentUser._id")
                        button.btn.btn-primary(ng-click="flagEdit(flag, $index)") Edit
        .top-padding-lg
            div(
            ng-repeat="flag in answer.flags"
            ng-if="!identity.currentUser.isSupervisor() && flag.addressed_to._id!==identity.currentUser._id")
                i.glyphicon.glyphicon-warning-sign.text-warning  Flag to {{flag.addressed_to.role|role|ucfirst}}:
                text.wrap-content(ng-bind-html="flag.content")
{'fraction_non_alphanumeric': 0.14905776953969724, 'fraction_numerical': 0.0009267840593141798, 'mean_word_length': 1.6668039538714992, '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': '1210471', 'n_tokens_mistral': 1842, 'n_tokens_neox': 1769, 'n_words': 195}