<commit_before><template>
  <q-field
    :icon="icon"
    :label="label"
    :helper="helper"
    :error-label="errorLabel"
    :label-width="labelWidth"
    :error="hasError"
  >
    <q-select
      :multiple="this.properties.field.multiple ? this.properties.field.multiple : false"
      :toggle="properties.field.toggle ? properties.field.toggle : false"
      :radio="properties.field.radio ? properties.field.radio : false"
      :chips="properties.field.chips ? properties.field.chips : false"
      v-model="model"
      :options="properties.field.options"
      @change="onChanged"
      @blur="onChanged" />
  </q-field>
</template>

<script>
import lodash from 'lodash'
import { QField, QSelect } from 'quasar'
import mixins from '../../mixins'

export default {
  name: 'k-select-field',
  components: {
    QField,
    QSelect
  },
  mixins: [mixins.baseField],
  methods: {
    emptyModel () {
      let multiple = lodash.get(this.properties.field.multiple, false)
      if (multiple) return []
      return ''
    }
  }
}
</script><commit_msg>Fixed select field to handle objects<commit_after><template>
  <q-field
    :icon="icon"
    :label="label"
    :helper="helper"
    :error-label="errorLabel"
    :label-width="labelWidth"
    :error="hasError"
  >
    <q-select
      :multiple="this.properties.field.multiple ? this.properties.field.multiple : false"
      :toggle="properties.field.toggle ? properties.field.toggle : false"
      :radio="properties.field.radio ? properties.field.radio : false"
      :chips="properties.field.chips ? properties.field.chips : false"
      v-model="model"
      :options="properties.field.options"
      @change="onChanged"
      @blur="onChanged" />
  </q-field>
</template>

<script>
import lodash from 'lodash'
import { QField, QSelect } from 'quasar'
import mixins from '../../mixins'

export default {
  name: 'k-select-field',
  components: {
    QField,
    QSelect
  },
  mixins: [mixins.baseField],
  methods: {
    emptyModel () {
      let multiple = lodash.get(this.properties.field.multiple, false)
      if (multiple) return []
      return (this.properties.type === 'object' ? {} : '')
    }
  }
}
</script>
{'fraction_non_alphanumeric': 0.15642201834862385, 'fraction_numerical': 0.0, 'mean_word_length': 3.1306818181818183, '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': '2224634', 'n_tokens_mistral': 706, 'n_tokens_neox': 703, 'n_words': 128}