<commit_before><script>
    function startTimer(timerView, hiddenField) {
        var timer = 0, minutes, seconds;
        setInterval(function() {
            minutes = parseInt(timer / 60, 10);
            seconds = parseInt(timer % 60, 10);

            minutes = minutes < 10 ? "0" + minutes : minutes;
            seconds = seconds < 10 ? "0" + seconds : seconds;

            timerView.textContent = minutes + ":" + seconds;
            hiddenField.value = minutes + ":" + seconds;
            ++timer;
        }, 1000);
    }

    window.onload = function() {
        var timerView = document.querySelector('#time'),
            hiddenField = document.querySelector('#timeTaken');

        startTimer(timerView, hiddenField);
    };
</script>

<div class="container-question">
    <div class="col-lg-12 text-center">
        <body> 
            <!--Display time taken-->
            <div class="clock-text">Time Taken:<span id="time"></span> !</div>
        </body>
    </div>
    <form action='<?php echo base_url(); ?>score_controller' method="POST">
        
        <div class="col-md-10 column">
            <!--Dynamically loading Questions and answers 
            by iterating through questionStructure sent from the Question_Controller-->
            <?php
            $questionStructure = $this->data['questionStructure'];
            foreach ($questionStructure as $key => $value) {
                ?>
                <div class="panel panel-primary ">
                    <div class="question-title">
                        <h3 class="panel-title question-title">
                            <?php echo $value['question']->name; ?>
                        </h3>
                    </div>
                    <div class="panel-body">
                        <?php foreach ($value['answers'] as $aKey => $aValue) {
                            ?>
                            <div class="radio answer">
                                <label >
                                    <input type="radio" name="answer-radio<?php echo $value['question']->id; ?>" id="<?php echo $value['question']->id; ?>" value="<?php echo $aValue->id; ?>" checked="" > <?php echo $aValue->name; ?>
                                </label>
                            </div>
                            <?php
                        }
                        ?>
                    </div>

                </div>
                <?php
            }
            ?>
            <!--END-->
            <div class="panel-footer">
                <input class="btn btn-primary " id="submitResultsButton" name="submitResultsButton" type="submit" value="Confirm"/>
                <a href="<?php echo base_url(); ?>" class="btn btn-default" role="button">Cancel</a>
            </div>
            <div class="col-md-1 column">
            </div>

        </div>
        <!--Hidden field to store time taken-->
        <input type="hidden" name="timeTaken" id="timeTaken" value=""/>
        <input type="hidden" name="questionType" id="questionType" value="<?php echo $this->data['questionType']?>" >
    </form>
</div>
<commit_msg>Adding form name<commit_after><script>
    function startTimer(timerView, hiddenField) {
        var timer = 0, minutes, seconds;
        setInterval(function() {
            minutes = parseInt(timer / 60, 10);
            seconds = parseInt(timer % 60, 10);

            minutes = minutes < 10 ? "0" + minutes : minutes;
            seconds = seconds < 10 ? "0" + seconds : seconds;

            timerView.textContent = minutes + ":" + seconds;
            hiddenField.value = minutes + ":" + seconds;
            ++timer;
        }, 1000);
    }

    window.onload = function() {
        var timerView = document.querySelector('#time'),
            hiddenField = document.querySelector('#timeTaken');

        startTimer(timerView, hiddenField);
    };
</script>

<div class="container-question">
    <div class="col-lg-12 text-center">
        <body> 
            <!--Display time taken-->
            <div class="clock-text">Time Taken:<span id="time"></span> !</div>
        </body>
    </div>
    <form action='<?php echo base_url(); ?>score_controller' name="Quiz_Form" method="POST">
        
        <div class="col-md-10 column">
            <!--Dynamically loading Questions and answers 
            by iterating through questionStructure sent from the Question_Controller-->
            <?php
            $questionStructure = $this->data['questionStructure'];
            foreach ($questionStructure as $key => $value) {
                ?>
                <div class="panel panel-primary ">
                    <div class="question-title">
                        <h3 class="panel-title question-title">
                            <?php echo $value['question']->name; ?>
                        </h3>
                    </div>
                    <div class="panel-body">
                        <?php foreach ($value['answers'] as $aKey => $aValue) {
                            ?>
                            <div class="radio answer">
                                <label >
                                    <input type="radio" name="answer-radio<?php echo $value['question']->id; ?>" id="<?php echo $value['question']->id; ?>" value="<?php echo $aValue->id; ?>" checked="" > <?php echo $aValue->name; ?>
                                </label>
                            </div>
                            <?php
                        }
                        ?>
                    </div>

                </div>
                <?php
            }
            ?>
            <!--END-->
            <div class="panel-footer">
                <input class="btn btn-primary " id="submitResultsButton" name="submitResultsButton" type="submit" value="Confirm"/>
                <a href="<?php echo base_url(); ?>" class="btn btn-default" role="button">Cancel</a>
            </div>
            <div class="col-md-1 column">
            </div>

        </div>
        <!--Hidden field to store time taken-->
        <input type="hidden" name="timeTaken" id="timeTaken" value=""/>
        <input type="hidden" name="questionType" id="questionType" value="<?php echo $this->data['questionType']?>" >
    </form>
</div>

{'fraction_non_alphanumeric': 0.1497283477149249, 'fraction_numerical': 0.008309364014062001, 'mean_word_length': 1.5015987210231814, 'pattern_counts': {'":': 4, '<': 115, '<?xml version=': 0, '>': 129, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7533945', 'n_tokens_mistral': 1631, 'n_tokens_neox': 1549, 'n_words': 369}