<commit_before>export default {
  props: {
    color: String
  },
  methods: {
    addBackgroundColorClassChecks (classes) {
      if (this.color) {
        classes[this.color] = true
      }
      return classes
    },
    addTextColorClassChecks (classes) {
      const parts = this.color ? this.color.trim().split(' ') : ['']
      let color = parts[0] + '--text'
      if (parts.length > 1) color += ' text--' + parts[1]
      classes[color] = !!this.color
      return classes
    }
  }
}<commit_msg>adds ability to define color prop for color class setter (#2078)<commit_after>export default {
  props: {
    color: String
  },
  methods: {
    addBackgroundColorClassChecks (classes, prop = 'color') {
      if (this[prop]) {
        classes[this[prop]] = true
      }
      return classes
    },
    addTextColorClassChecks (classes, prop = 'color') {
      const parts = this[prop] ? this[prop].trim().split(' ') : ['']
      let color = parts[0] + '--text'
      if (parts.length > 1) color += ' text--' + parts[1]
      classes[color] = !!this[prop]
      return classes
    }
  }
}
{'fraction_non_alphanumeric': 0.15187557182067704, 'fraction_numerical': 0.009149130832570906, 'mean_word_length': 2.41875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6165805', 'n_tokens_mistral': 355, 'n_tokens_neox': 347, 'n_words': 82}