<commit_before><template>
	<input type="text" :value='message' @change='inputting' @input='inputting'>
</template>

<script>
import Flatpickr from './assets/flatpickr'

export default {
	props: {
    options: {
      type: Object,
      default: () => {
      	return {}
      }
    },
    message: {
    	type: String,
    	default: () => {
    		return ''
    	}
    }
  },
	methods: {
		inputting (e) {
			this.$emit('update', e.target.value)
		}
	},
  mounted () {
    new Flatpickr(this.$el, this.options)
  }
}
</script>

<style scoped>
  @import url('./assets/flatpickr.min.css');
</style><commit_msg>remove the extra dom when destory the component<commit_after><template>
	<input type="text" :value='message' @change='inputting' @input='inputting'>
</template>

<script>
import Flatpickr from './assets/flatpickr'

export default {
    data() {
        return {
            fp: null
        }
    },
	props: {
        options: {
            type: Object,
            default: () => {
      	         return {}
             }
         },
         message: {
    	        type: String,
    	           default: () => ''
        }
    },
	methods: {
        inputting (e) {
            this.$emit('update', e.target.value)
		}
	},
    mounted () {
        this.fp = new Flatpickr(this.$el, this.options)
    },
    destroyed() {
        this.fp.destroy()
    }
}
</script>

<style scoped>
  @import url('./assets/flatpickr.min.css');
</style>
{'fraction_non_alphanumeric': 0.16793365583966827, 'fraction_numerical': 0.0, 'mean_word_length': 1.9611451942740286, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 21, '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': '4007580', 'n_tokens_mistral': 492, 'n_tokens_neox': 483, 'n_words': 92}