<commit_before><div class="ubcpi_block problem">

    <div class="revise" data-ng-controller="ReviseController as rc">

        <div class="question-other-explain" data-ng-if="rc.status() == rc.STATUS_NEW || rc.status() == rc.STATUS_ANSWERED">

            <h2 class="question-text">Question:</h2>

            <img ng-src="{{question_text.image_url}}" ng-if="question_text.image_position == 'above' && question_text.image_url" />

            <pre ng-if="question_text.text">{{question_text.text}}</pre>

            <img ng-src="{{question_text.image_url}}" ng-if="question_text.image_position == 'below' && question_text.image_url" />

            <div class="others-responses" data-ng-if="rc.status() == rc.STATUS_ANSWERED">

                <h3>Others' responses</h3>
                <p>Here is a selection of other students' answers. They may help you refine your answer.</p>

                <ul class="ubcpi-other-answers">
                    <li data-ng-repeat="answer in rc.other_answers.answers">
                        <!-- <h4 class="other-answer">Answer: {{options[answer.option]}}</h4> -->
                        <img ng-src="{{options[answer.option].image_url}}" ng-if="options[answer.option].image_position == 'above' && options[answer.option].image_url" />

                        <h4 class="other-answer" ng-if="options[answer.option].text">{{options[answer.option].text}}</h4>

                        <img ng-src="{{options[answer.option].image_url}}" ng-if="options[answer.option].image_position == 'below' && options[answer.option].image_url" />
                        <p class="other-rationale">{{answer.rationale}}</p>

                    </li>
                </ul>

                <p>If you wish, you may now revise your answer.</p>

            </div><!-- .others-responses -->

            <form class="choicegroup your-answer-and-rationale">
                <h3>Your Response</h3>
                <fieldset role="radiogroup" aria-label>
                    <label class="ubcpi-label ubcpi-answer" data-ng-repeat="option in options track by $index">
                        <input class="ubcpi-field" type="radio"  name="q" data-ng-model="rc.answer" value="{{$index}}" integer>
                        <img ng-src="{{option.image_url}}" ng-if="option.image_position == 'above' && option.image_url" />

                        <p ng-if="option.text">{{option.text}}</p>

                        <img ng-src="{{option.image_url}}" ng-if="option.image_position == 'below' && option.image_url" />

                    </label>
                </fieldset>

                <label class="ubcpi-label" for="{{appId}}_rationale">Please explain your selection:</label>
                <textarea class="ubcpi-field ubcpi-rationale" id="{{appId}}_rationale" name="rationale" data-ng-model="rc.rationale"></textarea>

                <input data-ng-disabled="rc.disableSubmit()" type='button' class='ubcpi_submit' value='Next Step' data-ng-click="rc.clickSubmit($event)" /><commit_msg>FIX allow line breaks in the 'other answer' rationale section by changing from a p tag to a pre tag<commit_after><div class="ubcpi_block problem">

    <div class="revise" data-ng-controller="ReviseController as rc">

        <div class="question-other-explain" data-ng-if="rc.status() == rc.STATUS_NEW || rc.status() == rc.STATUS_ANSWERED">

            <h2 class="question-text">Question:</h2>

            <img ng-src="{{question_text.image_url}}" ng-if="question_text.image_position == 'above' && question_text.image_url" />

            <pre ng-if="question_text.text">{{question_text.text}}</pre>

            <img ng-src="{{question_text.image_url}}" ng-if="question_text.image_position == 'below' && question_text.image_url" />

            <div class="others-responses" data-ng-if="rc.status() == rc.STATUS_ANSWERED">

                <h3>Others' responses</h3>
                <p>Here is a selection of other students' answers. They may help you refine your answer.</p>

                <ul class="ubcpi-other-answers">
                    <li data-ng-repeat="answer in rc.other_answers.answers">
                        <!-- <h4 class="other-answer">Answer: {{options[answer.option]}}</h4> -->
                        <img ng-src="{{options[answer.option].image_url}}" ng-if="options[answer.option].image_position == 'above' && options[answer.option].image_url" />

                        <h4 class="other-answer" ng-if="options[answer.option].text">{{options[answer.option].text}}</h4>

                        <img ng-src="{{options[answer.option].image_url}}" ng-if="options[answer.option].image_position == 'below' && options[answer.option].image_url" />
                        <pre class="other-rationale">{{answer.rationale}}</pre>

                    </li>
                </ul>

                <p>If you wish, you may now revise your answer.</p>

            </div><!-- .others-responses -->

            <form class="choicegroup your-answer-and-rationale">
                <h3>Your Response</h3>
                <fieldset role="radiogroup" aria-label>
                    <label class="ubcpi-label ubcpi-answer" data-ng-repeat="option in options track by $index">
                        <input class="ubcpi-field" type="radio"  name="q" data-ng-model="rc.answer" value="{{$index}}" integer>
                        <img ng-src="{{option.image_url}}" ng-if="option.image_position == 'above' && option.image_url" />

                        <p ng-if="option.text">{{option.text}}</p>

                        <img ng-src="{{option.image_url}}" ng-if="option.image_position == 'below' && option.image_url" />

                    </label>
                </fieldset>

                <label class="ubcpi-label" for="{{appId}}_rationale">Please explain your selection:</label>
                <textarea class="ubcpi-field ubcpi-rationale" id="{{appId}}_rationale" name="rationale" data-ng-model="rc.rationale"></textarea>

                <input data-ng-disabled="rc.disableSubmit()" type='button' class='ubcpi_submit' value='Next Step' data-ng-click="rc.clickSubmit($event)" />
{'fraction_non_alphanumeric': 0.1696136214800262, 'fraction_numerical': 0.0032743942370661427, 'mean_word_length': 2.3863636363636362, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 0, '>': 99, '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': '216435', 'n_tokens_mistral': 1877, 'n_tokens_neox': 1744, 'n_words': 305}