<commit_before><template>
    <div class="quiz">
        <slot></slot>
        <ol class="answer">
            <li v-for="(res, answer) in answers" >
                <span v-on:click="isCorrect(res,$event)">
                    {{ answer }}
                </span>
                <div>
                    <div class="answer-box">
                    </div>
                </div>
            </li>
        </ol>
    </div>
</template>
<script>
export default {
  props: ['answers'],
  methods: {
      isCorrect: function (res, event) {
          let getList = event.target.parentNode.parentNode;
          let getLi = event.target.parentNode;

          getList.childNodes.forEach( function(e){
              e.setAttribute("class","");
          })
          
          if(res == true){<commit_msg>Quiz with new obj structure<commit_after><template>
    <div class="quiz">
        <slot></slot>
        <ol class="answer">
            <li v-for="(value, index) in answers" >
                <span v-on:click="isCorrect(value,$event)">
                    {{ index }}
                </span>
                <div>
                    <div class="answer-box">
                        {{ value.explication }}
                    </div>
                </div>
            </li>
        </ol>
    </div>
</template>
<script>
export default {
  props: ['answers'],
  methods: {
      isCorrect: function (value, event) {
          let getList = event.target.parentNode.parentNode;
          let getLi = event.target.parentNode;

          getList.childNodes.forEach( function(e){
              e.setAttribute("class","");
          })
          
          if(value.response == true){
{'fraction_non_alphanumeric': 0.14634146341463414, 'fraction_numerical': 0.0, 'mean_word_length': 1.3623595505617978, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, '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': '4721366', 'n_tokens_mistral': 475, 'n_tokens_neox': 457, 'n_words': 94}