<commit_before>import Ember from 'ember';

const {
  computed,
  defineProperty
} = Ember;

export default Ember.Component.extend({
  classNames: ['f-default__row'],

  model: null,
  placeholder: '',
  value: null,
  valuePath: '',
  validation: null,
  isTyping: false,

  notValidating: computed.not('validation.isValidating'),
  didValidate: computed.oneWay('targetObject.didValidate'),
  hasContent: computed.notEmpty('value'),
  isValid: computed.oneWay('validation.isValid'),
  isInvalid: computed.oneWay('validation.isInvalid'),

  showMessage: computed('didValidate', 'isInvalid', function() {
    return (this.get('didValidate') && this.get('isInvalid'));
  }),

  init() {
    const valuePath = this.get('valuePath');
    this._super(...arguments); // eslint-disable-line prefer-rest-params
    defineProperty(this, 'validation', computed.oneWay(`model.validations.attrs.${valuePath}`));
    defineProperty(this, 'value', computed.alias(`model.${valuePath}`));
  },

  actions: {
    validateField() {
      this.get('model').validate({ on: this.get('valuePath') });
    }
  }
});<commit_msg>Inherit b-textarea from b-base-input<commit_after>import BaseInput from './b-base-input';

export default BaseInput.extend({
});
{'fraction_non_alphanumeric': 0.17140536149471974, 'fraction_numerical': 0.0, 'mean_word_length': 4.866666666666666, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2958497', 'n_tokens_mistral': 385, 'n_tokens_neox': 383, 'n_words': 68}