<commit_before><template lang="jade">
  .mdl-textfield.mdl-js-textfield(v-bind:class='{"mdl-textfield--floating-label": floatingLabel, "mdl-textfield--expandable": expandable}')
    slot(v-if='expandable' name='expandable-button')
      label.mdl-button.mdl-js-button.mdl-button--icon(v-bind:for.once='id')
        i.material-icons {{expandable}}
    div(v-bind:class='{"mdl-textfield__expandable-holder": expandable}')
      slot(v-if='textarea' name='textarea')
        textarea.mdl-textfield__input(type='text' v-bind:id.once='id' v-bind:rows='rows')
      slot(v-else name='input')
        input.mdl-textfield__input(v-bind:type='type' v-model='value' v-bind:id.once='id' v-bind:pattern='pattern')
      slot(name='label')
        label.mdl-textfield__label(v-bind:for.once='id') {{label}}
      slot(name='error')
        label.mdl-textfield__error(v-if='error') {{error}}
</template>

<script lang="coffee">
module.exports =
  data: ->
    unwatch: []
  props:
    expandable: String
    type:
      type: String
      default: 'text'
    rows:<commit_msg>Removed bad indentation in textfield jade<commit_after><template lang="jade">
.mdl-textfield.mdl-js-textfield(v-bind:class='{"mdl-textfield--floating-label": floatingLabel, "mdl-textfield--expandable": expandable}')
  slot(v-if='expandable' name='expandable-button')
    label.mdl-button.mdl-js-button.mdl-button--icon(v-bind:for.once='id')
      i.material-icons {{expandable}}
  div(v-bind:class='{"mdl-textfield__expandable-holder": expandable}')
    slot(v-if='textarea' name='textarea')
      textarea.mdl-textfield__input(type='text' v-bind:id.once='id' v-bind:rows='rows')
    slot(v-else name='input')
      input.mdl-textfield__input(v-bind:type='type' v-model='value' v-bind:id.once='id' v-bind:pattern='pattern')
    slot(name='label')
      label.mdl-textfield__label(v-bind:for.once='id') {{label}}
    slot(name='error')
      label.mdl-textfield__error(v-if='error') {{error}}
</template>

<script lang="coffee">
module.exports =
  data: ->
    unwatch: []
  props:
    expandable: String
    type:
      type: String
      default: 'text'
    rows:
{'fraction_non_alphanumeric': 0.18814675446848542, 'fraction_numerical': 0.0, 'mean_word_length': 4.18780487804878, 'pattern_counts': {'":': 6, '<': 9, '<?xml version=': 0, '>': 11, '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': '870972', 'n_tokens_mistral': 775, 'n_tokens_neox': 764, 'n_words': 94}