<commit_before><template>
  <select @change="propagateChange($event.target.value)" v-model="selected" class="form-control col-xs-2 chevron-down-bkg" :disabled="disabled">
    <option value="" v-if="defaultOption" :value="defaultOption.value">{{defaultOption.text}}</option>
    <option v-for="option in options" :value="option.value">
      {{option.text}}
    </option>
  </select>
</template>

<script>
  export default {
    name: "BtrzSelect",
    props: {
      selectedValue: {
        type: String,
        "default": ""
      },
      options: {
        type: Array,
        "default": () => { return []; }
      },
      defaultOption: {
        type: Object,
        default: null
      },
      disabled: {
        type: Boolean,
        "default": false
      }
    },
    model: {
      prop: "selectedValue",
      event: "change"
    },
    methods: {
      propagateChange(newValue) {
        this.$emit("change", newValue);
      }
    },
    data() {
      return {selected: this.selectedValue};
    }
  };
</script><commit_msg>Fixed model update for btrz-select.<commit_after><template>
  <select @change="propagateChange($event.target.value)" v-model="selected" class="form-control col-xs-2 chevron-down-bkg" :disabled="disabled">
    <option value="" v-if="defaultOption" :value="defaultOption.value">{{defaultOption.text}}</option>
    <option v-for="option in options" :value="option.value">
      {{option.text}}
    </option>
  </select>
</template>

<script>
  export default {
    name: "BtrzSelect",
    props: {
      selectedValue: {
        type: String,
        "default": ""
      },
      options: {
        type: Array,
        "default": () => { return []; }
      },
      defaultOption: {
        type: Object,
        default: null
      },
      disabled: {
        type: Boolean,
        "default": false
      }
    },
    model: {
      prop: "selectedValue",
      event: "change"
    },
    methods: {
      propagateChange(newValue) {
        this.$emit("change", newValue);
      }
    },
    watch: {
      selectedValue: function(newSelected) {
        this.selected = newSelected;
      }
    },
    data() {
      return {selected: this.selectedValue};
    }
  };
</script>
{'fraction_non_alphanumeric': 0.16366906474820145, 'fraction_numerical': 0.0008992805755395684, 'mean_word_length': 2.252923976608187, 'pattern_counts': {'":': 6, '<': 23, '<?xml version=': 0, '>': 25, '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': '2054643', 'n_tokens_mistral': 685, 'n_tokens_neox': 680, 'n_words': 128}