<commit_before><template>
  <my-bootstrap-form-group :name="name" :label="label" :validity="validity">
    <input-with-validity :name="name" v-model="val" type="date"
       :min="opts.min" :max="opts.max" :required="!opts.optional" :validity.sync="validity[name]"></input-with-validity>
  </my-bootstrap-form-group>
</template>

<script lang="ts">
import Vue from "vue";

function init(date) {
    return date && date.toISOString().replace(/T.*/, '');
}

export default Vue.extend({
    props: ['name', 'value', 'label', 'opts', 'submitted', 'min', 'max'],
    data() {
        return {
            validity: { [this.name]: {}, submitted: false },
            val: init(this.value),
        };
    },
    watch: {
        value(date) {
            if (date && date !== this.date) this.val = init(date);<commit_msg>cleanup: remove unused props (DateAttr)<commit_after><template>
  <my-bootstrap-form-group :name="name" :label="label" :validity="validity">
    <input-with-validity :name="name" v-model="val" type="date"
       :min="opts.min" :max="opts.max" :required="!opts.optional" :validity.sync="validity[name]"></input-with-validity>
  </my-bootstrap-form-group>
</template>

<script lang="ts">
import Vue from "vue";

function init(date) {
    return date && date.toISOString().replace(/T.*/, '');
}

export default Vue.extend({
    props: ['name', 'value', 'label', 'opts', 'submitted'],
    data() {
        return {
            validity: { [this.name]: {}, submitted: false },
            val: init(this.value),
        };
    },
    watch: {
        value(date) {
            if (date && date !== this.date) this.val = init(date);
{'fraction_non_alphanumeric': 0.207673568818514, 'fraction_numerical': 0.0, 'mean_word_length': 3.2020460358056266, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '5072586', 'n_tokens_mistral': 547, 'n_tokens_neox': 543, 'n_words': 107}