<commit_before>﻿<div class="modal-body">
    <button type="button" class="close" data-ng-click="cancel()">&times;</button>
    <br class="xs-10" />

    <div class="text-center text-success" data-ng-show="saving">
        <br />
        <i class="fa fa-spinner fa-pulse" style="font-size:48px"></i>
    </div>
    <div data-ng-show="!saving">

        {{question | json}}
     
        <form name="questionForm" novalidate>

            <div class="form-group has-success">

                <lable class="control-label"><strong>Question Type: </strong></lable>
                
                <!--<span class="text-success" data-ng-if="question.QuestionType==1">multiple choice</span>
                <span class="text-success" data-ng-if="question.QuestionType==2">single choice</span>-->
                <div class="btn-group">
                    <label class="btn" data-ng-class="{'btn-success': question.QuestionType==1, 'btn-default': question.QuestionType==2}" 
                           ng-model="question.QuestionType" uib-btn-radio="1"><i class="glyphicon glyphicon-check"></i> Checkbox</label>
                    <label class="btn" data-ng-class="{'btn-success': question.QuestionType==2, 'btn-default': question.QuestionType==1}" 
                           ng-model="question.QuestionType" uib-btn-radio="2"><i class="glyphicon glyphicon-record"></i> Radio Button</label>
                </div>
            </div>

            <div class="form-group has-success has-feedback">

                <label class="control-label" for="questionTitle">Question</label>
                <input type="text" class="form-control input-lg" id="questionTitle" name="questionTitle"
                       data-ng-model="question.Question" placeholder="Question" required />
                <span class="fa fa-pencil form-control-feedback"></span>
            </div>
           
            <div class="form-group has-success">
                <lable class="control-label"><strong>Question Items: </strong></lable>
                <div class="clearfix"></div>
           
                <div class="row">
                    <div data-ng-repeat="i in question.dtoItems" data-ng-class="{'checkbox checkbox-success':question.QuestionType==1, 'radio radio-success':question.QuestionType==2}">
                        <div class="col-xs-6 col-xs-offset-1">
                            <input type="checkbox" name="question{{i.QuestionId}}" id="item{{i.QuestionItemId}}" data-ng-if="question.QuestionType==1" />
                            <input type="radio" name="question{{i.QuestionId}}" id="item{{i.QuestionItemId}}" data-ng-if="question.QuestionType==2" />
                            <label class="break-word" for="item{{i.QuestionItemId}}">{{i.ItemDescription}}</label>

                        </div>
                        <div class="col-xs-2">
                            <button class="btn btn-link btn-sm" data-ng-click="removeItem(i)"><i class="glyphicon glyphicon-remove"></i> Remove</button>
                        </div>
                    </div>
                    <div data-ng-class="{'checkbox checkbox-success':question.QuestionType==1, 'radio radio-success':question.QuestionType==2}">
                        <div class="col-xs-6 col-xs-offset-1">
                            <input type="text" class="form-control input-sm" name="itemInput" data-ng-model="item" placeholder="Add item" data-ng-minlength="1" data-ng-maxlength="150" />
                        </div>
                        <div class="col-xs-2">
                            <button class="btn btn-link btn-sm" data-ng-click="addItem()" data-ng-disabled="!item"><i class="glyphicon glyphicon-plus"></i> Add</button>
                        </div><commit_msg>fix the checkbox / radio item tick on<commit_after>﻿<div class="modal-body">
    <button type="button" class="close" data-ng-click="cancel()">&times;</button>
    <br class="xs-10" />

    <div class="text-center text-success" data-ng-show="saving">
        <br />
        <i class="fa fa-spinner fa-pulse" style="font-size:48px"></i>
    </div>
    <div data-ng-show="!saving">

        {{question | json}}
     
        <form name="questionForm" novalidate>

            <div class="form-group has-success">

                <lable class="control-label"><strong>Question Type: </strong></lable>
                
                <!--<span class="text-success" data-ng-if="question.QuestionType==1">multiple choice</span>
                <span class="text-success" data-ng-if="question.QuestionType==2">single choice</span>-->
                <div class="btn-group">
                    <label class="btn" data-ng-class="{'btn-success': question.QuestionType==1, 'btn-default': question.QuestionType==2}" 
                           ng-model="question.QuestionType" uib-btn-radio="1"><i class="glyphicon glyphicon-check"></i> Checkbox</label>
                    <label class="btn" data-ng-class="{'btn-success': question.QuestionType==2, 'btn-default': question.QuestionType==1}" 
                           ng-model="question.QuestionType" uib-btn-radio="2"><i class="glyphicon glyphicon-record"></i> Radio Button</label>
                </div>
            </div>

            <div class="form-group has-success has-feedback">

                <label class="control-label" for="questionTitle">Question</label>
                <input type="text" class="form-control input-lg" id="questionTitle" name="questionTitle"
                       data-ng-model="question.Question" placeholder="Question" required />
                <span class="fa fa-pencil form-control-feedback"></span>
            </div>
           
            <div class="form-group has-success">
                <lable class="control-label"><strong>Question Items: </strong></lable>
                <div class="clearfix"></div>
           
                <div class="row">
                    <div data-ng-repeat="i in question.dtoItems" data-ng-class="{'checkbox checkbox-success':question.QuestionType==1, 'radio radio-success':question.QuestionType==2}">
                        <div class="col-xs-6 col-xs-offset-1">
                            <input type="checkbox" name="question{{i.QuestionId}}" id="item{{i.ItemOrder}}" data-ng-if="question.QuestionType==1" />
                            <input type="radio" name="question{{i.QuestionId}}" id="item{{i.ItemOrder}}" data-ng-if="question.QuestionType==2" />
                            <label class="break-word" for="item{{i.ItemOrder}}">{{i.ItemDescription}}</label>

                        </div>
                        <div class="col-xs-2">
                            <button class="btn btn-link btn-sm" data-ng-click="removeItem(i)"><i class="glyphicon glyphicon-remove"></i> Remove</button>
                        </div>
                    </div>
                    <div data-ng-class="{'checkbox checkbox-success':question.QuestionType==1, 'radio radio-success':question.QuestionType==2}">
                        <div class="col-xs-6 col-xs-offset-1">
                            <input type="text" class="form-control input-sm" name="itemInput" data-ng-model="item" placeholder="Add item" data-ng-minlength="1" data-ng-maxlength="150" />
                        </div>
                        <div class="col-xs-2">
                            <button class="btn btn-link btn-sm" data-ng-click="addItem()" data-ng-disabled="!item"><i class="glyphicon glyphicon-plus"></i> Add</button>
                        </div>
{'fraction_non_alphanumeric': 0.16837754966004534, 'fraction_numerical': 0.007465671243834155, 'mean_word_length': 2.0683026584867075, 'pattern_counts': {'":': 0, '<': 145, '<?xml version=': 0, '>': 145, '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': '7056358', 'n_tokens_mistral': 2147, 'n_tokens_neox': 2029, 'n_words': 341}