<commit_before><template>
<label>
  <input type="checkbox" :checked="value" :disabled="disabled" @change="updateCheckbox">
  <span>{{ label }}</span>
</label>
</template>
<script>
export default {
  name: 'checkbox',
  props: {
    value: {
      type: Boolean,
      required: false,
      default: false
    },
    label: {
      type: String,
      required: false,
      default: ''
    },
    disabled: {
      type: Boolean
    }
  },
  methods: {
    updateCheckbox () {
      this.$emit('input', event.target.checked)
      this.$emit('checked', this.checked)
    }
  }
}
</script>
<style lang="scss">
input[type=checkbox] {
     position: relative;
     cursor: pointer;
}
/* to hide the checkbox itself */
 label>input[type=checkbox]:before {
  position: absolute;
  background-color: #FFFFFF;
  height: 100%;
  width: 100%;
  font-family: FontAwesome;
  display: inline-block;
  content:"\f096";
  letter-spacing: 10px;
}
/* space between checkbox and label */
 label>input[type=checkbox]:checked:before {<commit_msg>fix create new content on firefox issue<commit_after><template>
<label>
  <input type="checkbox" :checked="value" :disabled="disabled" @change="updateCheckbox">
  <span>{{ label }}</span>
</label>
</template>
<script>
export default {
  name: 'checkbox',
  props: {
    value: {
      type: Boolean,
      required: false,
      default: false
    },
    label: {
      type: String,
      required: false,
      default: ''
    },
    disabled: {
      type: Boolean
    }
  },
  methods: {
    updateCheckbox (event) {
      this.$emit('input', event.target.checked)
      this.$emit('checked', this.checked)
    }
  }
}
</script>
<style lang="scss">
input[type=checkbox] {
     position: relative;
     cursor: pointer;
}
/* to hide the checkbox itself */
 label>input[type=checkbox]:before {
  position: absolute;
  background-color: #FFFFFF;
  height: 100%;
  width: 100%;
  font-family: FontAwesome;
  display: inline-block;
  content:"\f096";
  letter-spacing: 10px;
}
/* space between checkbox and label */
 label>input[type=checkbox]:checked:before {
{'fraction_non_alphanumeric': 0.1571633924293244, 'fraction_numerical': 0.010541447053186392, 'mean_word_length': 3.2012072434607646, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 27, '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': '3212030', 'n_tokens_mistral': 696, 'n_tokens_neox': 664, 'n_words': 157}